Skip to content

Commit 81e250f

Browse files
committed
Add setenv/unsetenv
1 parent a7e78a7 commit 81e250f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/redox/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ extern {
9393
-> ::ssize_t;
9494
pub fn fcntl(fd: ::c_int, cmd: ::c_int, ...) -> ::c_int;
9595
pub fn close(fd: ::c_int) -> ::c_int;
96+
pub fn setenv(name: *const c_char, val: *const c_char,
97+
overwrite: ::c_int) -> ::c_int;
98+
pub fn unsetenv(name: *const c_char) -> ::c_int;
9699
}
97100

98101
#[link(name = "c")]

0 commit comments

Comments
 (0)