summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-06-08 06:50:29 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-06-08 06:50:29 +0000
commit2a21df62fa1178ff1f970a5cf82b75337142d2cf (patch)
tree90486ae6724c9bbffbbac68e2555a6b86d72ae94 /regress
parent712f60603726f0effe80c79ffe79b8b77ded84c4 (diff)
you too, out.
Diffstat (limited to 'regress')
-rw-r--r--regress/sys/miscfs/Makefile7
-rw-r--r--regress/sys/miscfs/fifofs/Makefile7
-rw-r--r--regress/sys/miscfs/fifofs/signal/Makefile7
-rw-r--r--regress/sys/miscfs/fifofs/signal/fifo.c53
4 files changed, 0 insertions, 74 deletions
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 <bsd.subdir.mk>
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 <bsd.subdir.mk>
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 <bsd.regress.mk>
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 <sys/types.h>
-#include <sys/time.h>
-#include <sys/stat.h>
-#include <err.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <signal.h>
-#include <stdio.h>
-#include <unistd.h>
-
-#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);
-}