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

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