Add missing zstd.h to coregrind Makefile.am noinst_HEADERS
[valgrind.git] / memcheck / tests / darwin / mkfifo.c
blobe92e425475c58fbeab2602adf0f2781f8b4f0897
1 #include <stdio.h>
2 #include <stdlib.h>
4 #include <sys/syscall.h>
5 #include <unistd.h>
6 #include <fcntl.h>
8 #ifndef SYS_mkfifo
9 # define SYS_mkfifo 132
10 #endif
12 static char f_name[]="mkfifo_data_file";
14 int mkfifo(const char *path)
16 return syscall(SYS_mkfifo, path);
19 int main(void)
21 int fd;
23 fd = mkfifo(f_name);
25 if (fd == -1)
26 perror("mkfifo"), exit(1);
28 unlink(f_name);
30 return 0;