Delete obsolete __syscall regress that tested the old lseek syscall
authorguenther <guenther@openbsd.org>
Fri, 24 Dec 2021 08:49:19 +0000 (08:49 +0000)
committerguenther <guenther@openbsd.org>
Fri, 24 Dec 2021 08:49:19 +0000 (08:49 +0000)
with an explicit pad argument.

noted by anton@

regress/sys/kern/Makefile
regress/sys/kern/__syscall/Makefile [deleted file]
regress/sys/kern/__syscall/__syscall.c [deleted file]

index ef6534c..108c011 100644 (file)
@@ -1,6 +1,5 @@
-#      $OpenBSD: Makefile,v 1.102 2021/12/14 15:57:57 mvs Exp $
+#      $OpenBSD: Makefile,v 1.103 2021/12/24 08:49:19 guenther Exp $
 
-SUBDIR+= __syscall
 SUBDIR+= accept access
 SUBDIR+= bind
 SUBDIR+= clock_gettime cmsgsize
diff --git a/regress/sys/kern/__syscall/Makefile b/regress/sys/kern/__syscall/Makefile
deleted file mode 100644 (file)
index e2705a9..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#      $OpenBSD: Makefile,v 1.1 2002/02/08 21:39:22 art Exp $
-
-PROG=  __syscall
-
-.include <bsd.regress.mk>
diff --git a/regress/sys/kern/__syscall/__syscall.c b/regress/sys/kern/__syscall/__syscall.c
deleted file mode 100644 (file)
index e7c45e3..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/*     $OpenBSD: __syscall.c,v 1.4 2003/11/04 07:28:05 mickey Exp $    */
-
-/*
- * Written by Michael Shalayeff <mickey@openbsd.org> 2003 Public Domain.
- */
-
-#include <sys/types.h>
-#include <sys/syscall.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <fcntl.h>
-#include <err.h>
-
-int
-main(void)
-{
-       extern off_t __syscall();
-       off_t off;
-       int fd;
-
-       if ((fd = open("/etc/passwd", O_RDONLY)) < 0)
-               err(1, "/etc/passwd");
-
-       off = __syscall((u_int64_t)SYS_lseek, fd, 0, (off_t)1, SEEK_SET);
-       if (off < 0)
-               err(1, "lseek");
-
-       off = __syscall((u_int64_t)SYS_lseek, fd, 0, (off_t)0, SEEK_CUR);
-       if (off != 1)
-               errx(1, "lseek: wrong position %llu", off);
-
-       return 0;
-}