From: guenther Date: Fri, 24 Dec 2021 08:49:19 +0000 (+0000) Subject: Delete obsolete __syscall regress that tested the old lseek syscall X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1deee32727ae704cba42547218707be7c2dfab6b;p=openbsd Delete obsolete __syscall regress that tested the old lseek syscall with an explicit pad argument. noted by anton@ --- diff --git a/regress/sys/kern/Makefile b/regress/sys/kern/Makefile index ef6534c56bf..108c011566f 100644 --- a/regress/sys/kern/Makefile +++ b/regress/sys/kern/Makefile @@ -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 index e2705a916a2..00000000000 --- a/regress/sys/kern/__syscall/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $OpenBSD: Makefile,v 1.1 2002/02/08 21:39:22 art Exp $ - -PROG= __syscall - -.include diff --git a/regress/sys/kern/__syscall/__syscall.c b/regress/sys/kern/__syscall/__syscall.c deleted file mode 100644 index e7c45e3a9cc..00000000000 --- a/regress/sys/kern/__syscall/__syscall.c +++ /dev/null @@ -1,33 +0,0 @@ -/* $OpenBSD: __syscall.c,v 1.4 2003/11/04 07:28:05 mickey Exp $ */ - -/* - * Written by Michael Shalayeff 2003 Public Domain. - */ - -#include -#include -#include -#include -#include -#include - -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; -}