1 //==========================================================================
7 //==========================================================================
8 //####BSDCOPYRIGHTBEGIN####
10 // -------------------------------------------
12 // Portions of this software may have been derived from OpenBSD or other sources,
13 // and are covered by the appropriate copyright disclaimers included herein.
15 // -------------------------------------------
17 //####BSDCOPYRIGHTEND####
18 //==========================================================================
19 //#####DESCRIPTIONBEGIN####
22 // Contributors: gthomas
28 //####DESCRIPTIONEND####
30 //==========================================================================
33 #include <sys/param.h>
34 #include <cyg/io/file.h>
35 #include <sys/socket.h>
36 #include <sys/socketvar.h>
38 #include <sys/syscallargs.h>
41 read(int fd, void *buf, size_t len)
43 struct sys_read_args args;
45 SYSCALLARG(args,fd) = fd;
46 SYSCALLARG(args,buf) = buf;
47 SYSCALLARG(args,nbyte) = len;
48 error = sys_read(&args, &res);