OSDN Git Service

Add "__write" as a weak alias for "write"
authorEric Andersen <andersen@codepoet.org>
Tue, 28 Aug 2001 17:04:13 +0000 (17:04 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 28 Aug 2001 17:04:13 +0000 (17:04 -0000)
libc/sysdeps/linux/common/syscalls.c

index 2d20626..1ecb2e6 100644 (file)
@@ -61,6 +61,7 @@ _syscall3(ssize_t, read, int, fd, __ptr_t, buf, size_t, count);
 #ifdef L_write
 #include <unistd.h>
 _syscall3(ssize_t, write, int, fd, const __ptr_t, buf, size_t, count);
+weak_alias(write, __write);
 #endif
 
 //#define __NR_open             5