musl/include/sys/shm.h, branch master musl - an implementation of the standard library for Linux-based systems allow archs to define IPC_STAT, propagate time64 bit to other macros 2019年08月02日T04:08:23+00:00 Rich Felker dalias@aerifal.cx 2019年07月31日T05:17:53+00:00 3c02bacf0f6bed54979e67d22c43745df9add4a0 to make use of {sem,shm,msg}ctl IPC_STAT functionality to provide 64-bit time_t on 32-bit archs, IPC_STAT and related macros must be defined with bit 8 (0x100) set. allow archs to define IPC_STAT in bits/ipc.h, and define the other macros in terms of it so that they all get the same value of the time64 bit.
to make use of {sem,shm,msg}ctl IPC_STAT functionality to provide
64-bit time_t on 32-bit archs, IPC_STAT and related macros must be
defined with bit 8 (0x100) set. allow archs to define IPC_STAT in
bits/ipc.h, and define the other macros in terms of it so that they
all get the same value of the time64 bit.
sys/mman.h: add new hugetlb mmap flags from linux v4.19 2019年03月13日T16:32:14+00:00 Szabolcs Nagy nsz@port70.net 2018年11月10日T21:00:06+00:00 db8b53f20733923ab3bb0dd71d31beb37e1e9ad3 aarch64 supports 32MB and 512MB hugetlb page sizes too. added in linux commit 20916d4636a9b3c1bf562b305f91d126771edaf9
aarch64 supports 32MB and 512MB hugetlb page sizes too.
added in linux commit 20916d4636a9b3c1bf562b305f91d126771edaf9
add {MSG,SEM,SHM}_STAT_ANY from linux v4.17 2018年06月19日T17:26:24+00:00 Szabolcs Nagy nsz@port70.net 2018年06月09日T21:06:58+00:00 af55070eae5438476f921d827b7ae49e8141c3fe introduced to stat ipc objects without permission checks since the info is available in /proc/sysvipc anyway, new in linux commits 23c8cec8cf679b10997a512abb1e86f0cedc42ba a280d6dc77eb6002f269d58cd47c7c7e69b617b6 c21a6970ae727839a2f300cd8dd957de0d0238c3
introduced to stat ipc objects without permission checks since the
info is available in /proc/sysvipc anyway, new in linux commits
23c8cec8cf679b10997a512abb1e86f0cedc42ba
a280d6dc77eb6002f269d58cd47c7c7e69b617b6
c21a6970ae727839a2f300cd8dd957de0d0238c3
sys/{mman,shm}.h: add {MAP,SHM}_HUGE_ macros from linux uapi 2018年02月22日T23:48:12+00:00 Szabolcs Nagy nsz@port70.net 2017年11月26日T23:58:25+00:00 abdaba8616c29b0814a4dbe726224b6f2c9f8604 *_HUGE_SHIFT, *_HUGE_2MB, *_HUGE_1GB are documented in the man page, so add all of the *_HUGE_* macros from linux uapi. if MAP_HUGETLB is set, top bits of the mmap flags encode the page size. see the linux commit aafd4562dfee81a40ba21b5ea3cf5e06664bc7f6 if SHM_HUGETLB is set, top bits of the shmget flags encode the page size. see the linux commit 4da243ac1cf6aeb30b7c555d56208982d66d6d33 *_HUGE_16GB is defined unsigned to avoid signed left shift ub.
*_HUGE_SHIFT, *_HUGE_2MB, *_HUGE_1GB are documented in the man page,
so add all of the *_HUGE_* macros from linux uapi.
if MAP_HUGETLB is set, top bits of the mmap flags encode the page size.
see the linux commit aafd4562dfee81a40ba21b5ea3cf5e06664bc7f6
if SHM_HUGETLB is set, top bits of the shmget flags encode the page size.
see the linux commit 4da243ac1cf6aeb30b7c555d56208982d66d6d33
*_HUGE_16GB is defined unsigned to avoid signed left shift ub.
sys/shm.h: move arch specific structs to bits/ 2014年02月23日T10:07:18+00:00 rofl0r retnyg@gmx.net 2014年01月11日T12:41:50+00:00 0f169cbb79c39a5b15f7a27d9283cdeb6e122b8f
fix namespace violation in sys/shm.h 2014年01月09日T00:39:18+00:00 Rich Felker dalias@aerifal.cx 2014年01月09日T00:39:18+00:00 513136efa4274c39ed1c071ae4f4f2b10118f9f5 in fixing this, I've changed the logic from ugly #if/#else blocks inside the struct shm_info definition to a fixed struct definition and optional macros to rename the elements. this will be helpful if we need to move shm_info to a bits header in the future, as it will keep the feature test logic out of bits.
in fixing this, I've changed the logic from ugly #if/#else blocks
inside the struct shm_info definition to a fixed struct definition and
optional macros to rename the elements. this will be helpful if we
need to move shm_info to a bits header in the future, as it will keep
the feature test logic out of bits.
add missing type shmatt_t in sys/shm.h 2013年06月29日T03:39:50+00:00 Rich Felker dalias@aerifal.cx 2013年06月29日T03:39:50+00:00 553d566c3f7080cf1f339eebf715db7e5d0b0d76 this type is not really intended to be used; it's just there to allow implementations to choose the type for the shm_nattch member of struct shmid_sh, presumably since historical implementations disagreed on the type. in any case, it needs to be there, so now it is.
this type is not really intended to be used; it's just there to allow
implementations to choose the type for the shm_nattch member of
struct shmid_sh, presumably since historical implementations disagreed
on the type. in any case, it needs to be there, so now it is.
add some missing macros to sys/shm.h 2012年12月15日T05:43:27+00:00 Rich Felker dalias@aerifal.cx 2012年12月15日T05:43:27+00:00 9cb589939cdbfb2fe273bef3fe557a9a162ddd73 these are not specified in the standard, but in the reserved namespace, so there is no problem with defining them unconditionally.
these are not specified in the standard, but in the reserved
namespace, so there is no problem with defining them unconditionally.
default features: make musl usable without feature test macros 2012年09月08日T03:13:55+00:00 Rich Felker dalias@aerifal.cx 2012年09月08日T03:13:55+00:00 c1a9658bd19245ff0fb52d3da567815d822fb622 the old behavior of exposing nothing except plain ISO C can be obtained by defining __STRICT_ANSI__ or using a compiler option (such as -std=c99) that predefines it. the new default featureset is POSIX with XSI plus _BSD_SOURCE. any explicit feature test macros will inhibit the default. installation docs have also been updated to reflect this change.
the old behavior of exposing nothing except plain ISO C can be
obtained by defining __STRICT_ANSI__ or using a compiler option (such
as -std=c99) that predefines it. the new default featureset is POSIX
with XSI plus _BSD_SOURCE. any explicit feature test macros will
inhibit the default.
installation docs have also been updated to reflect this change.
fix all missing instances of __cplusplus checks/extern "C" in headers 2011年11月11日T01:40:06+00:00 Rich Felker dalias@aerifal.cx 2011年11月11日T01:40:06+00:00 3ed8c9f2df0b5f0bfe1006037c46d4f32ec6ca7b patch by Arvid Picciani (aep)
patch by Arvid Picciani (aep)

AltStyle によって変換されたページ (->オリジナル) /