@@ -322,10 +322,17 @@ pub const EXTATTR_NAMESPACE_EMPTY: ::c_int = 0;
322322pub const EXTATTR_NAMESPACE_USER : :: c_int = 1 ;
323323pub const EXTATTR_NAMESPACE_SYSTEM : :: c_int = 2 ;
324324
325- pub const RAND_MAX : :: c_int = 0x7fff_fffd ;
326- pub const PTHREAD_STACK_MIN : :: size_t = 2048 ;
325+ cfg_if ! {
326+ if #[ cfg( any( freebsd10, freebsd11, freebsd12) ) ] {
327+ pub const RAND_MAX : :: c_int = 0x7fff_fffd ;
328+ } else {
329+ pub const RAND_MAX : :: c_int = 0x7fff_ffff ;
330+ }
331+ }
332+
333+ pub const PTHREAD_STACK_MIN : :: size_t = MINSIGSTKSZ ;
327334pub const PTHREAD_MUTEX_ADAPTIVE_NP : :: c_int = 4 ;
328- pub const SIGSTKSZ : :: size_t = 34816 ;
335+ pub const SIGSTKSZ : :: size_t = MINSIGSTKSZ + 32768 ;
329336pub const SF_NODISKIO : :: c_int = 0x00000001 ;
330337pub const SF_MNOWAIT : :: c_int = 0x00000002 ;
331338pub const SF_SYNC : :: c_int = 0x00000004 ;
@@ -442,7 +449,13 @@ pub const CLOCK_SECOND: ::clockid_t = 13;
442449pub const CLOCK_THREAD_CPUTIME_ID : :: clockid_t = 14 ;
443450pub const CLOCK_PROCESS_CPUTIME_ID : :: clockid_t = 15 ;
444451
452+ #[ doc( hidden) ]
453+ #[ deprecated(
454+ since = "0.2.72" ,
455+ note = "CTL_UNSPEC is deprecated. Use CTL_SYSCTL instead"
456+ ) ]
445457pub const CTL_UNSPEC : :: c_int = 0 ;
458+ pub const CTL_SYSCTL : :: c_int = 0 ;
446459pub const CTL_KERN : :: c_int = 1 ;
447460pub const CTL_VM : :: c_int = 2 ;
448461pub const CTL_VFS : :: c_int = 3 ;
@@ -452,6 +465,13 @@ pub const CTL_HW: ::c_int = 6;
452465pub const CTL_MACHDEP : :: c_int = 7 ;
453466pub const CTL_USER : :: c_int = 8 ;
454467pub const CTL_P1003_1B : :: c_int = 9 ;
468+ pub const CTL_SYSCTL_DEBUG : :: c_int = 0 ;
469+ pub const CTL_SYSCTL_NAME : :: c_int = 1 ;
470+ pub const CTL_SYSCTL_NEXT : :: c_int = 2 ;
471+ pub const CTL_SYSCTL_NAME2OID : :: c_int = 3 ;
472+ pub const CTL_SYSCTL_OIDFMT : :: c_int = 4 ;
473+ pub const CTL_SYSCTL_OIDDESCR : :: c_int = 5 ;
474+ pub const CTL_SYSCTL_OIDLABEL : :: c_int = 6 ;
455475pub const KERN_OSTYPE : :: c_int = 1 ;
456476pub const KERN_OSRELEASE : :: c_int = 2 ;
457477pub const KERN_OSREV : :: c_int = 3 ;
@@ -769,8 +789,14 @@ pub const IPPROTO_BLT: ::c_int = 30;
769789pub const IPPROTO_NSP : :: c_int = 31 ;
770790/// Merit Internodal
771791pub const IPPROTO_INP : :: c_int = 32 ;
772- /// Sequential Exchange
792+ #[ doc( hidden) ]
793+ #[ deprecated(
794+ since = "0.2.72" ,
795+ note = "IPPROTO_SEP is deprecated. Use IPPROTO_DCCP instead"
796+ ) ]
773797pub const IPPROTO_SEP : :: c_int = 33 ;
798+ /// Datagram Congestion Control Protocol
799+ pub const IPPROTO_DCCP : :: c_int = 33 ;
774800/// Third Party Connect
775801pub const IPPROTO_3PC : :: c_int = 34 ;
776802/// InterDomain Policy Routing
0 commit comments