Просмотр исходного кода

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

Eric Andersen 24 лет назад
Родитель
Сommit
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