source: trunk/minix/lib/posix/_lseek.c@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 290 bytes
Line 
1#include <lib.h>
2#define lseek _lseek
3#include <unistd.h>
4
5PUBLIC off_t lseek(fd, offset, whence)
6int fd;
7off_t offset;
8int 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.