summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86/syscalls/setns.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/arch-x86/syscalls/setns.S')
-rw-r--r--libc/arch-x86/syscalls/setns.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/arch-x86/syscalls/setns.S b/libc/arch-x86/syscalls/setns.S
index 2c39a21..736df59 100644
--- a/libc/arch-x86/syscalls/setns.S
+++ b/libc/arch-x86/syscalls/setns.S
@@ -4,10 +4,11 @@
ENTRY(setns)
pushl %ebx
- pushl %ecx
.cfi_def_cfa_offset 8
.cfi_rel_offset ebx, 0
- .cfi_rel_offset ecx, 4
+ pushl %ecx
+ .cfi_adjust_cfa_offset 4
+ .cfi_rel_offset ecx, 0
mov 12(%esp), %ebx
mov 16(%esp), %ecx
movl $__NR_setns, %eax
@@ -16,9 +17,8 @@ ENTRY(setns)
jb 1f
negl %eax
pushl %eax
- call __set_errno
+ call __set_errno_internal
addl $4, %esp
- orl $-1, %eax
1:
popl %ecx
popl %ebx