about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/rewinddir.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2017-09-28 00:41:02 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2017-09-28 00:49:59 +0200
commit64a4af28a62e9f305c82bc9649bbe065fffdeb0d (patch)
tree70b8b85f7ac1b13ac568e446ebd433c945295cf2 /sysdeps/mach/hurd/rewinddir.c
parent52a1f1814ef530d8c78442f2bcaf28f4f2575790 (diff)
downloadglibc-64a4af28a62e9f305c82bc9649bbe065fffdeb0d.tar.gz
glibc-64a4af28a62e9f305c82bc9649bbe065fffdeb0d.tar.xz
glibc-64a4af28a62e9f305c82bc9649bbe065fffdeb0d.zip
hurd: Fix `seekdir' symbol exposition from `rewinddir'
`seekdir' is MISC || XOPEN, it should not be exposed along `rewinddir' which
is POSIX.

	* include/dirent.h (__seekdir): New declaration.
	* sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
	redefine as weak alias.
	* sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
	of seekdir.
Diffstat (limited to 'sysdeps/mach/hurd/rewinddir.c')
-rw-r--r--sysdeps/mach/hurd/rewinddir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/rewinddir.c b/sysdeps/mach/hurd/rewinddir.c
index b6791d95c3..84aa87c961 100644
--- a/sysdeps/mach/hurd/rewinddir.c
+++ b/sysdeps/mach/hurd/rewinddir.c
@@ -24,7 +24,7 @@
 void
 __rewinddir (DIR *dirp)
 {
-  seekdir (dirp, (off_t) 0L);
+  __seekdir (dirp, (off_t) 0L);
 }
 libc_hidden_def (__rewinddir)
 weak_alias (__rewinddir, rewinddir)