xref: /titanic_41/usr/src/lib/libc/port/gen/pipe.c (revision 6774dc07ebd5a9d69956f033d5ac5a68803bd66b)
1*5dbfd19aSTheo Schlossnagle /*
2*5dbfd19aSTheo Schlossnagle  * CDDL HEADER START
3*5dbfd19aSTheo Schlossnagle  *
4*5dbfd19aSTheo Schlossnagle  * The contents of this file are subject to the terms of the
5*5dbfd19aSTheo Schlossnagle  * Common Development and Distribution License (the "License").
6*5dbfd19aSTheo Schlossnagle  * You may not use this file except in compliance with the License.
7*5dbfd19aSTheo Schlossnagle  *
8*5dbfd19aSTheo Schlossnagle  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*5dbfd19aSTheo Schlossnagle  * or http://www.opensolaris.org/os/licensing.
10*5dbfd19aSTheo Schlossnagle  * See the License for the specific language governing permissions
11*5dbfd19aSTheo Schlossnagle  * and limitations under the License.
12*5dbfd19aSTheo Schlossnagle  *
13*5dbfd19aSTheo Schlossnagle  * When distributing Covered Code, include this CDDL HEADER in each
14*5dbfd19aSTheo Schlossnagle  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*5dbfd19aSTheo Schlossnagle  * If applicable, add the following below this CDDL HEADER, with the
16*5dbfd19aSTheo Schlossnagle  * fields enclosed by brackets "[]" replaced with your own identifying
17*5dbfd19aSTheo Schlossnagle  * information: Portions Copyright [yyyy] [name of copyright owner]
18*5dbfd19aSTheo Schlossnagle  *
19*5dbfd19aSTheo Schlossnagle  * CDDL HEADER END
20*5dbfd19aSTheo Schlossnagle  */
21*5dbfd19aSTheo Schlossnagle 
22*5dbfd19aSTheo Schlossnagle /*
23*5dbfd19aSTheo Schlossnagle  * Copyright 2013 OmniTI Computer Consulting, Inc.  All rights reserved.
24*5dbfd19aSTheo Schlossnagle  */
25*5dbfd19aSTheo Schlossnagle 
26*5dbfd19aSTheo Schlossnagle #pragma weak _pipe	= pipe
27*5dbfd19aSTheo Schlossnagle 
28*5dbfd19aSTheo Schlossnagle #include "lint.h"
29*5dbfd19aSTheo Schlossnagle #include <unistd.h>
30*5dbfd19aSTheo Schlossnagle 
31*5dbfd19aSTheo Schlossnagle int
pipe(int * fds)32*5dbfd19aSTheo Schlossnagle pipe(int *fds)
33*5dbfd19aSTheo Schlossnagle {
34*5dbfd19aSTheo Schlossnagle 	return (pipe2(fds, 0));
35*5dbfd19aSTheo Schlossnagle }
36