1302092Sbrooks/*- 2302092Sbrooks * Copyright (c) 2016 SRI International 3302092Sbrooks * All rights reserved. 4302092Sbrooks * 5302092Sbrooks * This software was developed by SRI International and the University of 6302092Sbrooks * Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237 7302092Sbrooks * ("CTSRD"), as part of the DARPA CRASH research programme. 8302092Sbrooks * 9302092Sbrooks * Redistribution and use in source and binary forms, with or without 10302092Sbrooks * modification, are permitted provided that the following conditions 11302092Sbrooks * are met: 12302092Sbrooks * 1. Redistributions of source code must retain the above copyright 13302092Sbrooks * notice, this list of conditions and the following disclaimer. 14302092Sbrooks * 2. Redistributions in binary form must reproduce the above copyright 15302092Sbrooks * notice, this list of conditions and the following disclaimer in the 16302092Sbrooks * documentation and/or other materials provided with the distribution. 17302092Sbrooks * 18302092Sbrooks * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 19302092Sbrooks * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20302092Sbrooks * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21302092Sbrooks * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 22302092Sbrooks * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23302092Sbrooks * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24302092Sbrooks * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25302092Sbrooks * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26302092Sbrooks * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27302092Sbrooks * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28302092Sbrooks * SUCH DAMAGE. 29302092Sbrooks * 30302092Sbrooks * $FreeBSD: releng/11.0/lib/libc/sys/pipe.c 302092 2016-06-22 21:11:27Z brooks $ 31302092Sbrooks */ 32302092Sbrooks 33302092Sbrooks#include <sys/cdefs.h> 34302092Sbrooks 35302092Sbrooks#include <unistd.h> 36302092Sbrooks 37302092Sbrooks__weak_reference(__sys_pipe, pipe); 38302092Sbrooks__weak_reference(__sys_pipe, _pipe); 39302092Sbrooks 40302092Sbrooksextern int __sys_pipe2(int fildes[2], int flags); 41302092Sbrooks 42302092Sbrooksint 43302092Sbrooks__sys_pipe(int fildes[2]) 44302092Sbrooks{ 45302092Sbrooks 46302092Sbrooks return (__sys_pipe2(fildes, 0)); 47302092Sbrooks} 48