Joseph Myers 2f5c1b000a Fix __getcwd rewinddir namespace (bug 17584).
__getcwd is called from dcigettext.o (brought in by various ISO C
functionality), but calls rewinddir, which is not an ISO C function.
This patch makes __getcwd call __rewinddir instead and makes rewinddir
a weak alias for __rewinddir.

Since getcwd.c is shared with gnulib (albeit not merged in either
direction for a long time, and omitted from gnulib's
config/srclist.txt list of shared files) I put in a #ifndef _LIBC
define of __rewinddir to rewinddir, although a future merged version
of getcwd could end up looking significantly different.

Tested for x86_64 (testsuite, and that disassembly of installed shared
libraries is unchanged by this patch).

	[BZ #17584]
	* dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
	as weak alias of __rewinddir.  Don't use libc_hidden_def.
	(__rewinddir): Use libc_hidden_def.
	* sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
	as weak alias of __rewinddir.  Don't use libc_hidden_def.
	(__rewinddir): Use libc_hidden_def.
	* sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
	weak alias of __rewinddir.  Don't use libc_hidden_def.
	(__rewinddir): Use libc_hidden_def.
	* include/dirent.h (rewinddir): Don't use libc_hidden_proto.
	(__rewinddir): Use libc_hidden_proto.
	* sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
	rewinddir.
	(__getcwd): Use __rewinddir instead of rewinddir.
2014-11-12 16:24:16 +00:00
..
2014-11-07 01:27:16 +00:00
2012-01-07 23:57:22 -05:00
2012-05-24 23:08:18 +02:00
2013-09-04 20:47:21 +00:00
2014-10-30 14:00:26 -07:00
2012-11-21 06:33:19 -08:00
2014-03-14 11:32:51 -07:00
2012-01-07 23:57:22 -05:00
2014-10-30 19:44:31 +00:00
2011-10-31 01:51:16 -04:00
2012-05-24 23:08:18 +02:00
2012-05-24 23:06:20 +02:00
2012-05-31 13:10:02 +02:00
2012-01-07 23:57:22 -05:00
2014-02-07 15:26:28 -08:00
2014-03-14 11:32:51 -07:00
2014-11-12 16:22:51 +00:00
2013-09-20 21:25:31 +02:00
2012-01-07 23:57:22 -05:00