/* * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. * See the copyright notice in the ACK home directory, in the file "Copyright". */ /* $Id$ */ #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; }