Skip to content

Commit 77e0da5

Browse files
committed
Auto merge of #635 - Susurrus:termios_again, r=alexcrichton
Finish off termios (hopefully!) `cfmakesane` for FreeBSD and `tcgetsid` for everyone!
2 parents 83f5543 + e591c6f commit 77e0da5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ extern {
576576
msgtyp: ::c_long, msgflg: ::c_int) -> ::c_int;
577577
pub fn msgsnd(msqid: ::c_int, msgp: *const ::c_void, msgsz: ::size_t,
578578
msgflg: ::c_int) -> ::c_int;
579+
pub fn cfmakesane(termios: *mut ::termios);
579580
}
580581

581582
cfg_if! {

src/unix/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,7 @@ extern {
863863
termios: *const ::termios) -> ::c_int;
864864
pub fn tcflow(fd: ::c_int, action: ::c_int) -> ::c_int;
865865
pub fn tcflush(fd: ::c_int, action: ::c_int) -> ::c_int;
866+
pub fn tcgetsid(fd: ::c_int) -> ::pid_t;
866867
pub fn tcsendbreak(fd: ::c_int, duration: ::c_int) -> ::c_int;
867868
pub fn mkstemp(template: *mut ::c_char) -> ::c_int;
868869
pub fn mkdtemp(template: *mut ::c_char) -> *mut ::c_char;

0 commit comments

Comments
 (0)