]> Zhao Yanbai Git Server - minix.git/commitdiff
remove special handling of rename()
authorLionel Sambuc <lionel@minix3.org>
Mon, 2 Dec 2013 15:24:13 +0000 (16:24 +0100)
committerLionel Sambuc <lionel@minix3.org>
Mon, 3 Mar 2014 19:47:01 +0000 (20:47 +0100)
Change-Id: I69694e155250dc5f527dacbaf3f0ecbdc4873989

include/stdio.h
lib/libc/sys-minix/Makefile.inc
lib/libc/sys-minix/rename.c

index a33ba4c5c99bc9fe15c04476f10ad40f4eb34a6a..e78a4d05dcd593c8cb209761c2a5dfdc22f2a4b3 100644 (file)
@@ -276,7 +276,7 @@ int  vsprintf(char * __restrict, const char * __restrict,
                __printflike(2, 0);
 #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);
 #else
 int     rename (const char *, const char *);
index 26c48bbfffb95831b804835c36dd23813b01544f..c4194b635a66991b96cedb01b97872e0c8e616e7 100644 (file)
@@ -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 \
        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 \
-       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 \
        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\
index d8ec5419a2c87850332d7a04df404cba86c3d125..49847684c9b259ce569dfbba4118089eef11cb35 100644 (file)
@@ -5,6 +5,10 @@
 #include <string.h>
 #include <stdio.h>
 
+#ifdef __weak_alias
+__weak_alias(__posix_rename, rename)
+#endif
+
 int rename(const char *name, const char *name2)
 {
   message m;