diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-02-27 07:53:13 -0800 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-02-27 09:42:44 -0800 |
commit | 1b2184177553ce4ef8458034927ef50854be2af6 (patch) | |
tree | b91ea628502ebbb23a2c9beae90917262cede379 /stdio-common | |
parent | f627dd4da804c00b5e89e5e2c488c2bad6205262 (diff) | |
download | glibc-1b2184177553ce4ef8458034927ef50854be2af6.zip glibc-1b2184177553ce4ef8458034927ef50854be2af6.tar.gz glibc-1b2184177553ce4ef8458034927ef50854be2af6.tar.bz2 |
hurd: Add renameat2 support for RENAME_NOREPLACE
* include/stdio.h (__renameat2): New hidden prototype.
* stdio-common/renameat2.c (__renameat2): Add hidden definition.
* sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
* sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function, and
add support for RENAME_NOREPLACE.
* sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
Diffstat (limited to 'stdio-common')
-rw-r--r-- | stdio-common/renameat2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/stdio-common/renameat2.c b/stdio-common/renameat2.c index ce60173..00cb2ec 100644 --- a/stdio-common/renameat2.c +++ b/stdio-common/renameat2.c @@ -20,7 +20,7 @@ #include <stdio.h> int -renameat2 (int oldfd, const char *old, int newfd, const char *new, +__renameat2 (int oldfd, const char *old, int newfd, const char *new, unsigned int flags) { if (flags == 0) @@ -28,3 +28,5 @@ renameat2 (int oldfd, const char *old, int newfd, const char *new, __set_errno (EINVAL); return -1; } +libc_hidden_def (__renameat2) +weak_alias (__renameat2, renameat2) |