ack/mach/minixST/libsys/lseek.c

16 lines
261 B
C
Raw Normal View History

1988-04-19 09:34:37 +00:00
#include "lib.h"
PUBLIC long lseek(fd, offset, whence)
int fd;
long offset;
int whence;
{
int k;
M.m2_i1 = fd;
M.m2_l1 = offset;
M.m2_i2 = whence;
k = callx(FS, LSEEK);
if (k != OK) return( (long) k); /* send itself failed */
return(M.m2_l1);
}