setns.S revision e35fd48a832cddbedcf84773fd1922f735ae7829
1/* Generated by gensyscalls.py. Do not edit. */
2
3#include <private/bionic_asm.h>
4
5    .hidden __set_errno
6
7ENTRY(setns)
8    pushl   %ebx
9    .cfi_def_cfa_offset 8
10    .cfi_rel_offset ebx, 0
11    pushl   %ecx
12    .cfi_adjust_cfa_offset 4
13    .cfi_rel_offset ecx, 0
14    mov     12(%esp), %ebx
15    mov     16(%esp), %ecx
16    movl    $__NR_setns, %eax
17    int     $0x80
18    cmpl    $-MAX_ERRNO, %eax
19    jb      1f
20    negl    %eax
21    pushl   %eax
22    call    __set_errno
23    addl    $4, %esp
241:
25    popl    %ecx
26    popl    %ebx
27    ret
28END(setns)
29