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 9 #include <sys/syscall.h> 10 #include <unistd.h> 11 #include <cancel.h> 12 13 #define __NR___read_nocancel __NR_read 14 _syscall3(ssize_t, __NC(read), int, fd, void *, buf, size_t, count) 15 16 CANCELLABLE_SYSCALL(ssize_t, read, (int fd, void *buf, size_t count), 17 (fd, buf, count)) 18 lt_libc_hidden(read) 19