From 2a21df62fa1178ff1f970a5cf82b75337142d2cf Mon Sep 17 00:00:00 2001 From: "Federico G. Schwindt" Date: Sat, 8 Jun 2002 06:50:29 +0000 Subject: you too, out. --- regress/sys/miscfs/Makefile | 7 ---- regress/sys/miscfs/fifofs/Makefile | 7 ---- regress/sys/miscfs/fifofs/signal/Makefile | 7 ---- regress/sys/miscfs/fifofs/signal/fifo.c | 53 ------------------------------- 4 files changed, 74 deletions(-) delete mode 100644 regress/sys/miscfs/Makefile delete mode 100644 regress/sys/miscfs/fifofs/Makefile delete mode 100644 regress/sys/miscfs/fifofs/signal/Makefile delete mode 100644 regress/sys/miscfs/fifofs/signal/fifo.c (limited to 'regress') diff --git a/regress/sys/miscfs/Makefile b/regress/sys/miscfs/Makefile deleted file mode 100644 index 2e781de0d24..00000000000 --- a/regress/sys/miscfs/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -# $OpenBSD: Makefile,v 1.1 2002/03/10 23:46:40 fgsch Exp $ - -SUBDIR+= fifofs - -install: - -.include diff --git a/regress/sys/miscfs/fifofs/Makefile b/regress/sys/miscfs/fifofs/Makefile deleted file mode 100644 index 32c5275b223..00000000000 --- a/regress/sys/miscfs/fifofs/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -# $OpenBSD: Makefile,v 1.1 2002/03/10 23:46:40 fgsch Exp $ - -SUBDIR+= signal - -install: - -.include diff --git a/regress/sys/miscfs/fifofs/signal/Makefile b/regress/sys/miscfs/fifofs/signal/Makefile deleted file mode 100644 index dfea4c7ca57..00000000000 --- a/regress/sys/miscfs/fifofs/signal/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -# $OpenBSD: Makefile,v 1.1 2002/03/10 23:37:47 fgsch Exp $ - -PROG= fifo - -CLEANFILES= file-fifo - -.include diff --git a/regress/sys/miscfs/fifofs/signal/fifo.c b/regress/sys/miscfs/fifofs/signal/fifo.c deleted file mode 100644 index bced6159e32..00000000000 --- a/regress/sys/miscfs/fifofs/signal/fifo.c +++ /dev/null @@ -1,53 +0,0 @@ -/* $OpenBSD: fifo.c,v 1.2 2002/03/13 15:00:37 fgsch Exp $ */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#define FIFO_PATH "file-fifo" - -void handler(int); - -void -handler(int s) -{ - write(2, ".", 1); -} - -int -main(int argc, char **argv) -{ - struct itimerval it; - struct sigaction act; - - unlink(FIFO_PATH); - - if (mkfifo(FIFO_PATH, 0600) < 0) - err(1, "mkfifo"); - - act.sa_handler = handler; - act.sa_flags = SA_RESTART; - if (sigaction(SIGALRM, &act, NULL) < 0) - err(1, "sigaction"); - - it.it_interval.tv_sec = 2; - it.it_interval.tv_usec = 0; - it.it_value = it.it_interval; - if (setitimer(ITIMER_REAL, &it, NULL) < 0) - err(1, "setitimer"); - - if (open(FIFO_PATH, O_RDONLY) < 0) { - if (errno == EINTR) - errx(1, "open not restarted"); - else - err(1, "open"); - } - - exit(0); -} -- cgit v1.2.3