Skip to content

Commit afc6eb5

Browse files
committed
linux ctermid addition.
close #1928
1 parent 8c6b634 commit afc6eb5

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

libc-test/semver/linux-gnu.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,7 @@ aiocb
567567
backtrace
568568
clock_adjtime
569569
copy_file_range
570+
ctermid
570571
dlinfo
571572
dlmopen
572573
endutxent

libc-test/semver/linux-musl.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ aio_suspend
2525
aio_write
2626
aiocb
2727
clock_adjtime
28+
ctermid
2829
explicit_bzero
2930
futimes
3031
getauxval

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,6 +1274,8 @@ extern "C" {
12741274
pub fn explicit_bzero(s: *mut ::c_void, len: ::size_t);
12751275
// Added in `glibc` 2.29
12761276
pub fn reallocarray(ptr: *mut ::c_void, nmemb: ::size_t, size: ::size_t) -> *mut ::c_void;
1277+
1278+
pub fn ctermid(s: *mut ::c_char) -> *mut ::c_char;
12771279
}
12781280

12791281
extern "C" {

src/unix/linux_like/linux/musl/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,8 @@ extern "C" {
758758

759759
pub fn adjtimex(buf: *mut ::timex) -> ::c_int;
760760
pub fn clock_adjtime(clk_id: ::clockid_t, buf: *mut ::timex) -> ::c_int;
761+
762+
pub fn ctermid(s: *mut ::c_char) -> *mut ::c_char;
761763
}
762764

763765
cfg_if! {

0 commit comments

Comments
 (0)