ack/modules/src/system/seek.c

18 lines
344 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;
{
return (*poff = lseek(fp->o_fd, off, whence)) >= 0;
}