2013-10-16 14:27:59 -07:00
|
|
|
/* Generated by gensyscalls.py. Do not edit. */
|
|
|
|
|
2013-03-22 13:50:44 -07:00
|
|
|
#include <asm/unistd.h>
|
2013-03-12 14:57:30 -07:00
|
|
|
#include <linux/err.h>
|
2011-02-17 10:47:44 -08:00
|
|
|
#include <machine/asm.h>
|
2009-03-03 19:28:35 -08:00
|
|
|
|
2011-02-17 10:47:44 -08:00
|
|
|
ENTRY(setsockopt)
|
2009-03-03 19:28:35 -08:00
|
|
|
mov ip, sp
|
|
|
|
.save {r4, r5, r6, r7}
|
|
|
|
stmfd sp!, {r4, r5, r6, r7}
|
|
|
|
ldmfd ip, {r4, r5, r6}
|
|
|
|
ldr r7, =__NR_setsockopt
|
|
|
|
swi #0
|
|
|
|
ldmfd sp!, {r4, r5, r6, r7}
|
2013-03-12 14:57:30 -07:00
|
|
|
cmn r0, #(MAX_ERRNO + 1)
|
|
|
|
bxls lr
|
|
|
|
neg r0, r0
|
|
|
|
b __set_errno
|
2011-02-17 10:47:44 -08:00
|
|
|
END(setsockopt)
|