浏览代码

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

Eric Andersen 24 年之前
父节点
当前提交
22e8adca0d
共有 1 个文件被更改,包括 1 次插入0 次删除
  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