@@ -3,11 +3,15 @@
* sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
__sbrk): Do not set attribute_hidden.
* sysdeps/mach/hurd/not-errno.h: New file.
- * include/unistd.h (__access): Set libc_hidden_proto instead of
- attribute_hidden.
+ * include/unistd.h (__access, __getcwd): Set libc_hidden_proto instead
+ of attribute_hidden.
* io/access.c (__access): Set libc_hidden_def.
+ * io/getcwd.c (__getcwd): Set libc_hidden_def.
* sysdeps/mach/hurd/access.c (__access): Likewise.
+ * sysdeps/mach/hurd/getcwd.c (__getcwd): Likewise.
+ * sysdeps/posix/getcwd.c (__getcwd): Likewise.
* sysdeps/unix/sysv/linux/access.c (__access): Likewise.
+ * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Likewise.
* sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
* sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
* sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
@@ -74,7 +74,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;
@@ -32,6 +32,7 @@ __getcwd (char *buf, size_t size)
__set_errno (ENOSYS);
return NULL;
}
+libc_hidden_def (__getcwd)
weak_alias (__getcwd, getcwd)
stub_warning (__getcwd)
@@ -318,4 +318,5 @@ __getcwd (char *buf, size_t size)
}
return cwd;
}
+libc_hidden_def (__getcwd)
weak_alias (__getcwd, getcwd)
@@ -2,6 +2,7 @@ GLIBC_2.2.6 __access F
GLIBC_2.2.6 __close F
GLIBC_2.2.6 __errno_location F
GLIBC_2.2.6 __fxstat64 F
+GLIBC_2.2.6 __getcwd F
GLIBC_2.2.6 __getpid F
GLIBC_2.2.6 __libc_stack_end D 0x4
GLIBC_2.2.6 __mmap F
@@ -269,6 +269,7 @@ GLIBC_2.2.6 __fwritable F
GLIBC_2.2.6 __fwriting F
GLIBC_2.2.6 __fxstat F
GLIBC_2.2.6 __fxstat64 F
+GLIBC_2.2.6 __getcwd F
GLIBC_2.2.6 __getdelim F
GLIBC_2.2.6 __getpagesize F
GLIBC_2.2.6 __getpgid F
@@ -35,7 +35,7 @@ ld.so: __xstat64
ld.so: __access
ld.so: __access_noerrno
ld.so: __getpid
-#ld.so: __getcwd
+ld.so: __getcwd
ld.so: __sbrk
ld.so: __strtoul_internal
#ld.so: _exit
@@ -531,5 +531,6 @@ __getcwd (char *buf, size_t size)
}
#if defined _LIBC && !defined __getcwd
+libc_hidden_def (__getcwd)
weak_alias (__getcwd, getcwd)
#endif
@@ -127,6 +127,7 @@ __getcwd (char *buf, size_t size)
return NULL;
}
+libc_hidden_def (__getcwd)
weak_alias (__getcwd, getcwd)
/* Get the code for the generic version. */