aboutsummaryrefslogtreecommitdiff
path: root/include/unistd.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2019-12-01 20:48:46 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2019-12-01 21:05:51 +0000
commitdb25266c9202a1235ce2e2f8a4f84cfb86254196 (patch)
treeb23f1944793f1c15c8cda8b659034454c34fea4e /include/unistd.h
parent892badc9bbcd4a6f8c2eb6c8a99be3aa22517532 (diff)
downloadglibc-db25266c9202a1235ce2e2f8a4f84cfb86254196.zip
glibc-db25266c9202a1235ce2e2f8a4f84cfb86254196.tar.gz
glibc-db25266c9202a1235ce2e2f8a4f84cfb86254196.tar.bz2
hurd: Fix ld.so __getcwd override from libc
ld.so symbols to be overriden by libc need to be extern to really get overriden. __getcwd happens to have never been exposed, putting it to GLIBC_PRIVATE.
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/unistd.h b/include/unistd.h
index a043431..dbfa53d 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -75,7 +75,8 @@ extern int __lchown (const char *__file, __uid_t __owner,
__gid_t __group);
extern int __chdir (const char *__path) attribute_hidden;
extern int __fchdir (int __fd) attribute_hidden;
-extern char *__getcwd (char *__buf, size_t __size) attribute_hidden;
+extern char *__getcwd (char *__buf, size_t __size);
+libc_hidden_proto (__getcwd)
extern int __rmdir (const char *__path) attribute_hidden;
extern int __execvpe (const char *file, char *const argv[],
char *const envp[]) attribute_hidden;