1 1.2 ws /* $NetBSD: pipe.S,v 1.2 1998/05/25 15:28:03 ws Exp $ */ 2 1.1 thorpej 3 1.1 thorpej #include "SYS.h" 4 1.1 thorpej 5 1.1 thorpej ENTRY(pipe) 6 1.1 thorpej mr 5, 3 # save pointer 7 1.1 thorpej li 0,SYS_pipe 8 1.1 thorpej sc # assume, that r5 is kept 9 1.1 thorpej bso 1f 10 1.1 thorpej stw 3,0(5) # success, store fds 11 1.1 thorpej stw 4,4(5) 12 1.1 thorpej li 3,0 13 1.1 thorpej blr # and return 0 14 1.1 thorpej 1: 15 1.1 thorpej b cerror 16