]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/platform-bionic.git/blob - libc/arch-x86_64/syscalls/sethostname.S
Merge "implement missing seekdir and telldir"
[android-sdk/platform-bionic.git] / libc / arch-x86_64 / syscalls / sethostname.S
1 /* Generated by gensyscalls.py. Do not edit. */
3 #include <private/bionic_asm.h>
5 ENTRY(sethostname)
6     movl    $__NR_sethostname, %eax
7     syscall
8     cmpq    $-MAX_ERRNO, %rax
9     jb      1f
10     negl    %eax
11     movl    %eax, %edi
12     call    __set_errno_internal
13 1:
14     ret
15 END(sethostname)