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 Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
alphaev6/fpu Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
alphaev67/fpu Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
bits Add adaptive elision to rwlocks 2014-06-13 13:15:28 -07:00
fpu Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
sys Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
____longjmp_chk.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
a.out.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
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 Alpha: Convert fork.c to arch-fork.h 2014-05-16 13:03:08 -07:00
brk.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
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 Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
configure.ac Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
creat.c Remove __libc_creat function name. 2014-10-30 19:44:31 +00:00
dl-auxv.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
dl-brk.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
dl-fxstatat64.c Remove __ASSUME_ATFCTS conditionals in sysdeps/unix/sysv/linux/. 2014-06-20 15:41:35 +00:00
dl-support.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
dl-sysdep.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
fdatasync.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
fraiseexcpt.S alpha: Fix exception raising from soft-fp 2014-08-05 13:36:36 -07:00
fstatfs64.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
fstatvfs64.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
fstatvfs.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
fxstat.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
fxstatat.c Remove __ASSUME_ATFCTS conditionals in sysdeps/unix/sysv/linux/. 2014-06-20 15:41:35 +00:00
getclktck.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
getcontext.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
getdents64.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
getdents.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
gethostname.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
getsysstats.c Fix __get_nprocs fgets_unlocked namespace (bug 17582). 2014-11-12 22:39:36 +00:00
glob.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
ieee_get_fp_control.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
ieee_set_fp_control.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
Implies NPTL is no longer an add-on! 2014-07-07 09:29:06 -07:00
internal_statvfs64.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
ioperm.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
ipc_priv.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
kernel_sigaction.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
kernel_stat.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
kernel_sysinfo.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
kernel_termios.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
kernel-features.h Reduce kernel-features.h duplication. 2014-05-14 00:45:19 +00:00
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 Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
makecontext.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
Makefile alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/ 2014-05-23 11:20:48 -07:00
msgctl.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
nldbl-abi.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
oldglob.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
pipe.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
pt-vfork.S alpha: Do non-default symbols in pt-vfork.S 2014-05-25 09:04:54 -07:00
register-dump.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
rt_sigaction.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
sem_post.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
semctl.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
setcontext.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
setfpucw.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
shlib-versions Remove configuration name patterns from shlib-versions. 2014-09-12 12:28:47 +00:00
shmctl.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
sigaction.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
sigcontextinfo.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
sigprocmask.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
sigsuspend.S alpha: Create __syscall_nocancel entry points 2014-05-17 11:25:19 -07:00
sizes.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
statfs64.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
statvfs64.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
statvfs.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
swapcontext.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
syscall.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
syscalls.list alpha: Consolidate NPTL/non versions of vfork 2014-05-23 11:20:44 -07:00
sysconf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
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 Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
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 Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
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 Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
xstat.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
xstatconv.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
xstatconv.h Remove stray includes of kernel-features.h. 2014-06-25 18:09:01 +00:00