ack/modules/src/system/seek.c
1989-06-30 14:46:27 +00:00

19 lines
365 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>
long lseek();
int
sys_seek(fp, off, whence, poff)
File *fp;
long off;
long *poff;
{
if (! fp) return 0;
return (*poff = lseek(fp->o_fd, off, whence)) >= 0;
}