]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/platform-bionic.git/blob - libc/arch-arm64/syscalls/__getcwd.S
Fixed int fast types for LP64
[android-sdk/platform-bionic.git] / libc / arch-arm64 / syscalls / __getcwd.S
1 /* Generated by gensyscalls.py. Do not edit. */
3 #include <private/bionic_asm.h>
5 ENTRY(__getcwd)
6     stp     x29, x30, [sp, #-16]!
7     mov     x29,  sp
8     str     x8,       [sp, #-16]!
10     mov     x8, __NR_getcwd
11     svc     #0
13     ldr     x8,       [sp], #16
14     ldp     x29, x30, [sp], #16
16     cmn     x0, #(MAX_ERRNO + 1)
17     cneg    x0, x0, hi
18     b.hi    __set_errno
20     ret
21 END(__getcwd)
22 .hidden _C_LABEL(__getcwd)