summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2016-05-07 19:48:00 +0000
committerguenther <guenther@openbsd.org>2016-05-07 19:48:00 +0000
commit519e025279103464b3bd5d082f5ecc2761f7da56 (patch)
treeb1221f9c2b2d029797a9810db96b9889b454237d /lib/libc
parentPrint RA Route Information prefix, preference and lifetime. (diff)
downloadwireguard-openbsd-519e025279103464b3bd5d082f5ecc2761f7da56.tar.xz
wireguard-openbsd-519e025279103464b3bd5d082f5ecc2761f7da56.zip
Avoid a transient PLT entry for the internal __getcwd syscall stub for
slightly better code on some archs
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/getcwd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/getcwd.c b/lib/libc/gen/getcwd.c
index 8c1d04764fe..7197276d8d7 100644
--- a/lib/libc/gen/getcwd.c
+++ b/lib/libc/gen/getcwd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getcwd.c,v 1.20 2016/05/07 19:05:22 guenther Exp $ */
+/* $OpenBSD: getcwd.c,v 1.21 2016/05/07 19:48:00 guenther Exp $ */
/*
* Copyright (c) 2005 Marius Eriksen <marius@openbsd.org>
@@ -22,6 +22,7 @@
#include <unistd.h>
int __getcwd(char *buf, size_t len);
+PROTO_NORMAL(__getcwd);
char *
getcwd(char *buf, size_t size)