pipe.c\unistd\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/unistd/pipe.c
blob: d07b8d24ae3b1f55126700e64994ab55d453fb16 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include <unistd.h>
#include "syscall.h"
int pipe(int fd[2])
{
#ifdef SYS_pipe
	return syscall(SYS_pipe, fd);
#else
	return syscall(SYS_pipe2, fd, 0);
#endif
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月05日 05:06:35 +0000

AltStyle によって変換されたページ (->オリジナル) /