blob: 0152866f8df42302f9bfb947796fef3c423dbb6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <unistd.h>
#include "syscall.h"
#include "libc.h"
off_t lseek(int fd, off_t offset, int whence)
{
#ifdef __NR__llseek
off_t result;
return syscall5(__NR__llseek, fd, offset>>32, offset, (long)&result, whence) ? -1 : result;
#else
return syscall3(__NR_lseek, fd, offset, whence);
#endif
}
LFS64(lseek);
|