summaryrefslogtreecommitdiff
path: root/src/unix/solarish
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2022-09-10 21:25:18 +0100
committerDavid Carlier <devnexen@gmail.com>2022-09-10 21:25:18 +0100
commit403f63e49713d10e7e64fe719dd9c19d0bc69ed0 (patch)
treea23a4d64bc40f323882747859c3e8e0071b01207 /src/unix/solarish
parent6eee580b51455131b10b780087025379a591ceb6 (diff)
downloadrust-libc-403f63e49713d10e7e64fe719dd9c19d0bc69ed0.tar.gz
solarish SHM* flags
Diffstat (limited to 'src/unix/solarish')
-rw-r--r--src/unix/solarish/mod.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/unix/solarish/mod.rs b/src/unix/solarish/mod.rs
index fef08d08f4..ee67346c76 100644
--- a/src/unix/solarish/mod.rs
+++ b/src/unix/solarish/mod.rs
@@ -1894,6 +1894,14 @@ pub const IPC_RMID: ::c_int = 10;
pub const IPC_SET: ::c_int = 11;
pub const IPC_SEAT: ::c_int = 12;
+// sys/shm.h
+pub const SHM_R: ::c_int = 0o400;
+pub const SHM_W: ::c_int = 0o200;
+pub const SHM_RDONLY: ::c_int = 0o10000;
+pub const SHM_RND: ::c_int = 0o20000;
+pub const SHM_SHARE_MMU: ::c_int = 0o40000;
+pub const SHM_PAGEABLE: ::c_int = 0o100000;
+
pub const SHUT_RD: ::c_int = 0;
pub const SHUT_WR: ::c_int = 1;
pub const SHUT_RDWR: ::c_int = 2;