extern File *_get_entry();
-int
-sys_open(path, flag, filep)
- char *path;
- int flag;
- File **filep;
+int sys_open(char *path, int flag, File **filep)
{
- register int fd;
- register File *fp;
- long lseek();
+ int fd;
+ File *fp;
if ((fp = _get_entry()) == (File *)0)
return 0;
#include "system.h"
-long lseek();
-
-int
-sys_seek(fp, off, whence, poff)
- File *fp;
- long off;
- long *poff;
+int sys_seek(File *fp, long off, int whence, long *poff)
{
if (! fp) return 0;
return (*poff = lseek(fp->o_fd, off, whence)) >= 0;