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 | e35fd48 | 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 | ||||
15 | call __set_errno | ||||
16 | 1: | ||||
17 | ret | ||||
18 | END(tee) |