isblank() implementation.
[minix.git] / lib / libc / posix / _lseek.c
blobf152fad0d09cb5639161b97ae653060d8c5c04aa
1 #include <lib.h>
2 #define lseek _lseek
3 #include <unistd.h>
5 PUBLIC off_t lseek(fd, offset, whence)
6 int fd;
7 off_t offset;
8 int whence;
10 message m;
12 m.m2_i1 = fd;
13 m.m2_l1 = offset;
14 m.m2_i2 = whence;
15 if (_syscall(FS, LSEEK, &m) < 0) return( (off_t) -1);
16 return( (off_t) m.m2_l1);