152727Sbostic/*- 2*61148Sbostic * Copyright (c) 1991, 1993 3*61148Sbostic * The Regents of the University of California. All rights reserved. 452727Sbostic * 552727Sbostic * This code is derived from software contributed to Berkeley by 652727Sbostic * Ralph Campbell. 752727Sbostic * 852727Sbostic * %sccs.include.redist.c% 952727Sbostic */ 1052727Sbostic 1152727Sbostic#include "SYS.h" 1252727Sbostic 1352727Sbostic#if defined(LIBC_SCCS) && !defined(lint) 14*61148Sbostic ASMSTR("@(#)pipe.s 8.1 (Berkeley) 06/04/93") 1552727Sbostic#endif /* LIBC_SCCS and not lint */ 1652727Sbostic 1752727SbosticLEAF(pipe) 1852727Sbostic li v0, SYS_pipe # pipe(fildes) int fildes[2]; 1952727Sbostic syscall 2052727Sbostic bne a3, zero, 1f 2152727Sbostic sw v0, 0(a0) # store the two file descriptors 2252727Sbostic sw v1, 4(a0) 2352727Sbostic move v0, zero 2452727Sbostic j ra 2552727Sbostic1: 2652727Sbostic j _cerror 2752727SbosticEND(pipe) 28