dup2_callee.asm
bitfixer_bitfixer/dg/z88dk/libsrc/_DEVELOPMENT/fcntl/c/sdcc_ix/dup2_callee.asm

; int dup2_callee(int fd, int fd2)

SECTION code_clib
SECTION code_fcntl

PUBLIC _dup2_callee, l0_dup2_callee

EXTERN asm_dup2

_dup2_callee:

   pop af
   pop hl
   pop de
   push af

l0_dup2_callee:

   push ix
   
   call asm_dup2
   
   pop ix
   ret
