source: rtems/cpukit/libcsupport/src/pipe.c @ 45fcb76

4.115
Last change on this file since 45fcb76 was 45fcb76, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 28, 2010 at 10:14:35 PM

2010-06-28 Joel Sherrill <joel.sherrill@…>

  • libcsupport/src/brk.c, libcsupport/src/gettod.c, libcsupport/src/times.c, libcsupport/src/fchdir.c, libcsupport/src/ftrylockfile.c, libcsupport/src/getpwent.c, libcsupport/src/gxx_wrappers.c, libcsupport/src/libio_sockets.c, libcsupport/src/pipe.c: Use rtems_set_errno_and_return_minus_one() where it was missed before.
  • Property mode set to 100644
File size: 628 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 <errno.h>
19#include <sys/types.h>
20#include <rtems/seterr.h>
21
22extern int pipe_create(int filsdes[2]);
23
24int pipe(
25  int filsdes[2]
26)
27{
28  if (filsdes == NULL)
29    rtems_set_errno_and_return_minus_one( EFAULT );
30
31  return pipe_create(filsdes);
32}
Note: See TracBrowser for help on using the repository browser.