Elliott Hughes | 3f525d4 | 2014-06-24 16:32:01 -0700 | [diff] [blame] | 1 | /* Generated by gensyscalls.py. Do not edit. */ |
| 2 | |
| 3 | #include <private/bionic_asm.h> |
| 4 | |
Dan Albert | bc9f9f2 | 2014-08-08 15:19:20 -0700 | [diff] [blame] | 5 | .hidden __set_errno |
| 6 | |
Elliott Hughes | 3f525d4 | 2014-06-24 16:32:01 -0700 | [diff] [blame] | 7 | ENTRY(tee) |
| 8 | movq %rcx, %r10 |
| 9 | movl $__NR_tee, %eax |
| 10 | syscall |
| 11 | cmpq $-MAX_ERRNO, %rax |
| 12 | jb 1f |
| 13 | negl %eax |
| 14 | movl %eax, %edi |
Dan Albert | 3726f9c | 2014-08-08 15:15:29 -0700 | [diff] [blame] | 15 | call __set_errno |
Elliott Hughes | 3f525d4 | 2014-06-24 16:32:01 -0700 | [diff] [blame] | 16 | 1: |
| 17 | ret |
| 18 | END(tee) |