read.c 462 B

123456789101112131415161718
  1. /*
  2. * read() 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___read_nocancel __NR_read
  12. _syscall3(ssize_t, __NC(read), int, fd, void *, buf, size_t, count)
  13. CANCELLABLE_SYSCALL(ssize_t, read, (int fd, void *buf, size_t count),
  14. (fd, buf, count))
  15. lt_libc_hidden(read)