about summary refs log tree commit diff
path: root/sysdeps/aarch64/multiarch/memcpy_thunderx2.S
diff options
context:
space:
mode:
authorStafford Horne <shorne@gmail.com>2021-09-24 11:29:33 +0900
committerStafford Horne <shorne@gmail.com>2021-09-24 17:30:03 +0900
commit2efca218b56b0ef32289ad448c05b8f482a2e759 (patch)
tree55e9620d1d77c169f45167c299303ed5affbab1d /sysdeps/aarch64/multiarch/memcpy_thunderx2.S
parent54ff4f1e39067bfd04fb2141710637a11ef88862 (diff)
downloadglibc-2efca218b56b0ef32289ad448c05b8f482a2e759.tar.gz
glibc-2efca218b56b0ef32289ad448c05b8f482a2e759.tar.xz
glibc-2efca218b56b0ef32289ad448c05b8f482a2e759.zip
xsysconf: Only fail on error results and errno set
When testing nptl/tst-pthread-attr-affinity-fail fails with:

    error: xsysconf.c:33: sysconf (83): Cannot allocate memory
    error: 1 test failures

This happens as xsysconf checks the errno after running sysconf.
Internally the sysconf request for _SC_NPROCESSORS_CONF on linux
allocates memory.  But there is a problem, even though malloc succeeds
errno is getting set to ENOMEM.

POSIX allows successful calls to clobber errno.  So xsysconf just
checking errno is wrong.  Fix xsysconf by only failing if we have an
error result and errno is set.
Diffstat (limited to 'sysdeps/aarch64/multiarch/memcpy_thunderx2.S')
0 files changed, 0 insertions, 0 deletions