From 50581e41072ab02101c230ee446e57a00d6d9f6e Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 24 Feb 2023 16:30:19 +0000 Subject: [PATCH] Try to warn about syscall() possibly being deleted from libc in the future. The ports team is already running around with axes and mops, but don't worry such an action won't happen quickly. with tb --- lib/libc/dlfcn/init.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/libc/dlfcn/init.c b/lib/libc/dlfcn/init.c index e923ce57a39..db23b5605da 100644 --- a/lib/libc/dlfcn/init.c +++ b/lib/libc/dlfcn/init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init.c,v 1.16 2023/02/21 16:26:57 deraadt Exp $ */ +/* $OpenBSD: init.c,v 1.17 2023/02/24 16:30:19 deraadt Exp $ */ /* * Copyright (c) 2014,2015 Philip Guenther * @@ -35,6 +35,11 @@ #include "init.h" +#if defined(APIWARN) +__warn_references(syscall, + "syscall() may go away, please rewrite code to use direct calls"); +#endif + #define MAX(a,b) (((a)>(b))?(a):(b)) #ifdef TIB_EXTRA_ALIGN -- 2.20.1