From b6938543a91241ed3d46433334ca74534005e392 Mon Sep 17 00:00:00 2001 From: byteallen Date: Thu, 29 Aug 2024 18:07:14 +0800 Subject: [PATCH] Add missing NOTE_MACHTIME and NOTE_MACH_CONTINUOUS_TIME constants to apple. --- libc-test/semver/apple.txt | 2 ++ src/unix/bsd/apple/mod.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/libc-test/semver/apple.txt b/libc-test/semver/apple.txt index bb80ce86b48cf..a9713a8165892 100644 --- a/libc-test/semver/apple.txt +++ b/libc-test/semver/apple.txt @@ -1004,6 +1004,8 @@ NOTE_FORK NOTE_LEEWAY NOTE_LINK NOTE_LOWAT +NOTE_MACHTIME +NOTE_MACH_CONTINUOUS_TIME NOTE_NONE NOTE_NSECONDS NOTE_PCTRLMASK diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index 84e725a91cb9d..04bce679963eb 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -4508,6 +4508,8 @@ pub const NOTE_ABSOLUTE: u32 = 0x00000008; pub const NOTE_LEEWAY: u32 = 0x00000010; pub const NOTE_CRITICAL: u32 = 0x00000020; pub const NOTE_BACKGROUND: u32 = 0x00000040; +pub const NOTE_MACH_CONTINUOUS_TIME: u32 = 0x00000080; +pub const NOTE_MACHTIME: u32 = 0x00000100; pub const NOTE_TRACK: u32 = 0x00000001; pub const NOTE_TRACKERR: u32 = 0x00000002; pub const NOTE_CHILD: u32 = 0x00000004;