Skip to content

Commit e01c512

Browse files
Add more FreeBSD consts
1 parent 8b0d1fc commit e01c512

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
@@ -802,6 +802,15 @@ pub const RLIMIT_KQUEUES: ::c_int = 13;
802802
pub const RLIMIT_UMTXP: ::c_int = 14;
803803
#[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
804804
pub const RLIM_NLIMITS: ::rlim_t = 15;
805+
pub const RLIM_SAVED_MAX: ::rlim_t = ::RLIM_INFINITY;
806+
pub const RLIM_SAVED_CUR: ::rlim_t = ::RLIM_INFINITY;
807+
808+
pub const CP_USER: ::c_int = 0;
809+
pub const CP_NICE: ::c_int = 1;
810+
pub const CP_SYS: ::c_int = 2;
811+
pub const CP_INTR: ::c_int = 3;
812+
pub const CP_IDLE: ::c_int = 4;
813+
pub const CPUSTATES: ::c_int = 5;
805814

806815
pub const NI_NOFQDN: ::c_int = 0x00000001;
807816
pub const NI_NUMERICHOST: ::c_int = 0x00000002;
@@ -1787,6 +1796,8 @@ pub const PUSER: ::c_int = PRI_MIN_TIMESHARE;
17871796
pub const PRI_MIN_IDLE: ::c_int = 224;
17881797
pub const PRI_MAX_IDLE: ::c_int = PRI_MAX;
17891798

1799+
pub const NZERO: ::c_int = 0;
1800+
17901801
// Resource utilization information.
17911802
pub const RUSAGE_THREAD: ::c_int = 1;
17921803

0 commit comments

Comments
 (0)