projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
support linux kernel apis (new archs) with old syscalls removed
[oweals/musl.git]
/
src
/
stdio
/
__stdio_seek.c
1
#include "stdio_impl.h"
2
3
off_t __stdio_seek(FILE *f, off_t off, int whence)
4
{
5
off_t ret;
6
#ifdef SYS__llseek
7
if (syscall(SYS__llseek, f->fd, off>>32, off, &ret, whence)<0)
8
ret = -1;
9
#else
10
ret = syscall(SYS_lseek, f->fd, off, whence);
11
#endif
12
return ret;
13
}