]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/l4re-core/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/common/read.c
Update
[l4.git] / l4 / pkg / l4re-core / uclibc / lib / contrib / uclibc / libc / sysdeps / linux / common / read.c
1 /* vi: set sw=4 ts=4: */
2 /*
3  * read() 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___read_nocancel __NR_read
15 _syscall3(ssize_t, __NC(read), int, fd, void *, buf, size_t, count)
16
17 CANCELLABLE_SYSCALL(ssize_t, read, (int fd, void *buf, size_t count),
18                     (fd, buf, count))
19 lt_libc_hidden(read)