summaryrefslogtreecommitdiff
path: root/src/sysdeps/trypipe2.c
blob: 4e63182c31f02c5732dbc25ba36df47e04e2827f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* ISC license. */

#ifndef _NETBSD_SOURCE
#define _NETBSD_SOURCE
#endif
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif

#include <unistd.h>

int main (void)
{
  int p[2] ;
  if (pipe2(p, 0) < 0) return 111 ;
  return 0 ;
}