summaryrefslogtreecommitdiff
path: root/src/mqueue.rs
AgeCommit message (Collapse)Author
2023-01-10Added `mq_timedreceive` to `::nix::mqueue`.David Collard
2022-11-06Reformat everythingAlex Saveau
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
2022-07-10More docs for mqueue.Alan Somers
Also, delete some dead code. It's always been dead.
2022-01-22Better type safety for mqueueAlan Somers
On some platforms, mqd_t is a pointer. That means code like the below can trigger a segfault. Fix it by defining a Newtype around mqd_t that prevents use-after-free and dangling pointer scenarios. ```rust fn invalid_mqd_t() { let mqd: libc::mqd_t = std::ptr::null_mut(); mq_close(mqd).unwrap(); } ``` Also, get test coverage for mqueue in CI on FreeBSD.
2021-12-27Added getters for the MqAttr structfpagliughi
2021-12-20feature-gate most Nix functionsVincent Dagonneau
Using features reduces build time and size for consumer crates. By default all features are enabled.
2021-09-19Clippy cleanupAlan Somers
And this time, start running Clippy in CI
2021-07-24Constify many functionsAlan Somers
Constify most functions that can be constified. The exceptions are mostly accessors for structs that have no const constructor.
2021-05-13Use https instead of httpRyan Zoeller
2021-02-15Port mqueue to x32наб
Test fix obtained from https://github.com/nix-rust/nix/issues/1384#issuecomment-774708486
2020-05-31Convert the crate to edition 2018Alan Somers
2019-11-02Fix a warning with the latest nightly compilerAlan Somers
The latest compiler warns about unnecessary parentheses in a position that previous compilers ignored.
2019-09-03Replace most instances of mem::uninitialized with mem::MaybeUninitAlan 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-08-29Clippy cleanupAlan Somers
2019-06-09Add extra traits for all typesBryant 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-08Replace try! with ?Alan Somers
try! is not available in Rust 2018
2018-01-28Require Debug impls for all typesBryant Mairs
2018-01-10Expose mqueue functions for all supported OSesAlan Somers
2017-12-20Use backticks around types/functions in docsBryant Mairs
2017-12-04Stop reexporting `Errno` and its variantsJonas Schievink
cc #664 (unsure if this is everything needed)
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-10-08Replace most Linux man page links with Open Group man page linksAlan Somers
But leave in place Linux links for non-standard functions. Also, add brief docs for some functions that were lacking them.
2017-08-16Match libc_bitflags! syntax to upstream bitflags!Bryant Mairs
2017-02-16Update bitflags to 0.7Simon Sapin
2016-08-31Run rustfmt on mqueue.rsPhilipp Matthias Schaefer
2016-08-31Replace ffi module by libc functions in mqueue.rsPhilipp Matthias Schaefer
2016-04-14fixed a few clippy warningsAndre Bogus
2016-02-20mqueue: change types to allow more casesNikolay Amiantov
2016-01-28Move errno::Result back to crate rootarcnmx
2016-01-28Errno::result()arcnmx
2016-01-18allow improper_ctypes for size_tMattis Marjak
2015-10-27Fix some commentsJeremy Fitzhardinge
2015-09-28added convenience functions for setting O_NONBLOCK on message queuesMarkus Jais
2015-09-03added support and tests for mq_setattrMarkus Jais
2015-08-17renamed test methods for mqueue and added mq_unlinkMarkus Jais
2015-07-18added mq_getattr for LinuxMarkus Jais
2015-05-28Move nix::mq -> nix::mqueue to mirror headerCarl Lerche