write.c 480 B

123456789101112131415161718
  1. /*
  2. * write() for uClibc
  3. *
  4. * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  5. *
  6. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  7. */
  8. #include <sys/syscall.h>
  9. #include <unistd.h>
  10. #include <cancel.h>
  11. #define __NR___write_nocancel __NR_write
  12. _syscall3(ssize_t, __NC(write), int, fd, const void *, buf, size_t, count)
  13. CANCELLABLE_SYSCALL(ssize_t, write, (int fd, const void *buf, size_t count),
  14. (fd, buf, count))
  15. lt_libc_hidden(write)