glibc/sysdeps/nptl
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
..
bits Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sys Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
aio_misc.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
allocrtsig.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
dl-thread_gscope_wait.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
dl-tunables.list Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
fork.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
fork.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
futex-internal.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
futex-internal.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gai_misc.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Implies
internaltypes.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
jmp-unwind.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libc-lock.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libc-lockP.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
librt-cancellation.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
lowlevellock-futex.h nptl: Remove private futex optimization [BZ #27304] 2021-02-04 15:00:20 +01:00
lowlevellock.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Makeconfig Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Makefile Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
malloc-machine.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
proc_service.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pthread-functions.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pthread-offsets.h nptl: update default pthread-offsets.h 2020-02-10 17:01:21 +01:00
pthread.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
setxid.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
stdio-lock.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Subdirs
tcb-offsets.h
thrd_create.c C11 threads: Move implementation to sysdeps/pthread 2020-02-09 13:56:48 +01:00
thread_db.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
timer_routines.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-mqueue8x.c
unwind-forcedunwind.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00