write.c 578 B

12345678910111213141516171819202122232425
  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 <sys/syscall.h>
  10. #include <unistd.h>
  11. _syscall3(ssize_t, write, int, fd, const __ptr_t, buf, size_t, count)
  12. #ifndef __LINUXTHREADS_OLD__
  13. libc_hidden_def(write)
  14. #else
  15. libc_hidden_weak(write)
  16. strong_alias(write,__libc_write)
  17. #endif
  18. #if 0
  19. /* Stupid libgcc.a from gcc 2.95.x uses __write in pure.o
  20. * which is a blatant GNU libc-ism... */
  21. strong_alias(write,__write)
  22. #endif