@@ -322,10 +322,17 @@ pub const EXTATTR_NAMESPACE_EMPTY: ::c_int = 0;
322
322
pub const EXTATTR_NAMESPACE_USER : :: c_int = 1 ;
323
323
pub const EXTATTR_NAMESPACE_SYSTEM : :: c_int = 2 ;
324
324
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 ;
327
334
pub const PTHREAD_MUTEX_ADAPTIVE_NP : :: c_int = 4 ;
328
- pub const SIGSTKSZ : :: size_t = 34816 ;
335
+ pub const SIGSTKSZ : :: size_t = MINSIGSTKSZ + 32768 ;
329
336
pub const SF_NODISKIO : :: c_int = 0x00000001 ;
330
337
pub const SF_MNOWAIT : :: c_int = 0x00000002 ;
331
338
pub const SF_SYNC : :: c_int = 0x00000004 ;
@@ -442,7 +449,13 @@ pub const CLOCK_SECOND: ::clockid_t = 13;
442
449
pub const CLOCK_THREAD_CPUTIME_ID : :: clockid_t = 14 ;
443
450
pub const CLOCK_PROCESS_CPUTIME_ID : :: clockid_t = 15 ;
444
451
452
+ #[ doc( hidden) ]
453
+ #[ deprecated(
454
+ since = "0.2.72" ,
455
+ note = "CTL_UNSPEC is deprecated. Use CTL_SYSCTL instead"
456
+ ) ]
445
457
pub const CTL_UNSPEC : :: c_int = 0 ;
458
+ pub const CTL_SYSCTL : :: c_int = 0 ;
446
459
pub const CTL_KERN : :: c_int = 1 ;
447
460
pub const CTL_VM : :: c_int = 2 ;
448
461
pub const CTL_VFS : :: c_int = 3 ;
@@ -452,6 +465,13 @@ pub const CTL_HW: ::c_int = 6;
452
465
pub const CTL_MACHDEP : :: c_int = 7 ;
453
466
pub const CTL_USER : :: c_int = 8 ;
454
467
pub 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 ;
455
475
pub const KERN_OSTYPE : :: c_int = 1 ;
456
476
pub const KERN_OSRELEASE : :: c_int = 2 ;
457
477
pub const KERN_OSREV : :: c_int = 3 ;
@@ -769,8 +789,14 @@ pub const IPPROTO_BLT: ::c_int = 30;
769
789
pub const IPPROTO_NSP : :: c_int = 31 ;
770
790
/// Merit Internodal
771
791
pub 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
+ ) ]
773
797
pub const IPPROTO_SEP : :: c_int = 33 ;
798
+ /// Datagram Congestion Control Protocol
799
+ pub const IPPROTO_DCCP : :: c_int = 33 ;
774
800
/// Third Party Connect
775
801
pub const IPPROTO_3PC : :: c_int = 34 ;
776
802
/// InterDomain Policy Routing
0 commit comments