summaryrefslogtreecommitdiff
path: root/src/sys/signal.rs
AgeCommit message (Collapse)Author
2017-02-16Update bitflags to 0.7Simon Sapin
2016-12-16Add POSIX AIO supportAlan Somers
POSIX AIO is a standard for asynchronous file I/O. Read, write, and fsync operations can all take place in the background, with completion notification delivered by a signal, by a new thread, by kqueue, or not at all. This commit supports all standard AIO functions. However, lio_listio is disabled on macos because it doesn't seem to work, even though the syscall is present. The SigEvent class, used for AIO notifications among other things, is also added. Also, impl AsRef for TimeVal and TimeSpec
2016-11-15Auto merge of #460 - chaosagent:sys_signal, r=fiveopHomu
Change SigFlags into an enum. Addresses #459. This is a breaking change. Should SigFlags be renamed to something more sensible?
2016-11-14Make signal argument to kill optionalPhilipp Matthias Schaefer
2016-11-08Rename SigFlags to SigmaskHowDavid Hou
2016-11-06Add some tests for sys::signal.David Hou
2016-11-06Change SigFlags into an enum.David Hou
2016-10-31Remove `rustc-version` dependency and build scriptAlex Crichton
The script checked for rustc >= 1.6.0, but the minimum supported version for this crate is now 1.7.0
2016-09-17Removes SIGSTKFLT when cross-compiling to MIPS.Tim Ryan
2016-07-18Fix NetBSD buildTobias Bucher
2016-06-26Convert signal constants to enumeration.Philipp Matthias Schaefer
2016-05-06Add missing signals.Philipp Matthias Schaefer
2016-04-22Add SigSet::extend and SigSet::clear.Philipp Matthias Schaefer
2016-04-02Fix raw_pointer_derive warningKamal Marhubi
This commit adds a small build script to detect if we need to `#[allow(raw_pointer_derive)]` and makes the attribute conditional. Refs #337
2016-03-13Rename flags to conform to conventions.Philipp Matthias Schaefer
Resolves #290.
2016-03-11Use sigwait function from libc instead of own ffi function.Philipp Matthias Schaefer
2016-03-08tests: Disable test_sigwait on apple platformsKamal Marhubi
After #292 was merged, this flakiness remained. I observe it only on Darwin, hence the targetted disabling until there's been more investigation.
2016-02-29Rename HowFlags to SigFlags and SockFlags to SaFlags for consistency.Philipp Matthias Schaefer
2016-02-28Do not import libc structs directly.Philipp Matthias Schaefer
That allows us to import sigaction on older rust versions.
2016-02-28Use libc extern function exports in sys/signal.rs.Philipp Matthias Schaefer
2016-02-28Use libc structs in sys/signal.rs.Philipp Matthias Schaefer
2016-02-28Use libc constants in sys/signal.rs.Philipp Matthias Schaefer
2016-02-27Add sigwaitZhe Wang
2016-02-08signal: Allow raw_pointer_derive on SigAction structKamal Marhubi
This will fix the build on pre-1.6.0 Rust.
2016-02-04Let SigHandler derive Clone and CopyPhilipp Matthias Schaefer
and thereby make it usable.
2016-02-04Handle `SA_SIGINFO` flag in the constructor.Philipp Matthias Schaefer
If someone creates so many SigAction structs, that a few extra instructions per object creation create a performance problem, we could still provide an unsafe variant, that let's the user take care of the flag.
2016-02-04Account for the different signal handler types.Philipp Matthias Schaefer
2016-01-28Move errno::Result back to crate rootarcnmx
2016-01-28Errno::result()arcnmx
2016-01-21Use libc constants for signals.Philipp Matthias Schaefer
2016-01-18update libc to 0.2.2Mattis Marjak
2016-01-18Add POSIX function raise()Philipp Matthias Schaefer
2016-01-18Publish SockFlags from nix::sys::signal.Philipp Matthias Schaefer
This brings them in alignment with other things republished from the OS specific nix::sys::signal::signal.
2016-01-15add aarch64 supportBrian Martin
2015-12-22add NSIG constantPhilipp Matthias Schaefer
glibc defines this constant as "the total number of signals defined. Since the signal numbers are allocated consecutively, NSIG is also one greater than the largest defined signal number."
2015-11-20netbsd supportJeremy Fitzhardinge
2015-09-10Add signalfd supportAlex Gulyás
2015-09-09Add/Fix support for DragonFly BSDMichael Neumann
2015-07-01Remove sa_tramp from macos sigactionNik Klassen
2015-05-29Basic OpenBSD support.Laurence Tratt
Some of the tests are currently unrunnable, but the basic library is at least buildable.
2015-05-11Get the library to build on freebsdAndrew J. Stone
`cargo build` works.
2015-04-14Make `sigaction` unsafeTobias Bucher
This is done because interrupted execution has soundness bugs regarding thread-local storage. Fixes #90.
2015-04-06Get compiling on Rust 1.0 betaCarl Lerche
Initially support this by assuming the lowest common denominator. The long term solution is to improve the build system to allow pulling in more specific features that are available on the target system.
2015-04-03'derive(Copy)' needs Clone nowFlorian Hartwig
2015-03-24NixResult -> nix::Result; NixError -> nix::ErrorCarl Lerche
2015-02-10Add `NixPath`, `NixError`, and `NixResult`.Utkarsh Kukreti
2015-01-09Fix a bad cfg on linuxCarl Lerche
2015-01-03Update to rust masterValerii Hiora
- cstr fallout - deriving -> derive - lib stabilization warnings removal
2015-01-02Track rust masterValerii Hiora
- Updated array syntax - task_rng -> thread_rng
2014-12-18Add all now needed ';' after macro invocations.Victor Berger