-# $OpenBSD: Makefile,v 1.104 2023/01/18 19:18:49 anton Exp $
+# $OpenBSD: Makefile,v 1.105 2023/07/06 07:45:56 deraadt Exp $
SUBDIR+= accept access
SUBDIR+= bind
.ifmake clean || cleandir || obj
SUBDIR+= setuid
.endif
-SUBDIR+= signal sosplice stackjmp stackpivot syscall syscall_segment
+SUBDIR+= signal sosplice stackjmp stackpivot syscall_segment
SUBDIR+= sysvmsg sysvsem sysvshm
SUBDIR+= unalign unfdpass unixsockets unveil unveil-unmount
SUBDIR+= wait
+++ /dev/null
-# $OpenBSD: Makefile,v 1.1 2002/02/08 21:33:32 art Exp $
-
-PROG= syscall
-
-.include <bsd.regress.mk>
+++ /dev/null
-/* $OpenBSD: syscall.c,v 1.2 2003/07/31 21:48:10 deraadt Exp $ */
-/*
- * Written by Artur Grabowski <art@openbsd.org> 2002 Public Domain.
- */
-#include <sys/types.h>
-#include <sys/syscall.h>
-#include <sys/wait.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <err.h>
-
-int
-main(int argc, char *argv[])
-{
- int status;
-
- switch(fork()) {
- case -1:
- err(1, "fork");
- case 0:
- syscall(SYS_exit, 17);
- abort();
- }
-
- if (wait(&status) < 0)
- err(1, "wait");
-
- if (!WIFEXITED(status))
- errx(1, "child didn't exit gracefully");
-
- if (WEXITSTATUS(status) != 17)
- errx(1, "wrong exit status");
-
- return 0;
-}