repo.or.cz
/
newlib-cygwin.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Changes for 4.5.0 snapshot
[newlib-cygwin.git]
/
libgloss
/
i960
/
mon-write.c
blob
527037f927f1a9e75928cb1ca4cbf5fb464bbe2a
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
}