diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2016-05-07 19:48:01 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2016-05-07 19:48:01 +0000 |
commit | 93bfaed83bee2daafc51686f8d8de8a81929731b (patch) | |
tree | 1ab649dff59cefc350e31df36749b55cf9986bc3 | |
parent | 2a3f0b15dcffd421942c605733b355bcf7e49d72 (diff) |
Avoid a transient PLT entry for the internal __getcwd syscall stub for
slightly better code on some archs
-rw-r--r-- | lib/libc/gen/getcwd.c | 3 |
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) |