Sign in
googlers
/
maze
/
klibc
/
83b7c1b245557bfd86ad5e00f64f1120c443d2a8
/
.
/
usr
/
klibc
/
tests
/
lseek.c
blob: c4e7f54cf6e68231d7eeea95c5e995ae8b5b3cc6 [
file
] [
log
] [
blame
]
#include
<stdlib.h>
#include
<stdio.h>
#include
<unistd.h>
#include
<fcntl.h>
int
main
(
void
)
{
int
fd
=
open
(
"test.out"
,
O_RDWR
|
O_CREAT
|
O_TRUNC
,
0666
);
off_t
rv
;
rv
=
lseek
(
fd
,
123456789012ULL
,
SEEK_SET
);
printf
(
"seek to: %lld\n"
,
rv
);
return
0
;
}