move msghdr and cmsghdr out of bits/socket.h
[musl.git] / src / unistd / lseek.c
blobb4984f3e9ef99ec081aa34c221a84269d7978339
1 #include <unistd.h>
2 #include "syscall.h"
4 off_t __lseek(int fd, off_t offset, int whence)
6 #ifdef SYS__llseek
7 off_t result;
8 return syscall(SYS__llseek, fd, offset>>32, offset, &result, whence) ? -1 : result;
9 #else
10 return syscall(SYS_lseek, fd, offset, whence);
11 #endif
14 weak_alias(__lseek, lseek);
15 weak_alias(__lseek, lseek64);