blob: 41e2370c6fab5e64eb3c0df45e08f52b17055e24 [file] [log] [blame]
Elliott Hughes3f525d42014-06-24 16:32:01 -07001/* Generated by gensyscalls.py. Do not edit. */
2
3#include <private/bionic_asm.h>
4
Dan Albertbc9f9f22014-08-08 15:19:20 -07005 .hidden __set_errno
6
Elliott Hughes3f525d42014-06-24 16:32:01 -07007ENTRY(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 Albert3726f9c2014-08-08 15:15:29 -070015 call __set_errno
Elliott Hughes3f525d42014-06-24 16:32:01 -0700161:
17 ret
18END(tee)