Blame SOURCES/glibc-rh1505492-prototypes-powerpc-pread-pwrite.patch

147e83
Introduce prototype-style function definitions for pread, pwrite,
147e83
pread64, pwrite64.  Upstream removed the old-style function definitions
147e83
in:
147e83
147e83
commit 94a42455257226361fedf37a0ad7fc1d9d131645
147e83
Author: Joseph Myers <joseph@codesourcery.com>
147e83
Date:   Fri Oct 31 21:13:32 2014 +0000
147e83
147e83
    Move powerpc64 pread/pwrite definitions to syscalls.list (bug 14138).
147e83
147e83
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c b/sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
147e83
index 43ead1af67b0c0da..010fca1b6bb0d4b0 100644
147e83
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
147e83
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
147e83
@@ -29,11 +29,7 @@
147e83
 /* Consider moving to syscalls.list.  */
147e83
 
147e83
 ssize_t
147e83
-__libc_pread (fd, buf, count, offset)
147e83
-     int fd;
147e83
-     void *buf;
147e83
-     size_t count;
147e83
-     off_t offset;
147e83
+__libc_pread (int fd, void *buf, size_t count, off_t offset)
147e83
 {
147e83
   ssize_t result;
147e83
 
147e83
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c b/sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
147e83
index dc9fc81c4ccf067e..bcf1bebd75ebf8f5 100644
147e83
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
147e83
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
147e83
@@ -28,11 +28,7 @@
147e83
 /* Consider moving to syscalls.list.  */
147e83
 
147e83
 ssize_t
147e83
-__libc_pread64 (fd, buf, count, offset)
147e83
-     int fd;
147e83
-     void *buf;
147e83
-     size_t count;
147e83
-     off64_t offset;
147e83
+__libc_pread64 (int fd, void *buf, size_t count, off64_t offset)
147e83
 {
147e83
   ssize_t result;
147e83
 
147e83
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c b/sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
147e83
index 57c62bdb74805836..ff9f5c4d8ef3e26d 100644
147e83
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
147e83
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
147e83
@@ -29,11 +29,7 @@
147e83
 /* Consider moving to syscalls.list.  */
147e83
 
147e83
 ssize_t
147e83
-__libc_pwrite (fd, buf, count, offset)
147e83
-     int fd;
147e83
-     const void *buf;
147e83
-     size_t count;
147e83
-     off_t offset;
147e83
+__libc_pwrite (int fd, const void *buf, size_t count, off_t offset)
147e83
 {
147e83
   ssize_t result;
147e83
 
147e83
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c b/sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
147e83
index 430bb4ef2bd2eb3e..b2f630396cf53b39 100644
147e83
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
147e83
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
147e83
@@ -28,11 +28,7 @@
147e83
 /* Consider moving to syscalls.list.  */
147e83
 
147e83
 ssize_t
147e83
-__libc_pwrite64 (fd, buf, count, offset)
147e83
-     int fd;
147e83
-     const void *buf;
147e83
-     size_t count;
147e83
-     off64_t offset;
147e83
+__libc_pwrite64 (int fd, const void *buf, size_t count, off64_t offset)
147e83
 {
147e83
   ssize_t result;
147e83