define TMP_MAX differently for openbsdlike
This commit is contained in:
parent
0f8571b63d
commit
3de62ef5a7
@ -215,6 +215,8 @@ pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 2;
|
||||
pub const HW_AVAILCPU: ::c_int = 25;
|
||||
pub const KERN_PROC_ARGS: ::c_int = 55;
|
||||
|
||||
pub const TMP_MAX : ::c_uint = 0x7fffffff;
|
||||
|
||||
extern {
|
||||
pub fn getnameinfo(sa: *const ::sockaddr,
|
||||
salen: ::socklen_t,
|
||||
|
@ -57,7 +57,6 @@ pub const BUFSIZ : ::c_uint = 1024;
|
||||
pub const FOPEN_MAX : ::c_uint = 20;
|
||||
pub const FILENAME_MAX : ::c_uint = 1024;
|
||||
pub const L_tmpnam : ::c_uint = 1024;
|
||||
pub const TMP_MAX : ::c_uint = 308915776;
|
||||
pub const O_RDONLY : ::c_int = 0;
|
||||
pub const O_WRONLY : ::c_int = 1;
|
||||
pub const O_RDWR : ::c_int = 2;
|
||||
|
@ -320,6 +320,8 @@ pub const NOTE_PCTRLMASK: ::uint32_t = 0xf0000000;
|
||||
|
||||
pub const CRTSCTS: ::tcflag_t = 0x00010000;
|
||||
|
||||
pub const TMP_MAX : ::c_uint = 308915776;
|
||||
|
||||
extern {
|
||||
pub fn getnameinfo(sa: *const ::sockaddr,
|
||||
salen: ::socklen_t,
|
||||
|
@ -214,6 +214,8 @@ pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 2;
|
||||
|
||||
pub const KERN_PROC_ARGS: ::c_int = 55;
|
||||
|
||||
pub const TMP_MAX : ::c_uint = 0x7fffffff;
|
||||
|
||||
// syscall numbers
|
||||
pub const SYS_getentropy: ::c_int = 7;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user