summaryrefslogtreecommitdiff
path: root/src/sched.rs
AgeCommit message (Collapse)Author
2020-05-31Convert the crate to edition 2018Alan Somers
2019-11-21Implement sched::sched_getaffinity()Thibaut Ackermann
sched_getaffinity(2) get a process's CPU affinity mask
2019-07-13Fix warnings on Rust 1.37.0Alan Somers
* Replace obsolete range syntax "..." with inclusive range "..=" * Use dyn Trait syntax instead of Box<Trait> * Raise MSRV to 1.27.0 (for dyn Trait syntax) * Raise MSRV to 1.31.0 (because of rand) tempfile pulls in rand, and rand pulls in fuchsia-cprng, which requires 1.31.0. Why rand pulls in fuchsia-cprng I don't know. It's specified as a target-specific dependency, but Cargo tries to build it anyway (only on Linux, not on FreeBSD or OSX). A bug in Cargo 1.27.0?
2019-07-01Enable sched_yield for all *nix hostsJakub Konka
2019-07-01Move cross compilation cfg for sched into sched modJakub Konka
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.
2019-05-17Implement `sched_yield`.Dan Gohman
This adds the `sched_yield` function, which is part of POSIX: http://pubs.opengroup.org/onlinepubs/9699919799/functions/sched_yield.html and widely implemented on Unix-family platforms.
2018-01-28Require Debug impls for all typesBryant Mairs
2018-01-28Deny unused qualificationsBryant Mairs
2017-12-04Stop reexporting `Errno` and its variantsJonas Schievink
cc #664 (unsure if this is everything needed)
2017-08-26Use libc types for sched FFIBryant Mairs
2017-08-17Merge #725bors[bot]
725: Match syntax of libc_bitflags! with bitflags! r=asomers Also update a couple of constant declarations while we're at it.
2017-08-16Match libc_bitflags! syntax to upstream bitflags!Bryant Mairs
2017-08-11Get rid of a lot of transmutesJonas Schievink
Most could be replaced by simple raw pointer casts (or even perfectly safe coercions!). cc #373
2017-07-02Newtypes for uid_t, gid_t and pid_t.Martin Habovštiak
2017-06-15Change sched_setaffinity's PID argument to pid_tJulian Squires
The officially documented type, and the type in sched.h, for this argument is pid_t.
2017-02-16Update bitflags to 0.7Simon Sapin
2016-12-11Ensure child stack passed to clone is 16 byte aligned.Kevin DeJong
2016-11-03Add CLONE_NEWCGROUPDylan Reid
2016-08-29Replace parts of ffi module by libc functions in sched.rsPhilipp Matthias Schaefer
2016-04-21Allow to specify signal when calling clone.Philipp Matthias Schaefer
2016-04-14Cast function item to function pointer in order to appease compiler.Philipp Matthias Schaefer
This is necessary because of compiler changes. For further information look at rust-lang/rust#19925.
2016-03-07Add support for MIPS targetsGabriele Svelto
Closes #300
2016-01-28Convert CLONE_ flags to bitflags! type.Philipp Matthias Schaefer
2016-01-28Move errno::Result back to crate rootarcnmx
2016-01-28Errno::result()arcnmx
2016-01-18setnsarcnmx
2016-01-15add aarch64 supportBrian Martin
2015-12-22Fix build on Linux & Rust nightlyCarl Lerche
2015-08-22Fix signature of linux `clone` functionPaul Colomiets
In fact function returns pid of new process (or tid of new thread)
2015-04-24sched: add support for arm linux using same cpuset_attribs as androidPaul Osborne
The limit of 32 cores may not actually be a limit with arm-linux, but I am not aware of anything in excess of 32 processors out there currently and this is what I have been running for awhile now on a beaglebone black (`--target=arm-unknown-linux-gnueabihf`). This change addresses #95 and relates to #97.
2015-04-03'derive(Copy)' needs Clone nowFlorian Hartwig
2015-03-24NixResult -> nix::Result; NixError -> nix::ErrorCarl Lerche
2015-03-16Fix deprecation warningsCarl Lerche
2015-03-13Amend some files to make it compile on arm-linux-androideabi.kennytm
2015-02-20Remove deprecated suffixes for isizeSebastian Lauwers
2015-02-10Add `NixPath`, `NixError`, and `NixResult`.Utkarsh Kukreti
2015-01-13changed uint and int to usize and isize respectivelyRick Richardson
2015-01-06Fix breakage caused by the removal of unboxed closuresFlorian Hartwig
2015-01-04Fix a few remaining deprecation noticesCarl Lerche
2015-01-02Track rust masterValerii Hiora
- Updated array syntax - task_rng -> thread_rng
2014-12-10Fallout of Copy becoming opt-in.Victor Berger
2014-12-10Fix improper_ctypes warnings.Victor Berger
2014-10-27Add mmap, shm_open and other mman relativesPhil Vachon
Add various wrappers to make interacting with Rust a bit more pleasant for memory management. Additionally, provide ftruncate(2), which is useful when working with shared memory. Allow managing CPU affinity of a Rust Task living in a system thread.
2014-10-02Track Rust masterCarl Lerche
2014-08-25Tweaks + fix accept4Carl Lerche
2014-08-13Add open(), tweak mount functionsCarl Lerche
2014-08-07Initial commitCarl Lerche