seek.c 361 B

12345678910111213141516171819
  1. /*
  2. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  3. * See the copyright notice in the ACK home directory, in the file "Copyright".
  4. */
  5. /* $Id$ */
  6. #include "system.h"
  7. long lseek();
  8. int
  9. sys_seek(fp, off, whence, poff)
  10. File *fp;
  11. long off;
  12. long *poff;
  13. {
  14. if (! fp) return 0;
  15. return (*poff = lseek(fp->o_fd, off, whence)) >= 0;
  16. }