From 6a27e4b9577a558952acbc386a84bf6ecd3bba82 Mon Sep 17 00:00:00 2001 From: kettenis Date: Fri, 11 Jun 2021 10:29:33 +0000 Subject: [PATCH] Since futex(2) can fail, it needs a full syscall stub. This should fixes issues on powerpc64 and sparc64. Note that this makes the lib/libpthread/errno test fail since that test detects that we are touching errno now. This will be addressed in a future diff as it is not entirely clear whether the test is correct. ok mpi@, bluhm@ --- lib/libc/sys/Makefile.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc index 44fce1a7981..5dafe60f57b 100644 --- a/lib/libc/sys/Makefile.inc +++ b/lib/libc/sys/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.159 2020/07/06 13:33:06 pirofti Exp $ +# $OpenBSD: Makefile.inc,v 1.160 2021/06/11 10:29:33 kettenis Exp $ # $NetBSD: Makefile.inc,v 1.35 1995/10/16 23:49:07 jtc Exp $ # @(#)Makefile.inc 8.1 (Berkeley) 6/17/93 @@ -50,7 +50,7 @@ ASM= __semctl.o __syscall.o __thrsigdivert.o \ faccessat.o fchdir.o fchflags.o fchmod.o fchmodat.o fchown.o \ fchownat.o fhopen.o fhstat.o fhstatfs.o \ flock.o fpathconf.o fstat.o fstatat.o fstatfs.o \ - futimens.o futimes.o \ + futex.o futimens.o futimes.o \ getentropy.o getdents.o getfh.o getfsstat.o \ getgroups.o getitimer.o getpeername.o getpgid.o \ getpriority.o getresgid.o getresuid.o \ @@ -88,7 +88,6 @@ DASM= ${ASM:.o=.do} # syscalls that CANNOT FAIL. They can return whatever value they want, # they just never want to set errno. ASM_NOERR=__get_tcb.o __set_tcb.o __threxit.o __thrsleep.o __thrwakeup.o \ - futex.o \ getdtablecount.o getegid.o geteuid.o getgid.o getlogin_r.o \ getpgrp.o getpid.o getppid.o getrtable.o getthrid.o getuid.o \ issetugid.o \ -- 2.20.1