mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 13:30:06 +00:00
c4eae75271
__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. |
||
---|---|---|
.. | ||
alpha | ||
alphaev6/fpu | ||
alphaev67/fpu | ||
bits | ||
fpu | ||
sys | ||
____longjmp_chk.S | ||
a.out.h | ||
adjtime.c | ||
aio_cancel.c | ||
arch-fork.h | ||
brk.S | ||
c++-types.data | ||
clone.S | ||
configure | ||
configure.ac | ||
creat.c | ||
dl-auxv.h | ||
dl-brk.S | ||
dl-fxstatat64.c | ||
dl-support.c | ||
dl-sysdep.c | ||
fdatasync.c | ||
fraiseexcpt.S | ||
fstatfs64.c | ||
fstatvfs64.c | ||
fstatvfs.c | ||
fxstat.c | ||
fxstatat.c | ||
getclktck.c | ||
getcontext.S | ||
getdents64.c | ||
getdents.c | ||
gethostname.c | ||
getsysstats.c | ||
glob.c | ||
ieee_get_fp_control.S | ||
ieee_set_fp_control.S | ||
Implies | ||
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 | ||
libanl.abilist | ||
libBrokenLocale.abilist | ||
libc.abilist | ||
libcrypt.abilist | ||
libdl.abilist | ||
libm.abilist | ||
libnsl.abilist | ||
libpthread.abilist | ||
libresolv.abilist | ||
librt.abilist | ||
libthread_db.abilist | ||
libutil.abilist | ||
localplt.data | ||
lxstat.c | ||
makecontext.S | ||
Makefile | ||
msgctl.c | ||
nldbl-abi.h | ||
oldglob.c | ||
pipe.S | ||
pt-vfork.S | ||
register-dump.h | ||
rt_sigaction.S | ||
sem_post.c | ||
semctl.c | ||
setcontext.S | ||
setfpucw.c | ||
shlib-versions | ||
shmctl.c | ||
sigaction.c | ||
sigcontextinfo.h | ||
sigprocmask.c | ||
sigsuspend.S | ||
sizes.h | ||
statfs64.c | ||
statvfs64.c | ||
statvfs.c | ||
swapcontext.S | ||
syscall.S | ||
syscalls.list | ||
sysconf.c | ||
sysdep-cancel.h | ||
sysdep.h | ||
timer_create.c | ||
timer_delete.c | ||
timer_getoverr.c | ||
timer_gettime.c | ||
timer_settime.c | ||
ucontext-offsets.sym | ||
Versions | ||
vfork.S | ||
wordexp.c | ||
xstat.c | ||
xstatconv.c | ||
xstatconv.h |