Skip to content

Commit f4f8986

Browse files
committed
Add ttyname_r
1 parent caf17a0 commit f4f8986

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,8 @@ extern {
753753
pub fn tcgetpgrp(fd: ::c_int) -> pid_t;
754754
pub fn tcsetpgrp(fd: ::c_int, pgrp: ::pid_t) -> ::c_int;
755755
pub fn ttyname(fd: ::c_int) -> *mut c_char;
756+
pub fn ttyname_r(fd: ::c_int,
757+
buf: *mut c_char, buflen: ::size_t) -> ::c_int;
756758
pub fn unlink(c: *const c_char) -> ::c_int;
757759
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
758760
link_name = "wait$UNIX2003")]

0 commit comments

Comments
 (0)