Skip to content

Commit

Permalink
Auto merge of #2532 - devnexen:linux_ctermid, r=Amanieu
Browse files Browse the repository at this point in the history
linux/android ctermid addition.

close #1928
  • Loading branch information
bors committed Nov 13, 2021
2 parents 8c6b634 + 710e4c7 commit ed16cb0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/linux-gnu.txt
Expand Up @@ -567,6 +567,7 @@ aiocb
backtrace
clock_adjtime
copy_file_range
ctermid
dlinfo
dlmopen
endutxent
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/linux-musl.txt
Expand Up @@ -25,6 +25,7 @@ aio_suspend
aio_write
aiocb
clock_adjtime
ctermid
explicit_bzero
futimes
getauxval
Expand Down
2 changes: 2 additions & 0 deletions src/unix/linux_like/android/mod.rs
Expand Up @@ -2977,6 +2977,8 @@ extern "C" {
pub fn reallocarray(ptr: *mut ::c_void, nmemb: ::size_t, size: ::size_t) -> *mut ::c_void;

pub fn pthread_getcpuclockid(thread: ::pthread_t, clk_id: *mut ::clockid_t) -> ::c_int;

pub fn ctermid(s: *mut ::c_char) -> *mut ::c_char;
}

cfg_if! {
Expand Down
2 changes: 2 additions & 0 deletions src/unix/linux_like/linux/gnu/mod.rs
Expand Up @@ -1274,6 +1274,8 @@ extern "C" {
pub fn explicit_bzero(s: *mut ::c_void, len: ::size_t);
// Added in `glibc` 2.29
pub fn reallocarray(ptr: *mut ::c_void, nmemb: ::size_t, size: ::size_t) -> *mut ::c_void;

pub fn ctermid(s: *mut ::c_char) -> *mut ::c_char;
}

extern "C" {
Expand Down
2 changes: 2 additions & 0 deletions src/unix/linux_like/linux/musl/mod.rs
Expand Up @@ -758,6 +758,8 @@ extern "C" {

pub fn adjtimex(buf: *mut ::timex) -> ::c_int;
pub fn clock_adjtime(clk_id: ::clockid_t, buf: *mut ::timex) -> ::c_int;

pub fn ctermid(s: *mut ::c_char) -> *mut ::c_char;
}

cfg_if! {
Expand Down

0 comments on commit ed16cb0

Please sign in to comment.