Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux/android ctermid addition. #2532

Merged
merged 1 commit into from Nov 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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/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