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 | e35fd48 | 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 | mov ip, r7 | ||||
9 | ldr r7, =__NR_setns | ||||
10 | swi #0 | ||||
11 | mov r7, ip | ||||
12 | cmn r0, #(MAX_ERRNO + 1) | ||||
13 | bxls lr | ||||
14 | neg r0, r0 | ||||
15 | b __set_errno | ||||
16 | END(setns) |