source:
trunk/libs/newlib/src/libgloss/i960/mon-read.c
@
500
Last change on this file since 500 was 444, checked in by , 7 years ago | |
---|---|
File size: 223 bytes |
Rev | Line | |
---|---|---|
[444] | 1 | #include <errno.h> |
2 | ||
3 | read (fd, buf, sz) | |
4 | int fd; | |
5 | char *buf; | |
6 | int sz; | |
7 | { | |
8 | int nread; | |
9 | int r; | |
10 | ||
11 | r = _sys_read (fd, buf, sz, &nread); | |
12 | if (r != 0) | |
13 | { | |
14 | errno = r; | |
15 | return -1; | |
16 | } | |
17 | return nread; | |
18 | } |
Note: See TracBrowser
for help on using the repository browser.