Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-12-01 | Remove some obsolete comments. | Alan Somers | |
ignore really is the correct things to do for these doc tests. compile_fail should only be used for examples that demonstrate a compile failure by design, not for stuff that only works on one platform. | |||
2019-12-01 | impl TryFrom<libc::speed_t> for BaudRate | Alan Somers | |
The old From implementation was actually falliable, and would panic on failure. | |||
2019-12-01 | Remove the last use of mem::uninitialized | Alan Somers | |
Replace it with mem::zeroed. It isn't perfect, but it's better than it was. Issue #1115 | |||
2019-11-02 | sys: termios: Use associated constants for VMIN and VTIME on sparc64 | John Paul Adrian Glaubitz | |
2019-11-01 | sys: termios: Fix inverted logic for [cfg()] conditional for sparc64 | John Paul Adrian Glaubitz | |
The fix for #1149 has the logic for the [cfg()] conditional inverted so that the aliases for VMIN and VTIME are defined on targets that are not linux-sparc64. | |||
2019-11-01 | sys: termios: Define VMIN and VTIME as VEOF and VEOL on sparc64 | John Paul Adrian Glaubitz | |
On sparc64, glibc defines VMIN as VEOF and VTIME as VEOL for termios, so we need to inherit these alias definitions for nix-rust as well. Fixes #1149 | |||
2019-09-19 | Where relevant, replace equality checks in assert! with assert_eq! | Xavier L'Heureux | |
`assert_eq!` gives more debug info when the test fails by default than `assert!`. This should help make debugging easier. | |||
2019-09-03 | Replace most instances of mem::uninitialized with mem::MaybeUninit | Alan Somers | |
Only two instances remain: * For the deprecated sys::socket::CmsgSpace::new. We should probably just remove that method. * For sys::termios::Termios::default_uninit. This will require some more thought. Fixes #1096 | |||
2019-06-09 | Add extra traits for all types | Bryant Mairs | |
Derive Clone, Copy, Eq, Hash, and PartialEq for all types. Not all traits are supported by all types, which is why many are missing some. | |||
2018-12-08 | Replace try! with ? | Alan Somers | |
try! is not available in Rust 2018 | |||
2018-12-01 | Remove duplicate termios constants | Bryant Mairs | |
These constants have the same value on sparc64, so need to be removed as enums in Rust can't have multiple names for the same value. | |||
2018-12-01 | Fix baud rate constants on sparc64-linux | Bryant Mairs | |
2018-11-28 | Prefer `map(drop)` to `map(|_| ())` | Alan Somers | |
I previously advocated for the latter syntax on stylistic grounds. But it generates less efficient code, because it creates a new lambda function for each usage. The optimizer does not combine them. This change saves about 6KB of code. | |||
2018-02-12 | Add cfmakesane() on FreeBSD | Greg V | |
2018-01-28 | Fix B460800 and B921600 baud rates for netbsd | Bryant Mairs | |
2018-01-28 | Require Debug impls for all types | Bryant Mairs | |
2018-01-28 | Deny unused qualifications | Bryant Mairs | |
2018-01-25 | Consistently use `Termios` in comments | Bryant Mairs | |
2018-01-25 | Don't use map(drop) as it's hard to understand | Bryant Mairs | |
.map(drop) makes it seem like there is a need to drop the type at that point when really all you're doing is trying to erase the type information and return an empty tuple. So do that explicitly instead of throwing drop in there. | |||
2018-01-25 | Support arbitrary baud rates on BSDs | Bryant Mairs | |
2017-12-20 | Remove unnecessary '@ _' | Bryant Mairs | |
2017-12-04 | Stop reexporting `Errno` and its variants | Jonas Schievink | |
cc #664 (unsure if this is everything needed) | |||
2017-12-02 | Upgrade to Bitflags 1.0 | Bryant 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-16 | Match libc_bitflags! syntax to upstream bitflags! | Bryant Mairs | |
2017-07-10 | Add tcgetsid() | Bryant Mairs | |
2017-07-10 | Add cfmakeraw and cfsetspeed | Bryant Mairs | |
2017-07-10 | Use libc types for termios | Bryant Mairs | |
This also removes the incorrect TCSASOFT definition as an enum type because it's actually a bitfield. | |||
2017-07-04 | Allow nix to compile on android targets | roblabla | |
2017-06-18 | Update bitflags to 0.9 | equal-l2 | |
2017-04-09 | Removed unused libc imports in termios. | Zac Berkowitz | |
2017-04-09 | Fixes nix-rust/nix#532 | Zac Berkowitz | |
2017-04-09 | Switched bsd speed_t def. to libc::speed_t | Zac Berkowitz | |
2017-02-25 | Using baud constants from libc | Zac Berkowitz | |
New baud constants landed in rust-lang/libc#530, we'll use them. | |||
2017-02-25 | Corrected linux baud constants to octals | Zac Berkowitz | |
2017-02-25 | Added BaudRate enum for termios | Zac Berkowitz | |
Issue #514 | |||
2017-02-16 | Update bitflags to 0.7 | Simon Sapin | |
2016-03-12 | android: Fix reference to libc::ioctl | Kamal Marhubi | |
This fixes an import that was missed in the upgrade from libc 0.1 series to 0.2 series. Refs https://github.com/nix-rust/nix/issues/298 | |||
2016-01-28 | Move errno::Result back to crate root | arcnmx | |
2016-01-28 | Errno::result() | arcnmx | |
2015-11-20 | netbsd support | Jeremy Fitzhardinge | |
2015-09-09 | Add/Fix support for DragonFly BSD | Michael Neumann | |
2015-07-27 | Make it compatible for Android. | Tim JIANG | |
* Fixed an unused_import error in `termios.rs` for Android. * Fixed undefined references to `preadv` and `pwritev` for Android - At least they don't exist from API level 3 to 21. * Fixed the uid > 0 and gid > 0 checks in `stat`'s tests - Running the tests by root is possible, especially when running on a rooted Android device. Those changes made rust-nix buildable (again) on Android. All the tests passed as well. | |||
2015-05-29 | Basic OpenBSD support. | Laurence Tratt | |
Some of the tests are currently unrunnable, but the basic library is at least buildable. | |||
2015-05-28 | Remove std::os::unix::io::RawFd re-export | Carl Lerche | |
2015-05-11 | Get the library to build on freebsd | Andrew J. Stone | |
`cargo build` works. | |||
2015-04-03 | 'derive(Copy)' needs Clone now | Florian Hartwig | |
2015-03-24 | NixResult -> nix::Result; NixError -> nix::Error | Carl Lerche | |
2015-03-13 | Amend some files to make it compile on arm-linux-androideabi. | kennytm | |
2015-02-10 | Add `NixPath`, `NixError`, and `NixResult`. | Utkarsh Kukreti | |
2015-01-20 | Make `tcgetattr` API more ergonomic. | Utkarsh Kukreti | |