diff options
Diffstat (limited to 'libc/arch-arm64/syscalls/__getpid.S')
-rw-r--r-- | libc/arch-arm64/syscalls/__getpid.S | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libc/arch-arm64/syscalls/__getpid.S b/libc/arch-arm64/syscalls/__getpid.S new file mode 100644 index 0000000..c3003c3 --- /dev/null +++ b/libc/arch-arm64/syscalls/__getpid.S @@ -0,0 +1,15 @@ +/* Generated by gensyscalls.py. Do not edit. */ + +#include <private/bionic_asm.h> + +ENTRY(__getpid) + mov x8, __NR_getpid + svc #0 + + cmn x0, #(MAX_ERRNO + 1) + cneg x0, x0, hi + b.hi __set_errno + + ret +END(__getpid) +.hidden __getpid |