write.c 621 B

1234567891011121314151617181920212223
  1. /* vi: set sw=4 ts=4: */
  2. /*
  3. * write() for uClibc
  4. *
  5. * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  6. *
  7. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  8. */
  9. #include "syscalls.h"
  10. #include <unistd.h>
  11. extern __typeof(write) __libc_write;
  12. #define __NR___libc_write __NR_write
  13. _syscall3(ssize_t, __libc_write, int, fd, const __ptr_t, buf, size_t, count);
  14. libc_hidden_proto(write)
  15. weak_alias(__libc_write,write)
  16. libc_hidden_weak(write)
  17. #if 0
  18. /* Stupid libgcc.a from gcc 2.95.x uses __write in pure.o
  19. * which is a blatent GNU libc-ism... */
  20. strong_alias(__libc_write,__write)
  21. #endif