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