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