remove special handling of rename()
Change-Id: I69694e155250dc5f527dacbaf3f0ecbdc4873989
This commit is contained in:
parent
fe1223849e
commit
e9e08def23
3 changed files with 6 additions and 2 deletions
|
@ -276,7 +276,7 @@ int vsprintf(char * __restrict, const char * __restrict,
|
||||||
__printflike(2, 0);
|
__printflike(2, 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(__minix) && (defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE))
|
#if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE)
|
||||||
int rename (const char *, const char *) __RENAME(__posix_rename);
|
int rename (const char *, const char *) __RENAME(__posix_rename);
|
||||||
#else
|
#else
|
||||||
int rename (const char *, const char *);
|
int rename (const char *, const char *);
|
||||||
|
|
|
@ -13,7 +13,7 @@ SRCS+= accept.c access.c adjtime.c bind.c brk.c sbrk.c m_closefrom.c getsid.c \
|
||||||
ioctl.c issetugid.c kill.c link.c listen.c loadname.c lseek.c \
|
ioctl.c issetugid.c kill.c link.c listen.c loadname.c lseek.c \
|
||||||
minix_rs.c mkdir.c mkfifo.c mknod.c mmap.c mount.c nanosleep.c \
|
minix_rs.c mkdir.c mkfifo.c mknod.c mmap.c mount.c nanosleep.c \
|
||||||
open.c pathconf.c pipe.c poll.c pread.c ptrace.c pwrite.c \
|
open.c pathconf.c pipe.c poll.c pread.c ptrace.c pwrite.c \
|
||||||
read.c readlink.c reboot.c recvfrom.c recvmsg.c rename.c\
|
read.c readlink.c reboot.c recvfrom.c recvmsg.c rename.c \
|
||||||
rmdir.c select.c sem.c sendmsg.c sendto.c setgroups.c setsid.c \
|
rmdir.c select.c sem.c sendmsg.c sendto.c setgroups.c setsid.c \
|
||||||
setgid.c settimeofday.c setuid.c shmat.c shmctl.c shmget.c stime.c \
|
setgid.c settimeofday.c setuid.c shmat.c shmctl.c shmget.c stime.c \
|
||||||
vectorio.c shutdown.c sigaction.c sigpending.c sigreturn.c sigsuspend.c\
|
vectorio.c shutdown.c sigaction.c sigpending.c sigreturn.c sigsuspend.c\
|
||||||
|
|
|
@ -5,6 +5,10 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#ifdef __weak_alias
|
||||||
|
__weak_alias(__posix_rename, rename)
|
||||||
|
#endif
|
||||||
|
|
||||||
int rename(const char *name, const char *name2)
|
int rename(const char *name, const char *name2)
|
||||||
{
|
{
|
||||||
message m;
|
message m;
|
||||||
|
|
Loading…
Reference in a new issue