diff options
author | 2017-09-27 23:46:51 +0200 | |
---|---|---|
committer | 2017-09-28 00:49:05 +0200 | |
commit | 2c7bbfaf4e361b482f3ccfbdbb29cc5121ca0ea8 (patch) | |
tree | 43dbd812c9322f390f90d39d85f325bbc7d1cfd8 /dirent | |
parent | Mark __dso_handle as hidden [BZ #18822] (diff) | |
download | glibc-2c7bbfaf4e361b482f3ccfbdbb29cc5121ca0ea8.tar.gz glibc-2c7bbfaf4e361b482f3ccfbdbb29cc5121ca0ea8.tar.bz2 glibc-2c7bbfaf4e361b482f3ccfbdbb29cc5121ca0ea8.zip |
hurd: Fix dirfd symbol exposition from ftw
dirfd is XOPEN2K8 only, it should not be exposed along ftw which is earlier.
* include/dirent.h (__dirfd): New declaration.
* dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
alias.
* sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
* sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
* io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
Diffstat (limited to 'dirent')
-rw-r--r-- | dirent/dirfd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dirent/dirfd.c b/dirent/dirfd.c index 7af77adf01..c1069ffb80 100644 --- a/dirent/dirfd.c +++ b/dirent/dirfd.c @@ -21,10 +21,11 @@ #include <errno.h> int -dirfd (DIR *dirp) +__dirfd (DIR *dirp) { __set_errno (ENOSYS); return -1; } +weak_alias (__dirfd, dirfd) stub_warning (dirfd) |