Elliott Hughes | 887e114 | 2014-01-02 12:05:50 -0800 | [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 | 887e114 | 2014-01-02 12:05:50 -0800 | [diff] [blame] | 7 | ENTRY(setns) |
| 8 | movl $__NR_setns, %eax |
| 9 | syscall |
| 10 | cmpq $-MAX_ERRNO, %rax |
| 11 | jb 1f |
| 12 | negl %eax |
| 13 | movl %eax, %edi |
Dan Albert | 3726f9c | 2014-08-08 15:15:29 -0700 | [diff] [blame] | 14 | call __set_errno |
Elliott Hughes | 887e114 | 2014-01-02 12:05:50 -0800 | [diff] [blame] | 15 | 1: |
| 16 | ret |
| 17 | END(setns) |