projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add mips n32 port (ILP32 ABI for mips64)
[oweals/musl.git]
/
src
/
unistd
/
lseek.c
1
#include <unistd.h>
2
#include "syscall.h"
3
#include "libc.h"
4
5
off_t lseek(int fd, off_t offset, int whence)
6
{
7
#ifdef SYS__llseek
8
off_t result;
9
return syscall(SYS__llseek, fd, offset>>32, offset, &result, whence) ? -1 : result;
10
#else
11
return syscall(SYS_lseek, fd, offset, whence);
12
#endif
13
}
14
15
LFS64(lseek);