blob: e4e94066da59b2b4a7de6b13b9c26ca9b1258f2b [file] [log] [blame]
/* Generated by gensyscalls.py. Do not edit. */
#include <private/bionic_asm.h>
ENTRY(dup)
movl $__NR_dup, %eax
syscall
cmpq $-MAX_ERRNO, %rax
jb 1f
negl %eax
movl %eax, %edi
call PIC_PLT(__set_errno)
1:
ret
END(dup)