From 05057ef3f90f5096dbef70dba2d4096d9aa8e240 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Mon, 16 Mar 2026 15:16:45 +0000 Subject: [PATCH] netbsd: add missing CLOCK_ constants https://github.com/NetBSD/src/blob/6ace5fed3bd010695a1b88ca6c1f8a5af7793ffb/sys/sys/time.h#L301-L306 --- libc-test/semver/netbsd.txt | 2 ++ src/new/netbsd/sys/time.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/libc-test/semver/netbsd.txt b/libc-test/semver/netbsd.txt index 7b99a8c29cc3c..182d4e2b5a7b2 100644 --- a/libc-test/semver/netbsd.txt +++ b/libc-test/semver/netbsd.txt @@ -119,7 +119,9 @@ CLD_KILLED CLD_STOPPED CLD_TRAPPED CLOCK_PROCESS_CPUTIME_ID +CLOCK_PROF CLOCK_THREAD_CPUTIME_ID +CLOCK_VIRTUAL CMSG_DATA CMSG_FIRSTHDR CMSG_LEN diff --git a/src/new/netbsd/sys/time.rs b/src/new/netbsd/sys/time.rs index 5f2d39d347e69..b776b2a7db911 100644 --- a/src/new/netbsd/sys/time.rs +++ b/src/new/netbsd/sys/time.rs @@ -9,5 +9,7 @@ s! { } } +pub const CLOCK_VIRTUAL: crate::clockid_t = 1; +pub const CLOCK_PROF: crate::clockid_t = 2; pub const CLOCK_THREAD_CPUTIME_ID: crate::clockid_t = 0x20000000; pub const CLOCK_PROCESS_CPUTIME_ID: crate::clockid_t = 0x40000000;