Skip to content

Commit

Permalink
Auto merge of #2536 - GuillaumeGomez:freebsd-consts, r=Amanieu
Browse files Browse the repository at this point in the history
Add more FreeBSD consts
  • Loading branch information
bors committed Nov 15, 2021
2 parents 9742c75 + e01c512 commit f789339
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/unix/bsd/freebsdlike/freebsd/mod.rs
Expand Up @@ -838,6 +838,15 @@ pub const RLIMIT_KQUEUES: ::c_int = 13;
pub const RLIMIT_UMTXP: ::c_int = 14;
#[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
pub const RLIM_NLIMITS: ::rlim_t = 15;
pub const RLIM_SAVED_MAX: ::rlim_t = ::RLIM_INFINITY;
pub const RLIM_SAVED_CUR: ::rlim_t = ::RLIM_INFINITY;

pub const CP_USER: ::c_int = 0;
pub const CP_NICE: ::c_int = 1;
pub const CP_SYS: ::c_int = 2;
pub const CP_INTR: ::c_int = 3;
pub const CP_IDLE: ::c_int = 4;
pub const CPUSTATES: ::c_int = 5;

pub const NI_NOFQDN: ::c_int = 0x00000001;
pub const NI_NUMERICHOST: ::c_int = 0x00000002;
Expand Down Expand Up @@ -1896,6 +1905,8 @@ pub const PUSER: ::c_int = PRI_MIN_TIMESHARE;
pub const PRI_MIN_IDLE: ::c_int = 224;
pub const PRI_MAX_IDLE: ::c_int = PRI_MAX;

pub const NZERO: ::c_int = 0;

// Resource utilization information.
pub const RUSAGE_THREAD: ::c_int = 1;

Expand Down

0 comments on commit f789339

Please sign in to comment.