Skip to content

Commit 403f63e

Browse files
committed
solarish SHM* flags
1 parent 6eee580 commit 403f63e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/unix/solarish/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1894,6 +1894,14 @@ pub const IPC_RMID: ::c_int = 10;
18941894
pub const IPC_SET: ::c_int = 11;
18951895
pub const IPC_SEAT: ::c_int = 12;
18961896

1897+
// sys/shm.h
1898+
pub const SHM_R: ::c_int = 0o400;
1899+
pub const SHM_W: ::c_int = 0o200;
1900+
pub const SHM_RDONLY: ::c_int = 0o10000;
1901+
pub const SHM_RND: ::c_int = 0o20000;
1902+
pub const SHM_SHARE_MMU: ::c_int = 0o40000;
1903+
pub const SHM_PAGEABLE: ::c_int = 0o100000;
1904+
18971905
pub const SHUT_RD: ::c_int = 0;
18981906
pub const SHUT_WR: ::c_int = 1;
18991907
pub const SHUT_RDWR: ::c_int = 2;

0 commit comments

Comments
 (0)