Skip to content

Commit 087b5a4

Browse files
committed
Merge pull request rust-lang#91 from alexcrichton/more-constants
Add KERN_PROC_* constants for OpenBSD
2 parents 47f1439 + e0f3fe3 commit 087b5a4

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

src/unix/bsd/openbsdlike/bitrig.rs

+1
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ pub const PTHREAD_RWLOCK_INITIALIZER: pthread_rwlock_t = 0 as *mut _;
206206
pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 2;
207207

208208
pub const HW_AVAILCPU: ::c_int = 25;
209+
pub const KERN_PROC_ARGS: ::c_int = 55;
209210

210211
extern {
211212
pub fn mprotect(addr: *const ::c_void, len: ::size_t, prot: ::c_int)

src/unix/bsd/openbsdlike/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,8 @@ pub const _SC_TZNAME_MAX : ::c_int = 27;
355355
pub const _SC_PAGESIZE : ::c_int = 28;
356356
pub const _SC_FSYNC : ::c_int = 29;
357357

358+
pub const KERN_PROC_ARGV: ::c_int = 1;
359+
358360
extern {
359361
pub fn mincore(addr: *mut ::c_void, len: ::size_t,
360362
vec: *mut ::c_char) -> ::c_int;

src/unix/bsd/openbsdlike/netbsd.rs

+1
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ pub const PTHREAD_RWLOCK_INITIALIZER: pthread_rwlock_t = pthread_rwlock_t {
271271
ptr_private: 0 as *mut _,
272272
};
273273
pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 2;
274+
pub const KERN_PROC_ARGS: ::c_int = 48;
274275

275276
extern {
276277
pub fn mprotect(addr: *mut ::c_void, len: ::size_t, prot: ::c_int)

src/unix/bsd/openbsdlike/openbsd.rs

+1
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ pub const PTHREAD_RWLOCK_INITIALIZER: pthread_rwlock_t = 0 as *mut _;
209209
pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 2;
210210

211211
pub const HW_AVAILCPU: ::c_int = 25;
212+
pub const KERN_PROC_ARGS: ::c_int = 55;
212213

213214
extern {
214215
pub fn mprotect(addr: *const ::c_void, len: ::size_t, prot: ::c_int)

0 commit comments

Comments
 (0)