glibc/sysdeps/unix/sysv/linux/alpha
Joseph Myers c4eae75271 Fix __get_nprocs fgets_unlocked namespace (bug 17582).
__get_nprocs is called from malloc code, but calls fgets_unlocked,
which is not an ISO C or POSIX function.  This patch fixes it to call
a new __fgets_unlocked name instead.

Note: there are various other uses of fgets_unlocked in glibc's
libraries, and I haven't yet investigated which others might also be
problematic (called directly or indirectly from standard functions)
and so need to change to use __fgets_unlocked.

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

	[BZ #17582]
	* libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
	(__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
	* libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
	and define as weak alias of __fgets_unlocked.  Use
	libc_hidden_weak.
	(__fgets_unlocked): Use libc_hidden_def.
	* include/stdio.h (__fgets_unlocked): Declare.  Use
	libc_hidden_proto.
	* sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
	__fgets_unlocked instead of fgets_unlocked.
	* sysdeps/unix/sysv/linux/alpha/getsysstats.c
	(GET_NPROCS_CONF_PARSER): Likewise.
	* sysdeps/unix/sysv/linux/sparc/getsysstats.c
	(GET_NPROCS_CONF_PARSER): Likewise.
2014-11-12 22:39:36 +00:00
..
alpha
alphaev6/fpu
alphaev67/fpu
bits Add adaptive elision to rwlocks 2014-06-13 13:15:28 -07:00
fpu
sys
____longjmp_chk.S
a.out.h
adjtime.c Don't use INTUSE with __adjtimex (bug 14132). 2014-10-08 23:19:32 +00:00
aio_cancel.c alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/ 2014-05-23 11:20:48 -07:00
arch-fork.h
brk.S
c++-types.data alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/ 2014-05-23 11:20:48 -07:00
clone.S alpha: Merge standard and nptl clone.S 2014-05-23 11:20:41 -07:00
configure
configure.ac
creat.c Remove __libc_creat function name. 2014-10-30 19:44:31 +00:00
dl-auxv.h
dl-brk.S
dl-fxstatat64.c Remove __ASSUME_ATFCTS conditionals in sysdeps/unix/sysv/linux/. 2014-06-20 15:41:35 +00:00
dl-support.c
dl-sysdep.c
fdatasync.c
fraiseexcpt.S alpha: Fix exception raising from soft-fp 2014-08-05 13:36:36 -07:00
fstatfs64.c
fstatvfs64.c
fstatvfs.c
fxstat.c
fxstatat.c Remove __ASSUME_ATFCTS conditionals in sysdeps/unix/sysv/linux/. 2014-06-20 15:41:35 +00:00
getclktck.c
getcontext.S
getdents64.c
getdents.c
gethostname.c
getsysstats.c Fix __get_nprocs fgets_unlocked namespace (bug 17582). 2014-11-12 22:39:36 +00:00
glob.c
ieee_get_fp_control.S
ieee_set_fp_control.S
Implies NPTL is no longer an add-on! 2014-07-07 09:29:06 -07:00
internal_statvfs64.c
ioperm.c
ipc_priv.h
kernel_sigaction.h
kernel_stat.h
kernel_sysinfo.h
kernel_termios.h
kernel-features.h
ld.abilist alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/ 2014-05-23 11:20:48 -07:00
libanl.abilist alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/ 2014-05-23 11:20:48 -07:00
libBrokenLocale.abilist alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/ 2014-05-23 11:20:48 -07:00
libc.abilist alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/ 2014-05-23 11:20:48 -07:00
libcrypt.abilist alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/ 2014-05-23 11:20:48 -07:00
libdl.abilist alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/ 2014-05-23 11:20:48 -07:00
libm.abilist alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/ 2014-05-23 11:20:48 -07:00
libnsl.abilist alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/ 2014-05-23 11:20:48 -07:00
libpthread.abilist alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/ 2014-05-23 11:20:48 -07:00
libresolv.abilist alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/ 2014-05-23 11:20:48 -07:00
librt.abilist alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/ 2014-05-23 11:20:48 -07:00
libthread_db.abilist alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/ 2014-05-23 11:20:48 -07:00
libutil.abilist alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/ 2014-05-23 11:20:48 -07:00
localplt.data Run check-localpltk/textrel/execstack over ld.so. 2014-11-06 15:48:44 -05:00
lxstat.c
makecontext.S
Makefile alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/ 2014-05-23 11:20:48 -07:00
msgctl.c
nldbl-abi.h
oldglob.c
pipe.S
pt-vfork.S alpha: Do non-default symbols in pt-vfork.S 2014-05-25 09:04:54 -07:00
register-dump.h
rt_sigaction.S
sem_post.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
semctl.c
setcontext.S
setfpucw.c
shlib-versions Remove configuration name patterns from shlib-versions. 2014-09-12 12:28:47 +00:00
shmctl.c
sigaction.c
sigcontextinfo.h
sigprocmask.c
sigsuspend.S alpha: Create __syscall_nocancel entry points 2014-05-17 11:25:19 -07:00
sizes.h
statfs64.c
statvfs64.c
statvfs.c
swapcontext.S
syscall.S
syscalls.list alpha: Consolidate NPTL/non versions of vfork 2014-05-23 11:20:44 -07:00
sysconf.c
sysdep-cancel.h alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/ 2014-05-23 11:20:48 -07:00
sysdep.h
timer_create.c alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/ 2014-05-23 11:20:48 -07:00
timer_delete.c alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/ 2014-05-23 11:20:48 -07:00
timer_getoverr.c alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/ 2014-05-23 11:20:48 -07:00
timer_gettime.c alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/ 2014-05-23 11:20:48 -07:00
timer_settime.c alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/ 2014-05-23 11:20:48 -07:00
ucontext-offsets.sym
Versions alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/ 2014-05-23 11:20:48 -07:00
vfork.S alpha: Do non-default symbols in pt-vfork.S 2014-05-25 09:04:54 -07:00
wordexp.c
xstat.c
xstatconv.c
xstatconv.h Remove stray includes of kernel-features.h. 2014-06-25 18:09:01 +00:00