20000317 sourceware import
This commit is contained in:
18
libgloss/i960/mon-read.c
Normal file
18
libgloss/i960/mon-read.c
Normal file
@ -0,0 +1,18 @@
|
||||
#include <errno.h>
|
||||
|
||||
read (fd, buf, sz)
|
||||
int fd;
|
||||
char *buf;
|
||||
int sz;
|
||||
{
|
||||
int nread;
|
||||
int r;
|
||||
|
||||
r = _sys_read (fd, buf, sz, &nread);
|
||||
if (r != 0)
|
||||
{
|
||||
errno = r;
|
||||
return -1;
|
||||
}
|
||||
return nread;
|
||||
}
|
Reference in New Issue
Block a user