repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
isblank() implementation.
[minix.git]
/
lib
/
libc
/
posix
/
_lseek.c
blob
f152fad0d09cb5639161b97ae653060d8c5c04aa
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
}