summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-06-08added wait system call and unit testMarkus Jais
2015-06-05Add pwrite and preadFlorian Hartwig
2015-05-29Basic OpenBSD support.Laurence Tratt
Some of the tests are currently unrunnable, but the basic library is at least buildable.
2015-05-28Remove std::os::unix::io::RawFd re-exportCarl Lerche
2015-05-28Pass shutdown enum by valueCarl Lerche
2015-05-28Update READMECarl Lerche
2015-05-28Deploy docs to S3Carl Lerche
2015-05-28Move nix::mq -> nix::mqueue to mirror headerCarl Lerche
2015-05-28Run CI on linux & os xCarl Lerche
2015-05-27Add sys::socket send and recvPhil Dawes
2015-05-24Change epoll_wait to use isize timeout_ms.Cole Reynolds
A timeout of -1 makes epoll block indefinitely, a usize timeout means we can't specify this behavior; using isize fixes this.
2015-05-21Fix NixPath yield with CStr instead of OsStrCarl Lerche
As described in #117, the `AsExtStr` trait is defined to return a raw `*const libc::c_char`. Its impl for `OsStr` simply borrowed the byte slice from its `OsStr` argument and cast it to a `*const libc::c_char`, which does not construct a proper null-terminated C string. Given this, the `AsExtStr` is not necessary and is removed. `NixPath` is updated to yield `CStr`. Fixes #117, #120 Thanks to @dead10ck
2015-05-21Fix travis testsCarl Lerche
2015-05-21Test sockopt const valuesCarl Lerche
2015-05-21Add socket::shutdown functionhoxnox
libc::funcs::bsd43::shutdown is used
2015-05-19Bump version to v0.3.6Carl Lerche
2015-05-19added getpid and getppidMarkus Jais
2015-05-16cleaned up mq unit testsMarkus Jais
2015-05-13docs: fix module documentation for ioctlPaul Osborne
Two problems were fixed: 1. All of the comments for the module were prefixed with `///!` instead of just `//!` 2. There was no newline before lists which is required in markdown, so they were not rendering correctly.
2015-05-12ioctl: modify type signatures to match common ioctl usage and libc implsPaul Osborne
The ioctl interface expected by most external parties is that of an unsigned long (c_ulong). The libc crate expects as an int. This change exposes c_ulong (via ioctl_op_t) to external users and casts to c_int before calling the libc function. The only documentation in SUSv3 for ioctl has to do with stream devices. The support documented there is not widely supported (it is not supported by the Linux kernel)[1]. [1] The Linux Programming Interface, Page 86.
2015-05-12ioctl: implement generic support for the ioctl syscall and supporting functionsPaul Osborne
This commit provides a new implementation for ioctl that is much more generic, allowing for clients to use send any manner of ioctl requests at special files. The implementation provides two main features that help to raise the level of abstraction over that provided by libc. 1. The module now provides functions that provide the same functionality as the linux kernel _IO* macros. These are used frequently in the linux kernel for building ops for ioctls. The use of these helper functions are not required. 2. Functions are provided for the 3 main types of ioctl usage patterns (read, write, and execute). For many subystems, the read() call which returns a Result<T> and the write calls taking a &T provide a nice interface. All of the methods wrapping ioctl are unsafe and will probably need to remain that way unless knowledge of the semantics of every possible ioctl call are added to the nix library. The best that exists for ioctls are some conventions around the op, but even these conventions are really only used for newer devices added to the kernel. This change resolves #108
2015-05-11Get the library to build on freebsdAndrew J. Stone
`cargo build` works.
2015-05-08Add lstatSkyler Hawthorne
2015-05-07Scope to unix platformsCarl Lerche
2015-05-07More multicast supportCarl Lerche
2015-05-05feat: add execvpeQingping Hou
2015-04-28feat: add chroot syscallQingping Hou
2015-04-27Basic Posix MQ supportMarkus Jais
2015-04-26Bump version to v0.3.5Carl Lerche
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-24Run CI on beta and nightlyCarl Lerche
2015-04-24FromPrimitive is no moreFlorian Hartwig
2015-04-20Bump version to v0.3.4Carl Lerche
2015-04-20Fix build on Rust nightliesCarl Lerche
2015-04-18Added OOB_INLINE socket optionValerii Hiora
2015-04-14Make `sigaction` unsafeTobias Bucher
This is done because interrupted execution has soundness bugs regarding thread-local storage. Fixes #90.
2015-04-11Add socketpairFlorian Hartwig
2015-04-08Bring back eventfd behind a feature flagCarl Lerche
At some point, feature flags will be switched to a conditional build system.
2015-04-07Bump version to v0.3.3Carl Lerche
2015-04-07Error on warningsCarl Lerche
2015-04-07Add Error::from_errnoCarl Lerche
2015-04-06Use fcntl:Fd vs. std::os::unix::io::RawFdCarl Lerche
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-04-03Fd ist now RawFdFlorian Hartwig
2015-04-01Bump version to v0.3.2Carl Lerche
2015-04-01Bump dependency versionsCarl Lerche
2015-04-01Remove usage of std::num::IntCarl Lerche
2015-04-01Fix argument order for copy* functionsFlorian Hartwig
2015-03-31Track Rust nightlyCarl Lerche