ack/mach/mantra/libsys/_dup2.s

18 lines
214 B
ArmAsm
Raw Permalink Normal View History

1990-01-22 13:09:29 +00:00
.define __dup2
.extern __dup2
.sect .text
.sect .rom
.sect .data
.sect .bss
.sect .text
__dup2:
tst.b -40(sp)
link a6,#-0
move.l 12(a6),-(sp)
move.l #0,-(sp)
move.l 8(a6),-(sp)
jsr __fcntl
add.l #12,sp
unlk a6
rts