1/*- 2 * Copyright (c) 1991 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Ralph Campbell. 7 * 8 * %sccs.include.redist.c% 9 */ 10 11#include "SYS.h" 12 13#if defined(LIBC_SCCS) && !defined(lint) 14 ASMSTR("@(#)pipe.s 5.1 (Berkeley) 02/29/92") 15#endif /* LIBC_SCCS and not lint */ 16 17LEAF(pipe) 18 li v0, SYS_pipe # pipe(fildes) int fildes[2]; 19 syscall 20 bne a3, zero, 1f 21 sw v0, 0(a0) # store the two file descriptors 22 sw v1, 4(a0) 23 move v0, zero 24 j ra 251: 26 j _cerror 27END(pipe) 28