Skip to content

Commit 2fe359b

Browse files
committed
Auto merge of #2250 - devnexen:apple_mem_tag, r=Amanieu
apple add mem tag macro
2 parents 111e9fe + c27981a commit 2fe359b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

libc-test/semver/apple.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,6 +1332,7 @@ VM_FLAGS_USER_MAP
13321332
VM_FLAGS_USER_REMAP
13331333
VM_LOADAVG
13341334
VM_MACHFACTOR
1335+
VM_MAKE_TAG
13351336
VM_MAXID
13361337
VM_MEMORY_ACCELERATE
13371338
VM_MEMORY_ANALYSIS_TOOL

src/unix/bsd/apple/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3590,6 +3590,10 @@ f! {
35903590
(__DARWIN_ALIGN32(::mem::size_of::<::cmsghdr>()) + length as usize)
35913591
as ::c_uint
35923592
}
3593+
3594+
pub {const} fn VM_MAKE_TAG(id: u8) -> u32 {
3595+
(id as u32) << 24u32
3596+
}
35933597
}
35943598

35953599
safe_f! {

0 commit comments

Comments
 (0)