17 lines
375 B
C
17 lines
375 B
C
/*
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
*/
|
|
/* $Header$ */
|
|
|
|
#include <system.h>
|
|
|
|
int
|
|
sys_read(fp, bufptr, bufsiz, pnbytes)
|
|
File *fp;
|
|
char *bufptr;
|
|
int bufsiz, *pnbytes;
|
|
{
|
|
if (! fp) return 0;
|
|
return (*pnbytes = read(fp->o_fd, bufptr, bufsiz)) >= 0;
|
|
}
|