]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/common/write.c
update
[l4.git] / l4 / pkg / uclibc / lib / contrib / uclibc / libc / sysdeps / linux / common / write.c
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
10 #include <sys/syscall.h>
11 #include <unistd.h>
12 #include <cancel.h>
13
14 #define __NR___write_nocancel __NR_write
15 _syscall3(ssize_t, __NC(write), int, fd, const void *, buf, size_t, count)
16
17 CANCELLABLE_SYSCALL(ssize_t, write, (int fd, const void *buf, size_t count),
18                     (fd, buf, count))
19 lt_libc_hidden(write)