source:
trunk/minix/lib/posix/_lseek.c@
11
Last change on this file since 11 was 9, checked in by , 14 years ago | |
---|---|
File size: 290 bytes |
Rev | Line | |
---|---|---|
[9] | 1 | #include <lib.h> |
2 | #define lseek _lseek | |
3 | #include <unistd.h> | |
4 | ||
5 | PUBLIC off_t lseek(fd, offset, whence) | |
6 | int fd; | |
7 | off_t offset; | |
8 | int whence; | |
9 | { | |
10 | message m; | |
11 | ||
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); | |
17 | } |
Note:
See TracBrowser
for help on using the repository browser.