glibc/iconv
Joseph Myers 7fc03cf320 Fix -Os feof_unlocked linknamespace, localplt issues (bug 15105, bug 19463).
Continuing the fixes for linknamespace and localplt test failures with
-Os that arise from functions not being inlined in that case, this
patch fixes such failures for feof_unlocked.

The usual approach is followed of adding __feof_unlocked (inlined when
feof_unlocked is), making calls use it when required for namespace
reasons, and using libc_hidden_proto / libc_hidden_weak for the
feof_unlocked weak alias when only localplt but not namespace issues
are involved.  In the case of getaddrinfo.c, use of __feof_unlocked
needs to be conditional since that code is also used in nscd (where
__feof_unlocked is not available).

Tested for x86_64 (both without -Os to make sure that case continues
to work, and with -Os to make sure all the relevant linknamespace and
localplt test failures are resolved).  Because of other such failures
that remain after this patch, neither of the bugs can yet be closed.

	[BZ #15105]
	[BZ #19463]
	* libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
	define as weak alias of __feof_unlocked.  Use libc_hidden_weak.
	* include/stdio.h (feof_unlocked): Use libc_hidden_proto.
	(__feof_unlocked): New declaration, and inline function if
	[__USE_EXTERN_INLINES].
	* iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
	instead of feof_unlocked.
	* intl/localealias.c [_LIBC] (FEOF): Likewise.
	* nss/nsswitch.c (nss_parse_file): Likewise.
	* sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
	Likewise.
	* time/getdate.c (__getdate_r): Likewise.
	* sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
	Define as macro to call __feof_unlocked.
2018-02-15 20:57:15 +00:00
..
dummy-repertoire.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gconv_builtin.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gconv_builtin.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gconv_cache.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gconv_charset.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gconv_close.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gconv_conf.c Fix -Os feof_unlocked linknamespace, localplt issues (bug 15105, bug 19463). 2018-02-15 20:57:15 +00:00
gconv_db.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gconv_dl.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gconv_int.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gconv_open.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gconv_simple.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gconv_trans.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gconv.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gconv.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
iconv_charmap.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
iconv_close.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
iconv_open.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
iconv_prog.c Update copyright dates not handled by scripts/update-copyrights. 2018-01-01 00:41:16 +00:00
iconv_prog.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
iconv.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
iconv.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
iconvconfig.c Update copyright dates not handled by scripts/update-copyrights. 2018-01-01 00:41:16 +00:00
iconvconfig.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
loop.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
Makefile Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
skeleton.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
strtab.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
test-gconv-modules Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-gconv-init-failure-mod.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-gconv-init-failure.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-iconv1.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-iconv2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-iconv3.c Convert tst-iconv3 to use test-skeleton. 2015-02-25 16:01:13 -08:00
tst-iconv4.c [BZ #9793] 2009-02-03 01:31:30 +00:00
tst-iconv5.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-iconv6.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
Versions Complete the removal of __gconv_translit_find 2014-09-12 09:17:32 +02:00