Skip to content

Commit f789339

Browse files
committed
Auto merge of #2536 - GuillaumeGomez:freebsd-consts, r=Amanieu
Add more FreeBSD consts
2 parents 9742c75 + e01c512 commit f789339

File tree

1 file changed

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

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,15 @@ pub const RLIMIT_KQUEUES: ::c_int = 13;
838838
pub const RLIMIT_UMTXP: ::c_int = 14;
839839
#[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
840840
pub const RLIM_NLIMITS: ::rlim_t = 15;
841+
pub const RLIM_SAVED_MAX: ::rlim_t = ::RLIM_INFINITY;
842+
pub const RLIM_SAVED_CUR: ::rlim_t = ::RLIM_INFINITY;
843+
844+
pub const CP_USER: ::c_int = 0;
845+
pub const CP_NICE: ::c_int = 1;
846+
pub const CP_SYS: ::c_int = 2;
847+
pub const CP_INTR: ::c_int = 3;
848+
pub const CP_IDLE: ::c_int = 4;
849+
pub const CPUSTATES: ::c_int = 5;
841850

842851
pub const NI_NOFQDN: ::c_int = 0x00000001;
843852
pub const NI_NUMERICHOST: ::c_int = 0x00000002;
@@ -1896,6 +1905,8 @@ pub const PUSER: ::c_int = PRI_MIN_TIMESHARE;
18961905
pub const PRI_MIN_IDLE: ::c_int = 224;
18971906
pub const PRI_MAX_IDLE: ::c_int = PRI_MAX;
18981907

1908+
pub const NZERO: ::c_int = 0;
1909+
18991910
// Resource utilization information.
19001911
pub const RUSAGE_THREAD: ::c_int = 1;
19011912

0 commit comments

Comments
 (0)