nptl: Allow sem_open to work on MMU-less systems
commita20c0b71dc29e1e2d5637366426e7b9ae058f15b
authorChristophe Lyon <christophe.lyon@st.com>
Wed, 4 Jul 2018 15:55:35 +0000 (4 17:55 +0200)
committerWaldemar Brodkorb <wbrodkorb@conet.de>
Fri, 10 Aug 2018 14:02:45 +0000 (10 16:02 +0200)
treec40553c41bd5f7485c71d0cf9e789ea6a1a0a48b
parent7f07872b8aea16611890865700fbfefd586bc1fb
nptl: Allow sem_open to work on MMU-less systems

Allow both tmpfs and ramfs for shm devices.

* libpthread/nptl/linux_fsinfo.h (SHMFS_SUPER_MAGIC_WITH_MMU): Define.
(SHMFS_SUPER_MAGIC_WITHOUT_MMU): Define.
* libpthread/nptl/sem_open.c (__where_is_shmfs): Add support for
SHMFS_SUPER_MAGIC_WITHOUT_MMU.

Signed-off-by: Mickaël Guêné <mickael.guene@st.com>
Signed-off-by: Christophe Lyon <christophe.lyon@st.com>
libpthread/nptl/linux_fsinfo.h
libpthread/nptl/sem_open.c