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) {
12321232 "glob.h" ,
12331233 "grp.h" ,
12341234 "ifaddrs.h" ,
1235+ "kenv.h" ,
12351236 "kvm.h" ,
12361237 "langinfo.h" ,
12371238 "libgen.h" ,
@@ -1933,6 +1934,7 @@ fn test_freebsd(target: &str) {
19331934 "grp.h" ,
19341935 "iconv.h" ,
19351936 "ifaddrs.h" ,
1937+ "kenv.h" ,
19361938 "langinfo.h" ,
19371939 "libgen.h" ,
19381940 "libutil.h" ,
Original file line number Diff line number Diff line change @@ -503,6 +503,12 @@ IP_TOS
503503ITIMER_PROF
504504ITIMER_REAL
505505ITIMER_VIRTUAL
506+ KENV_GET
507+ KENV_SET
508+ KENV_UNSET
509+ KENV_DUMP
510+ KENV_MNAMELEN
511+ KENV_MVALLEN
506512KERN_ARGMAX
507513KERN_BOOTFILE
508514KERN_BOOTTIME
Original file line number Diff line number Diff line change @@ -592,6 +592,14 @@ JAIL_SYS_DISABLE
592592JAIL_SYS_INHERIT
593593JAIL_SYS_NEW
594594JAIL_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
595603KERN_ARGMAX
596604KERN_ARND
597605KERN_BOOTFILE
Original file line number Diff line number Diff line change @@ -4680,6 +4680,9 @@ pub const SCTP_ASSOC_RESET_FAILED: ::c_int = 0x0008;
46804680pub const SCTP_STREAM_CHANGE_DENIED : :: c_int = 0x0004 ;
46814681pub const SCTP_STREAM_CHANGE_FAILED : :: c_int = 0x0008 ;
46824682
4683+ pub const KENV_DUMP_LOADER : :: c_int = 4 ;
4684+ pub const KENV_DUMP_STATIC : :: c_int = 5 ;
4685+
46834686cfg_if ! {
46844687 if #[ cfg( libc_const_extern_fn) ] {
46854688 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;
14341434pub const SHM_R : :: c_int = 0o400 ;
14351435pub const SHM_W : :: c_int = 0o200 ;
14361436
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+
14371444safe_f ! {
14381445 pub { const } fn WIFCONTINUED ( status: :: c_int) -> bool {
14391446 status == 0x13
@@ -1737,6 +1744,13 @@ extern "C" {
17371744 pub fn eui64_hostton ( hostname : * const :: c_char , id : * mut eui64 ) -> :: c_int ;
17381745
17391746 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 ;
17401754}
17411755
17421756#[ link( name = "rt" ) ]
You can’t perform that action at this time.
0 commit comments