Browse Source

Add "__write" as a weak alias for "write"

Eric Andersen 24 years ago
parent
commit
22e8adca0d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      libc/sysdeps/linux/common/syscalls.c

+ 1 - 0
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