summaryrefslogtreecommitdiff
path: root/test/sys/test_termios.rs
AgeCommit message (Collapse)Author
2020-08-11use subordinate terminal device for termios callsJoshua M. Clulow
The pseudo-terminal device handling tests in some places make tcgetattr(3C) and tcsetattr(3C) calls using the control/manager file descriptor rather than the subordinate terminal descriptor. This works on some systems, but not all; others such as illumos (and presumably Solaris) are more strict and require the termios requests be made against the terminal descriptor only.
2020-06-04Limit internal termios API to pub(crate)Bryant Mairs
2020-05-31Convert the crate to edition 2018Alan Somers
2018-09-05Replace allow unused directive with _ prefixPascal Bach
2018-01-25Support arbitrary baud rates on BSDsBryant Mairs
2017-12-20Add backticks to types in doccommentsBryant Mairs
2017-12-02Upgrade to Bitflags 1.0Bryant Mairs
The libc_bitflags! macro was replaced with a non-recursive one supporting only public structs. I could not figure out how to make the old macro work with the upgrade, so I reworked part of the bitflags! macro directly to suit our needs, much as the original recursive macro was made. There are no uses of this macro for non-public structs, so this is not a problem for internal code.
2017-08-29Use upstream libc definitions for fcntl FFIBryant Mairs
2017-07-19Fix thread safety issues in pty and termios testsAlan Somers
ptsname(3) returns a pointer to a global variable, so it isn't thread-safe. Protect it with a mutex.
2017-07-17Fix some bugs in the termios testsAlan Somers
* Make test_tcgetattr deterministic. The old version behaved differently depending on what file descriptors were opened by the harness or by other tests, and could race against other tests. * Close some file descriptor leaks Fixes #154
2017-07-10Add cfmakeraw and cfsetspeedBryant Mairs
2017-07-10Use libc types for termiosBryant Mairs
This also removes the incorrect TCSASOFT definition as an enum type because it's actually a bitfield.
2015-05-05feat: add execvpeQingping Hou
2015-03-24NixResult -> nix::Result; NixError -> nix::ErrorCarl Lerche
2015-02-21Cleanup readv & writev + testsCarl Lerche