summaryrefslogtreecommitdiffstats
path: root/libc/arch-mips64/syscalls/__accept4.S
diff options
context:
space:
mode:
authorSreeram Ramachandran <sreeram@google.com>2014-05-19 13:39:57 -0700
committerSreeram Ramachandran <sreeram@google.com>2014-05-19 15:19:16 -0700
commit903b78873a744d3fba187e4bd22008ba21162e51 (patch)
tree54927c30d730513d9cfa817448b3184a6b6531ee /libc/arch-mips64/syscalls/__accept4.S
parent172ab0f65035013565ec57f52ece663082683698 (diff)
downloadbionic-903b78873a744d3fba187e4bd22008ba21162e51.zip
bionic-903b78873a744d3fba187e4bd22008ba21162e51.tar.gz
bionic-903b78873a744d3fba187e4bd22008ba21162e51.tar.bz2
Mark sockets on creation (socket()) and accept4().
Remove the separate syscall for accept() and implement it as accept4(..., 0). Change-Id: Ib0b8f5d7c5013b91eae6bbc3847852eb355c7714
Diffstat (limited to 'libc/arch-mips64/syscalls/__accept4.S')
-rw-r--r--libc/arch-mips64/syscalls/__accept4.S26
1 files changed, 26 insertions, 0 deletions
diff --git a/libc/arch-mips64/syscalls/__accept4.S b/libc/arch-mips64/syscalls/__accept4.S
new file mode 100644
index 0000000..e68bdb6
--- /dev/null
+++ b/libc/arch-mips64/syscalls/__accept4.S
@@ -0,0 +1,26 @@
+/* Generated by gensyscalls.py. Do not edit. */
+
+#include <private/bionic_asm.h>
+
+ENTRY(__accept4)
+ .set push
+ .set noreorder
+ li v0, __NR_accept4
+ syscall
+ bnez a3, 1f
+ move a0, v0
+ j ra
+ nop
+1:
+ move t0, ra
+ bal 2f
+ nop
+2:
+ .cpsetup ra, t1, 2b
+ LA t9,__set_errno
+ .cpreturn
+ j t9
+ move ra, t0
+ .set pop
+END(__accept4)
+.hidden __accept4