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
Fixes compile failure if REENTRANT_SYSCALLS_PROVIDED and MISSING_SYSCALL_NAMES defined
[newlib-cygwin.git]
/
libgloss
/
i960
/
mon-read.c
blob
92e15d258c24faef2a9efd39c331b109bbdf45de
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
}