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 Dec 6, 2011 at 3:42:00 PM

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
Line 
1/*
2 *  pipe() - POSIX 1003.1b 6.1.1 Create an Inter-Process Channel
3 *
4 *  COPYRIGHT (c) 1989-1999.
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
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *  $Id$
12 */
13
14#if HAVE_CONFIG_H
15#include "config.h"
16#endif
17
18#include <unistd.h>
19
20#include <errno.h>
21#include <sys/types.h>
22#include <rtems/seterr.h>
23#include <rtems/pipe.h>
24
25int pipe(
26  int filsdes[2]
27)
28{
29  if (filsdes == NULL)
30    rtems_set_errno_and_return_minus_one( EFAULT );
31
32  return pipe_create(filsdes);
33}
Note: See TracBrowser for help on using the repository browser.