Skip to content

Commit b9f5c46

Browse files
Add UNIX 98 pty functions
1 parent f608f06 commit b9f5c46

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/unix/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,15 @@ extern {
833833
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
834834
link_name = "nice$UNIX2003")]
835835
pub fn nice(incr: ::c_int) -> ::c_int;
836+
837+
pub fn getpt() -> ::c_int;
838+
pub fn grantpt(fd: ::c_int) -> ::c_int;
839+
pub fn posix_openpt(flags: ::c_int) -> ::c_int;
840+
pub fn ptsname(fd: ::c_int) -> *mut ::c_char;
841+
pub fn ptsname_r(fd: ::c_int,
842+
buf: *mut ::c_char,
843+
buflen: ::size_t) -> ::c_int;
844+
pub fn unlockpt(fd: ::c_int) -> ::c_int;
836845
}
837846

838847
cfg_if! {

0 commit comments

Comments
 (0)