Lines Matching refs:fifo
1 /* $NetBSD: event-read-fifo.c,v 1.1.1.2 2021/04/07 02:43:15 christos Exp $ */
9 * cc -I/usr/local/include -o event-read-fifo event-read-fifo.c \
75 /* On Unix, cleanup event.fifo if SIGINT is received. */
107 const char *fifo = "event.fifo";
110 if (lstat(fifo, &st) == 0) {
118 unlink(fifo);
119 if (mkfifo(fifo, 0600) == -1) {
124 socket = open(fifo, O_RDONLY | O_NONBLOCK, 0);
131 fprintf(stderr, "Write data to %s\n", fifo);
141 /* catch SIGINT so that event.fifo can be cleaned up */
158 unlink(fifo);