glibc/htl
Florian Weimer e9fed2438a linux: Require /dev/shm as the shared memory file system
Previously, glibc would pick an arbitrary tmpfs file system from
/proc/mounts if /dev/shm was not available.  This could lead to
an unsuitable file system being picked for the backing storage for
shm_open, sem_open, and related functions.

This patch introduces a new function, __shm_get_name, which builds
the file name under the appropriate (now hard-coded) directory.  It is
called from the various shm_* and sem_* function.  Unlike the
SHM_GET_NAME macro it replaces, the callers handle the return values
and errno updates.  shm-directory.c is moved directly into the posix
subdirectory because it can be implemented directly using POSIX
functionality.  It resides in libc because it is needed by both
librt and nptl/htl.

In the sem_open implementation, tmpfname is initialized directly
from a string constant.  This happens to remove one alloca call.

Checked on x86_64-linux-gnu.
2021-02-08 14:10:42 -03:00
..
tests Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
alloca_cutoff.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
cancellation.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
configure
configure.in
cthreads-compat.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
forward.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
herrno.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libc_pthread_init.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libpthread_pic.a htl: Fix linking static tests by factorizing the symbols list 2020-06-10 21:34:19 +00:00
libpthread_syms.a hurd: Remove some remnants of cthreads 2020-11-15 13:16:03 +01:00
libpthread.a htl: Fix linking static tests by factorizing the symbols list 2020-06-10 21:34:19 +00:00
lockfile.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Makefile linux: Require /dev/shm as the shared memory file system 2021-02-08 14:10:42 -03:00
pt-alloc.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pt-cancel.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pt-cleanup.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pt-create.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pt-dealloc.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pt-detach.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pt-exit.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pt-getattr.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pt-initialize.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pt-internal.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pt-join.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pt-self.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pt-setcancelstate.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pt-setcanceltype.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pt-sigmask.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pt-spin-inlines.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pt-testcancel.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pt-yield.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
register-atfork.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
semaphoreP.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
shlib-versions
Versions linux: Require /dev/shm as the shared memory file system 2021-02-08 14:10:42 -03:00