summaryrefslogtreecommitdiff
path: root/include/sys/sem.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2019-07-31 01:17:53 -0400
committerRich Felker <dalias@aerifal.cx>2019-08-02 00:08:23 -0400
commit3c02bacf0f6bed54979e67d22c43745df9add4a0 (patch)
tree79cefd0e7a63642d08972c5f6d69eeaf12c435d2 /include/sys/sem.h
parent72f50245d018af0c31b38dec83c557a4e5dd1ea8 (diff)
downloadmusl-3c02bacf0f6bed54979e67d22c43745df9add4a0.tar.gz
allow archs to define IPC_STAT, propagate time64 bit to other macros
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.
Diffstat (limited to 'include/sys/sem.h')
-rw-r--r--include/sys/sem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sys/sem.h b/include/sys/sem.h
index 61cdb83d..410c8774 100644
--- a/include/sys/sem.h
+++ b/include/sys/sem.h
@@ -31,9 +31,9 @@ extern "C" {
#define _SEM_SEMUN_UNDEFINED 1
-#define SEM_STAT 18
+#define SEM_STAT (18 | (IPC_STAT & 0x100))
#define SEM_INFO 19
-#define SEM_STAT_ANY 20
+#define SEM_STAT_ANY (20 | (IPC_STAT & 0x100))
struct seminfo {
int semmap;