lseek.S revision e35fd48a832cddbedcf84773fd1922f735ae7829
1/* Generated by gensyscalls.py. Do not edit. */ 2 3#include <private/bionic_asm.h> 4 5 .hidden __set_errno 6 7ENTRY(lseek) 8 pushl %ebx 9 .cfi_def_cfa_offset 8 10 .cfi_rel_offset ebx, 0 11 pushl %ecx 12 .cfi_adjust_cfa_offset 4 13 .cfi_rel_offset ecx, 0 14 pushl %edx 15 .cfi_adjust_cfa_offset 4 16 .cfi_rel_offset edx, 0 17 mov 16(%esp), %ebx 18 mov 20(%esp), %ecx 19 mov 24(%esp), %edx 20 movl $__NR_lseek, %eax 21 int $0x80 22 cmpl $-MAX_ERRNO, %eax 23 jb 1f 24 negl %eax 25 pushl %eax 26 call __set_errno 27 addl $4, %esp 281: 29 popl %edx 30 popl %ecx 31 popl %ebx 32 ret 33END(lseek) 34