blob: 4bcd12df81b680b288e7390d1d17a842286a3282 [file] [log] [blame]
Elliott Hughesb86a4c72014-11-07 16:07:13 -08001/* Generated by gensyscalls.py. Do not edit. */
2
3#include <private/bionic_asm.h>
4
5ENTRY(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
131:
14 ret
15END(sethostname)