blob: 2c39a21eb7764bfda5185216adf21671bcf1dc9a [file] [log] [blame]
Elliott Hughes887e1142014-01-02 12:05:50 -08001/* Generated by gensyscalls.py. Do not edit. */
2
3#include <private/bionic_asm.h>
4
5ENTRY(setns)
6 pushl %ebx
7 pushl %ecx
Christopher Ferrise4bc7562014-01-06 16:39:10 -08008 .cfi_def_cfa_offset 8
9 .cfi_rel_offset ebx, 0
10 .cfi_rel_offset ecx, 4
Elliott Hughes887e1142014-01-02 12:05:50 -080011 mov 12(%esp), %ebx
12 mov 16(%esp), %ecx
13 movl $__NR_setns, %eax
14 int $0x80
15 cmpl $-MAX_ERRNO, %eax
16 jb 1f
17 negl %eax
18 pushl %eax
19 call __set_errno
20 addl $4, %esp
21 orl $-1, %eax
221:
23 popl %ecx
24 popl %ebx
25 ret
26END(setns)