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