glibc/time
Joseph Myers 30ac923dbe Fix -Os getc_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 getc_unlocked.

__getc_unlocked already exists; this patch makes it explicitly hidden,
calls it where needed for namespace reasons, adds an inline function
for it when inline functions are used and adds libc_hidden_proto /
libc_hidden_weak for getc_unlocked.

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/getc_u.c (getc_unlocked): Use libc_hidden_weak.
	* include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
	attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
	[!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
	* misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
	getc_unlocked.
	* time/tzfile.c (__tzfile_read): Likewise.
2018-02-21 18:01:11 +00:00
..
bits/types
sys
adjtime.c
alt_digit.c
asctime.c
bug-asctime_r.c
bug-asctime.c
bug-getdate1.c
bug-mktime1.c
clock.c
clocktest.c
ctime_r.c
ctime.c
datemsk
Depend
difftime.c
dysize.c
era.c
ftime.c
getdate.c Fix -Os ferror_unlocked linknamespace, localplt issues (bug 15105, bug 19463). 2018-02-19 17:32:34 +00:00
getitimer.c
gettimeofday.c
gmtime.c
lc-time-cleanup.c
localtime.c
Makefile Abbreviated alternative month names (%Ob) also added (bug 10871). 2018-01-22 11:26:55 +01:00
mktime.c
offtime.c
setitimer.c
settimeofday.c
stime.c
strftime_l.c Abbreviated alternative month names (%Ob) also added (bug 10871). 2018-01-22 11:26:55 +01:00
strftime.c
strptime_l.c Abbreviated alternative month names (%Ob) also added (bug 10871). 2018-01-22 11:26:55 +01:00
strptime.c
test_time.c
time.c
time.h time: Reference CLOCKS_PER_SEC in clock comment [BZ #22735] 2018-02-02 11:59:31 +01:00
timegm.c
timespec_get.c
tst_wcsftime.c
tst-ftime_l.c
tst-ftime.c
tst-getdate.c
tst-mktime2.c
tst-mktime3.c
tst-mktime.c
tst-posixtz.c
tst-strftime.c
tst-strptime2.c
tst-strptime3.c
tst-strptime-whitespace.c
tst-strptime.c ru_RU, ru_UA: Add alternative month names (bug 10871). 2018-01-29 13:14:45 +01:00
tst-tzname.c
tzfile.c Fix -Os getc_unlocked linknamespace, localplt issues (bug 15105, bug 19463). 2018-02-21 18:01:11 +00:00
tzset.c
Versions
wcsftime_l.c
wcsftime.c