Elliott Hughes | e4ffd9f | 2013-10-01 13:29:43 -0700 | [diff] [blame] | 1 | /* autogenerated by gensyscalls.py */ |
2 | #include <asm/unistd.h> | ||||
3 | #include <linux/err.h> | ||||
4 | #include <machine/asm.h> | ||||
5 | |||||
6 | ENTRY(lseek) | ||||
7 | movl $__NR_lseek, %eax | ||||
8 | syscall | ||||
9 | cmpq $-MAX_ERRNO, %rax | ||||
10 | jb 1f | ||||
11 | negl %eax | ||||
12 | movl %eax, %edi | ||||
13 | call __set_errno | ||||
14 | orq $-1, %rax | ||||
15 | 1: | ||||
16 | ret | ||||
17 | END(lseek) | ||||
H.J. Lu | 6fe4e87 | 2013-10-04 10:03:17 -0700 | [diff] [blame] | 18 | |
19 | .globl _C_LABEL(lseek64) | ||||
20 | .equ _C_LABEL(lseek64), _C_LABEL(lseek) |