Blame SOURCES/glibc-rh1505492-prototypes-Xat.patch

c6d234
Introduce prototype-style definitions for various *at functions.
c6d234
Upstream, these function definitions were removed in:
c6d234
c6d234
commit 754a15c61cd6834685386a134d0a0fed5f3ac4c1
c6d234
Author: Joseph Myers <joseph@codesourcery.com>
c6d234
Date:   Tue Sep 30 14:32:08 2014 +0000
c6d234
c6d234
    Move some *at definitions to syscalls.list (bug 14138).
c6d234
c6d234
diff --git a/sysdeps/unix/sysv/linux/fchownat.c b/sysdeps/unix/sysv/linux/fchownat.c
c6d234
index 624804fa8cbfd8a1..0673118ad1c72958 100644
c6d234
--- a/sysdeps/unix/sysv/linux/fchownat.c
c6d234
+++ b/sysdeps/unix/sysv/linux/fchownat.c
c6d234
@@ -29,12 +29,7 @@
c6d234
 
c6d234
 /* Change the owner and group of FILE.  */
c6d234
 int
c6d234
-fchownat (fd, file, owner, group, flag)
c6d234
-     int fd;
c6d234
-     const char *file;
c6d234
-     uid_t owner;
c6d234
-     gid_t group;
c6d234
-     int flag;
c6d234
+fchownat (int fd, const char *file, uid_t owner, gid_t group, int flag)
c6d234
 {
c6d234
   int result;
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/futimesat.c b/sysdeps/unix/sysv/linux/futimesat.c
c6d234
index e3d034f800dfe61b..77f320d94aef5435 100644
c6d234
--- a/sysdeps/unix/sysv/linux/futimesat.c
c6d234
+++ b/sysdeps/unix/sysv/linux/futimesat.c
c6d234
@@ -29,10 +29,7 @@
c6d234
 /* Change the access time of FILE relative to FD to TVP[0] and
c6d234
    the modification time of FILE to TVP[1].  */
c6d234
 int
c6d234
-futimesat (fd, file, tvp)
c6d234
-     int fd;
c6d234
-     const char *file;
c6d234
-     const struct timeval tvp[2];
c6d234
+futimesat (int fd, const char *file, const struct timeval tvp[2])
c6d234
 {
c6d234
   int result;
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/linkat.c b/sysdeps/unix/sysv/linux/linkat.c
c6d234
index 90e0a79a7014ab72..0526861c007d773f 100644
c6d234
--- a/sysdeps/unix/sysv/linux/linkat.c
c6d234
+++ b/sysdeps/unix/sysv/linux/linkat.c
c6d234
@@ -27,12 +27,7 @@
c6d234
 /* Make a link to FROM named TO but relative paths in TO and FROM are
c6d234
    interpreted relative to FROMFD and TOFD respectively.  */
c6d234
 int
c6d234
-linkat (fromfd, from, tofd, to, flags)
c6d234
-     int fromfd;
c6d234
-     const char *from;
c6d234
-     int tofd;
c6d234
-     const char *to;
c6d234
-     int flags;
c6d234
+linkat (int fromfd, const char *from, int tofd, const char *to, int flags)
c6d234
 {
c6d234
   int result;
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/mkdirat.c b/sysdeps/unix/sysv/linux/mkdirat.c
c6d234
index c5ac40ad70c78b62..3989c13f6d511389 100644
c6d234
--- a/sysdeps/unix/sysv/linux/mkdirat.c
c6d234
+++ b/sysdeps/unix/sysv/linux/mkdirat.c
c6d234
@@ -28,10 +28,7 @@
c6d234
 /* Create a new directory with permission bits MODE.  But interpret
c6d234
    relative PATH names relative to the directory associated with FD.  */
c6d234
 int
c6d234
-mkdirat (fd, file, mode)
c6d234
-     int fd;
c6d234
-     const char *file;
c6d234
-     mode_t mode;
c6d234
+mkdirat (int fd, const char *file, mode_t mode)
c6d234
 {
c6d234
   int res;
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/readlinkat.c b/sysdeps/unix/sysv/linux/readlinkat.c
c6d234
index 1638cbb38063477e..05ac0c31743e0d09 100644
c6d234
--- a/sysdeps/unix/sysv/linux/readlinkat.c
c6d234
+++ b/sysdeps/unix/sysv/linux/readlinkat.c
c6d234
@@ -29,11 +29,7 @@
c6d234
 /* Read the contents of the symbolic link PATH relative to FD into no
c6d234
    more than LEN bytes of BUF.  */
c6d234
 ssize_t
c6d234
-readlinkat (fd, path, buf, len)
c6d234
-     int fd;
c6d234
-     const char *path;
c6d234
-     char *buf;
c6d234
-     size_t len;
c6d234
+readlinkat (int fd, const char *path, char *buf, size_t len)
c6d234
 {
c6d234
   int result;
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/renameat.c b/sysdeps/unix/sysv/linux/renameat.c
c6d234
index 7623f5230306baaf..6b9e87016b17ab6c 100644
c6d234
--- a/sysdeps/unix/sysv/linux/renameat.c
c6d234
+++ b/sysdeps/unix/sysv/linux/renameat.c
c6d234
@@ -104,11 +104,7 @@ __atfct_seterrno_2 (int errval, int fd1, const char *buf1, int fd2,
c6d234
 
c6d234
 /* Rename the file OLD relative to OLDFD to NEW relative to NEWFD.  */
c6d234
 int
c6d234
-renameat (oldfd, old, newfd, new)
c6d234
-     int oldfd;
c6d234
-     const char *old;
c6d234
-     int newfd;
c6d234
-     const char *new;
c6d234
+renameat (int oldfd, const char *old, int newfd, const char *new)
c6d234
 {
c6d234
   int result;
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/symlinkat.c b/sysdeps/unix/sysv/linux/symlinkat.c
c6d234
index 7e3812914c99ad8c..c8f8be9892dc41db 100644
c6d234
--- a/sysdeps/unix/sysv/linux/symlinkat.c
c6d234
+++ b/sysdeps/unix/sysv/linux/symlinkat.c
c6d234
@@ -28,10 +28,7 @@
c6d234
 
c6d234
 /* Make a symbolic link to FROM named TO relative to TOFD.  */
c6d234
 int
c6d234
-symlinkat (from, tofd, to)
c6d234
-     const char *from;
c6d234
-     int tofd;
c6d234
-     const char *to;
c6d234
+symlinkat (const char *from, int tofd, const char *to)
c6d234
 {
c6d234
   int result;
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/unlinkat.c b/sysdeps/unix/sysv/linux/unlinkat.c
c6d234
index 7c50a2a914486808..d4beb82b065068f7 100644
c6d234
--- a/sysdeps/unix/sysv/linux/unlinkat.c
c6d234
+++ b/sysdeps/unix/sysv/linux/unlinkat.c
c6d234
@@ -29,10 +29,7 @@
c6d234
 
c6d234
 /* Remove the link named NAME.  */
c6d234
 int
c6d234
-unlinkat (fd, file, flag)
c6d234
-     int fd;
c6d234
-     const char *file;
c6d234
-     int flag;
c6d234
+unlinkat (int fd, const char *file, int flag)
c6d234
 {
c6d234
   int result;
c6d234