The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 1 | /* autogenerated by gensyscalls.py */ |
| 2 | #include <sys/linux-syscalls.h> |
| 3 | |
| 4 | .text |
David 'Digit' Turner | 95d751f | 2010-12-16 16:47:14 +0100 | [diff] [blame] | 5 | .type pwrite64, @function |
| 6 | .globl pwrite64 |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 7 | .align 4 |
| 8 | |
David 'Digit' Turner | 95d751f | 2010-12-16 16:47:14 +0100 | [diff] [blame] | 9 | pwrite64: |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 10 | pushl %ebx |
| 11 | pushl %ecx |
| 12 | pushl %edx |
| 13 | pushl %esi |
| 14 | pushl %edi |
| 15 | mov 24(%esp), %ebx |
| 16 | mov 28(%esp), %ecx |
| 17 | mov 32(%esp), %edx |
| 18 | mov 36(%esp), %esi |
| 19 | mov 40(%esp), %edi |
| 20 | movl $__NR_pwrite64, %eax |
| 21 | int $0x80 |
| 22 | cmpl $-129, %eax |
| 23 | jb 1f |
| 24 | negl %eax |
| 25 | pushl %eax |
| 26 | call __set_errno |
| 27 | addl $4, %esp |
| 28 | orl $-1, %eax |
| 29 | 1: |
| 30 | popl %edi |
| 31 | popl %esi |
| 32 | popl %edx |
| 33 | popl %ecx |
| 34 | popl %ebx |
| 35 | ret |