From 7ffc9f677ed2e28353efec97b72894c9e457f44c Mon Sep 17 00:00:00 2001 From: guenther <> Date: Thu, 18 May 2023 16:11:10 +0000 Subject: Add PROTO_NORMAL() declarations for the remaining syscalls, to avoid future, inadvertant PLT entries. Move the __getcwd and __realpath declarations to hidden/{stdlib,unistd}.h to consolidate and remove duplication. ok tb@ otto@ deraadt@ --- src/lib/libc/stdlib/realpath.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/libc/stdlib/realpath.c b/src/lib/libc/stdlib/realpath.c index f7ac9fe606..6562e1311b 100644 --- a/src/lib/libc/stdlib/realpath.c +++ b/src/lib/libc/stdlib/realpath.c @@ -1,4 +1,4 @@ -/* $OpenBSD: realpath.c,v 1.27 2019/07/05 05:04:26 deraadt Exp $ */ +/* $OpenBSD: realpath.c,v 1.28 2023/05/18 16:11:10 guenther Exp $ */ /* * Copyright (c) 2019 Bob Beck * Copyright (c) 2019 Theo de Raadt @@ -24,9 +24,6 @@ #include #include -int __realpath(const char *pathname, char *resolved); -PROTO_NORMAL(__realpath); - /* * wrapper for kernel __realpath */ -- cgit v1.2.3-55-g6feb