summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguenther <>2023-05-18 16:11:10 +0000
committerguenther <>2023-05-18 16:11:10 +0000
commit7ffc9f677ed2e28353efec97b72894c9e457f44c (patch)
treea77633d078b5bacfe45046aec757e20cb7493413
parent244fe4acf652024e7c876f6498c46317be42ed9d (diff)
downloadopenbsd-7ffc9f677ed2e28353efec97b72894c9e457f44c.tar.gz
openbsd-7ffc9f677ed2e28353efec97b72894c9e457f44c.tar.bz2
openbsd-7ffc9f677ed2e28353efec97b72894c9e457f44c.zip
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@
-rw-r--r--src/lib/libc/stdlib/realpath.c5
1 files changed, 1 insertions, 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 @@
1/* $OpenBSD: realpath.c,v 1.27 2019/07/05 05:04:26 deraadt Exp $ */ 1/* $OpenBSD: realpath.c,v 1.28 2023/05/18 16:11:10 guenther Exp $ */
2/* 2/*
3 * Copyright (c) 2019 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2019 Bob Beck <beck@openbsd.org>
4 * Copyright (c) 2019 Theo de Raadt <deraadt@openbsd.org> 4 * Copyright (c) 2019 Theo de Raadt <deraadt@openbsd.org>
@@ -24,9 +24,6 @@
24#include <syslog.h> 24#include <syslog.h>
25#include <stdarg.h> 25#include <stdarg.h>
26 26
27int __realpath(const char *pathname, char *resolved);
28PROTO_NORMAL(__realpath);
29
30/* 27/*
31 * wrapper for kernel __realpath 28 * wrapper for kernel __realpath
32 */ 29 */