| File: | src/unistd/lseek.c |
| Location: | line 9, column 2 |
| Description: | Undefined or garbage value returned to caller |
| 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__llseek140 | |||
| 8 | off_t result; | |||
| ||||
| 9 | return syscall(SYS__llseek, fd, offset>>32, offset, &result, whence)__syscall_ret(__syscall5(140,((long) (fd)),((long) (offset>> 32)),((long) (offset)),((long) (&result)),((long) (whence )))) ? -1 : result; | |||
| ||||
| 10 | #else | |||
| 11 | return syscall(SYS_lseek, fd, offset, whence)__syscall_ret(__syscall3(19,((long) (fd)),((long) (offset)),( (long) (whence)))); | |||
| 12 | #endif | |||
| 13 | } | |||
| 14 | ||||
| 15 | LFS64(lseek)extern __typeof(lseek) lseek64 __attribute__((weak, alias("lseek" ))); |