summaryrefslogtreecommitdiffstats
path: root/config/has/pipe2.c
blob: 4cb43b5da3e9c452a41ccaa254a720d046e4380c (plain)
1
2
3
4
5
6
7
8
9
10
// Copyright © Tavian Barnes <tavianator@tavianator.com>
// SPDX-License-Identifier: 0BSD

#include <fcntl.h>
#include <unistd.h>

int main(void) {
	int fds[2];
	return pipe2(fds, O_CLOEXEC);
}