summaryrefslogtreecommitdiffstats
path: root/libc/arch-mips/syscalls
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-08-10 11:17:59 -0700
committerElliott Hughes <enh@google.com>2012-08-10 12:57:43 -0700
commite36c826f7a6580227e9e70f6ec70aa88ba0f577e (patch)
treed36ec57b36b908d06e3d277c0eb1e486ca18da89 /libc/arch-mips/syscalls
parent4ec9e343cf445c5032d9a782d2e92b1dba713e61 (diff)
downloadbionic-e36c826f7a6580227e9e70f6ec70aa88ba0f577e.zip
bionic-e36c826f7a6580227e9e70f6ec70aa88ba0f577e.tar.gz
bionic-e36c826f7a6580227e9e70f6ec70aa88ba0f577e.tar.bz2
Add unshare() syscall.
(cherry-pick of 5467f25f82934d611c60f8bc57a05114f3c1bea0.) Bug: 6925012 Change-Id: Ic5ea2fbd606311087de05d7a3594df2fa9b2fef9
Diffstat (limited to 'libc/arch-mips/syscalls')
-rw-r--r--libc/arch-mips/syscalls/unshare.S22
1 files changed, 22 insertions, 0 deletions
diff --git a/libc/arch-mips/syscalls/unshare.S b/libc/arch-mips/syscalls/unshare.S
new file mode 100644
index 0000000..11af354
--- /dev/null
+++ b/libc/arch-mips/syscalls/unshare.S
@@ -0,0 +1,22 @@
+/* autogenerated by gensyscalls.py */
+#include <sys/linux-syscalls.h>
+ .text
+ .globl unshare
+ .align 4
+ .ent unshare
+
+unshare:
+ .set noreorder
+ .cpload $t9
+ li $v0, __NR_unshare
+ syscall
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
+ nop
+1:
+ la $t9,__set_errno
+ j $t9
+ nop
+ .set reorder
+ .end unshare