Skip to content

Commit

Permalink
Add secure_getenv for Linux variants
Browse files Browse the repository at this point in the history
  • Loading branch information
CuriouslyCurious committed Jul 17, 2023
1 parent af676d1 commit 6e06e46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3413,6 +3413,7 @@ sched_setparam
sched_setscheduler
sctp_assoc_t
seccomp_data
secure_getenv
seed48
seekdir
sem_close
Expand Down
1 change: 1 addition & 0 deletions src/unix/linux_like/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1736,6 +1736,7 @@ extern "C" {
pub fn pthread_rwlockattr_setpshared(attr: *mut pthread_rwlockattr_t, val: ::c_int) -> ::c_int;
pub fn ptsname_r(fd: ::c_int, buf: *mut ::c_char, buflen: ::size_t) -> ::c_int;
pub fn clearenv() -> ::c_int;
pub fn secure_getenv(name: *const ::c_char) -> *mut ::c_char;
pub fn waitid(idtype: idtype_t, id: id_t, infop: *mut ::siginfo_t, options: ::c_int)
-> ::c_int;
pub fn getresuid(ruid: *mut ::uid_t, euid: *mut ::uid_t, suid: *mut ::uid_t) -> ::c_int;
Expand Down

0 comments on commit 6e06e46

Please sign in to comment.