File tree Expand file tree Collapse file tree 5 files changed +33
-0
lines changed Expand file tree Collapse file tree 5 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -1232,6 +1232,7 @@ fn test_dragonflybsd(target: &str) {
1232
1232
"glob.h" ,
1233
1233
"grp.h" ,
1234
1234
"ifaddrs.h" ,
1235
+ "kenv.h" ,
1235
1236
"kvm.h" ,
1236
1237
"langinfo.h" ,
1237
1238
"libgen.h" ,
@@ -1933,6 +1934,7 @@ fn test_freebsd(target: &str) {
1933
1934
"grp.h" ,
1934
1935
"iconv.h" ,
1935
1936
"ifaddrs.h" ,
1937
+ "kenv.h" ,
1936
1938
"langinfo.h" ,
1937
1939
"libgen.h" ,
1938
1940
"libutil.h" ,
Original file line number Diff line number Diff line change @@ -503,6 +503,12 @@ IP_TOS
503
503
ITIMER_PROF
504
504
ITIMER_REAL
505
505
ITIMER_VIRTUAL
506
+ KENV_GET
507
+ KENV_SET
508
+ KENV_UNSET
509
+ KENV_DUMP
510
+ KENV_MNAMELEN
511
+ KENV_MVALLEN
506
512
KERN_ARGMAX
507
513
KERN_BOOTFILE
508
514
KERN_BOOTTIME
Original file line number Diff line number Diff line change @@ -592,6 +592,14 @@ JAIL_SYS_DISABLE
592
592
JAIL_SYS_INHERIT
593
593
JAIL_SYS_NEW
594
594
JAIL_UPDATE
595
+ KENV_GET
596
+ KENV_SET
597
+ KENV_UNSET
598
+ KENV_DUMP
599
+ KENV_DUMP_LOADER
600
+ KENV_DUMP_STATIC
601
+ KENV_MNAMELEN
602
+ KENV_MVALLEN
595
603
KERN_ARGMAX
596
604
KERN_ARND
597
605
KERN_BOOTFILE
Original file line number Diff line number Diff line change @@ -4680,6 +4680,9 @@ pub const SCTP_ASSOC_RESET_FAILED: ::c_int = 0x0008;
4680
4680
pub const SCTP_STREAM_CHANGE_DENIED : :: c_int = 0x0004 ;
4681
4681
pub const SCTP_STREAM_CHANGE_FAILED : :: c_int = 0x0008 ;
4682
4682
4683
+ pub const KENV_DUMP_LOADER : :: c_int = 4 ;
4684
+ pub const KENV_DUMP_STATIC : :: c_int = 5 ;
4685
+
4683
4686
cfg_if ! {
4684
4687
if #[ cfg( libc_const_extern_fn) ] {
4685
4688
pub const fn MAP_ALIGNED ( a: :: c_int) -> :: c_int {
Original file line number Diff line number Diff line change @@ -1434,6 +1434,13 @@ pub const SHM_RND: ::c_int = 0o20000;
1434
1434
pub const SHM_R : :: c_int = 0o400 ;
1435
1435
pub const SHM_W : :: c_int = 0o200 ;
1436
1436
1437
+ pub const KENV_GET : :: c_int = 0 ;
1438
+ pub const KENV_SET : :: c_int = 1 ;
1439
+ pub const KENV_UNSET : :: c_int = 2 ;
1440
+ pub const KENV_DUMP : :: c_int = 3 ;
1441
+ pub const KENV_MNAMELEN : :: c_int = 128 ;
1442
+ pub const KENV_MVALLEN : :: c_int = 128 ;
1443
+
1437
1444
safe_f ! {
1438
1445
pub { const } fn WIFCONTINUED ( status: :: c_int) -> bool {
1439
1446
status == 0x13
@@ -1737,6 +1744,13 @@ extern "C" {
1737
1744
pub fn eui64_hostton ( hostname : * const :: c_char , id : * mut eui64 ) -> :: c_int ;
1738
1745
1739
1746
pub fn eaccess ( path : * const :: c_char , mode : :: c_int ) -> :: c_int ;
1747
+
1748
+ pub fn kenv (
1749
+ action : :: c_int ,
1750
+ name : * const :: c_char ,
1751
+ value : * mut :: c_char ,
1752
+ len : :: c_int ,
1753
+ ) -> :: c_int ;
1740
1754
}
1741
1755
1742
1756
#[ link( name = "rt" ) ]
You can’t perform that action at this time.
0 commit comments