Initial revision
This commit is contained in:
12
modules/src/system/read.c
Normal file
12
modules/src/system/read.c
Normal file
@@ -0,0 +1,12 @@
|
||||
/* $Header$ */
|
||||
|
||||
#include <system.h>
|
||||
|
||||
int
|
||||
sys_read(fp, bufptr, bufsiz, pnbytes)
|
||||
File *fp;
|
||||
char *bufptr;
|
||||
int bufsiz, *pnbytes;
|
||||
{
|
||||
return (*pnbytes = read(fp->o_fd, bufptr, bufsiz)) >= 0;
|
||||
}
|
||||
Reference in New Issue
Block a user