summaryrefslogtreecommitdiffstats
path: root/libc/arch-arm/syscalls/sendto.S
blob: 7f64293368687e252ad92ac3130d4ebbc4c201de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* autogenerated by gensyscalls.py */
#include <asm/unistd.h>
#include <linux/err.h>
#include <machine/asm.h>

ENTRY(sendto)
    mov     ip, sp
    .save   {r4, r5, r6, r7}
    stmfd   sp!, {r4, r5, r6, r7}
    ldmfd   ip, {r4, r5, r6}
    ldr     r7, =__NR_sendto
    swi     #0
    ldmfd   sp!, {r4, r5, r6, r7}
    cmn     r0, #(MAX_ERRNO + 1)
    bxls    lr
    neg     r0, r0
    b       __set_errno
END(sendto)