16 lines
261 B
C
16 lines
261 B
C
|
#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);
|
||
|
}
|