source: rtems/cpukit/libcsupport/src/pipe.c @ 39bcf257

4.115
Last change on this file since 39bcf257 was 39bcf257, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/06/11 at 15:42:00

2011-12-06 Ralf Corsépius <ralf.corsepius@…>

  • libcsupport/src/pipe.c: Include <unistd.h>. Include <rtems/pipe.h>.
  • Property mode set to 100644
File size: 632 bytes
RevLine 
[c4638fff]1/*
[07a3253d]2 *  pipe() - POSIX 1003.1b 6.1.1 Create an Inter-Process Channel
[c4638fff]3 *
[08311cc3]4 *  COPYRIGHT (c) 1989-1999.
[c4638fff]5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
[0eae36c7]9 *  http://www.rtems.com/license/LICENSE.
[c4638fff]10 *
11 *  $Id$
12 */
13
[9c49db4]14#if HAVE_CONFIG_H
15#include "config.h"
16#endif
17
[39bcf257]18#include <unistd.h>
19
[c4638fff]20#include <errno.h>
[e2324c0]21#include <sys/types.h>
[45fcb76]22#include <rtems/seterr.h>
[39bcf257]23#include <rtems/pipe.h>
[c4638fff]24
[07a3253d]25int pipe(
26  int filsdes[2]
[c4638fff]27)
28{
[45fcb76]29  if (filsdes == NULL)
30    rtems_set_errno_and_return_minus_one( EFAULT );
31
[e2324c0]32  return pipe_create(filsdes);
[c4638fff]33}
Note: See TracBrowser for help on using the repository browser.