source:
trunk/libs/newlib/src/libgloss/i960/mon-write.c
@
678
Last change on this file since 678 was 444, checked in by , 7 years ago | |
---|---|
File size: 210 bytes |
Line | |
---|---|
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.