summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-08-28 17:04:13 +0000
committerEric Andersen <andersen@codepoet.org>2001-08-28 17:04:13 +0000
commit22e8adca0dc97c39af187d1ce1ba1cd962b6ca0a (patch)
treef42825c2c24ea2703683569250451ff9aca5be5b /libc/sysdeps/linux/common
parent4e58aab2cf2828342f798f11f239e9d79625fd0b (diff)
Add "__write" as a weak alias for "write"
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index 2d2062686..1ecb2e64f 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -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