Skip to content

Commit 17e0106

Browse files
committed
Auto merge of #837 - myfreeweb:freebsd-shm-anon, r=alexcrichton
Add SHM_ANON for FreeBSD This is a constant for `shm_open` that is used instead of the address to create an anonymous shared memory mapping. https://github.com/freebsd/freebsd/blob/a9656e45a9d1cc0fc5343dd941106e0b823ff770/sys/sys/mman.h#L168
2 parents e38483f + 715ed8c commit 17e0106

File tree

1 file changed

+1
-0
lines changed
  • src/unix/bsd/freebsdlike/freebsd

1 file changed

+1
-0
lines changed

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,7 @@ pub const SHM_LOCK: ::c_int = 11;
703703
pub const SHM_UNLOCK: ::c_int = 12;
704704
pub const SHM_STAT: ::c_int = 13;
705705
pub const SHM_INFO: ::c_int = 14;
706+
pub const SHM_ANON: *mut ::c_char = 1 as *mut ::c_char;
706707

707708
// The *_MAXID constants never should've been used outside of the
708709
// FreeBSD base system. And with the exception of CTL_P1003_1B_MAXID,

0 commit comments

Comments
 (0)