From 93bfaed83bee2daafc51686f8d8de8a81929731b Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Sat, 7 May 2016 19:48:01 +0000 Subject: Avoid a transient PLT entry for the internal __getcwd syscall stub for slightly better code on some archs --- lib/libc/gen/getcwd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ -22,6 +22,7 @@ #include int __getcwd(char *buf, size_t len); +PROTO_NORMAL(__getcwd); char * getcwd(char *buf, size_t size) -- cgit v1.2.3