We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a73d6bc + ccdc5eb commit 99854f3Copy full SHA for 99854f3
src/unix/mod.rs
@@ -754,6 +754,10 @@ extern {
754
pub fn tcgetpgrp(fd: ::c_int) -> pid_t;
755
pub fn tcsetpgrp(fd: ::c_int, pgrp: ::pid_t) -> ::c_int;
756
pub fn ttyname(fd: ::c_int) -> *mut c_char;
757
+ #[cfg_attr(all(target_os = "macos", target_arch = "x86"),
758
+ link_name = "ttyname_r$UNIX2003")]
759
+ pub fn ttyname_r(fd: ::c_int,
760
+ buf: *mut c_char, buflen: ::size_t) -> ::c_int;
761
pub fn unlink(c: *const c_char) -> ::c_int;
762
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
763
link_name = "wait$UNIX2003")]
0 commit comments