summaryrefslogtreecommitdiff
path: root/src/unistd.rs
AgeCommit message (Collapse)Author
2016-01-28Move errno::Result back to crate rootarcnmx
2016-01-28Errno::result()arcnmx
2016-01-18allow improper_ctypes for size_tMattis Marjak
2016-01-18update libc to 0.2.2Mattis Marjak
2016-01-13Add safe wrappers for getuid, geteuid, getgid, getegidKamal Marhubi
Fixes #213
2015-12-22Fix broken tests on nightlyCarl Lerche
2015-12-03add an implementation of setpgidDavid Roundy
2015-10-27Add support for fsync, fdatasyncJeremy Fitzhardinge
2015-10-27Fix some commentsJeremy Fitzhardinge
2015-10-16Fix memory issue with exec family of fnsCarl Lerche
2015-08-10Add missing exec functionsNik Klassen
2015-07-07remove unneeded mut.Felix Kronlage
nightly will comment this with: --- src/unistd.rs:241:13: 241:20 error: variable does not need to be mutable, #[deny(unused_mut)] on by default src/unistd.rs:241 let mut res; ---
2015-07-06Add feature flag around execvpeTilde Engineering
2015-06-24Implement more fcntl operationsAndy Grover
Derive some more traits on flock to make life easier Change fcntl to return Result<c_int> so we can get results of F_GET* ops. Change pipe2_setflags to match.
2015-05-28Remove std::os::unix::io::RawFd re-exportCarl Lerche
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-19added getpid and getppidMarkus Jais
2015-05-05feat: add execvpeQingping Hou
2015-04-28feat: add chroot syscallQingping Hou
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-03-13Amend some files to make it compile on arm-linux-androideabi.kennytm
2015-02-27Temporarily remove mountCarl Lerche
2015-02-27Further SockAddr & NixPath cleanupCarl Lerche
2015-02-25Large cleanup, mostly of socket functionsCarl Lerche
2015-02-21Cleanup readv & writev + testsCarl Lerche
2015-02-20Mark T as Phantom in IovecSebastian Lauwers
2015-02-12Add a test for sys::stat functionMarkus Jais
2015-02-10Add `NixPath`, `NixError`, and `NixResult`.Utkarsh Kukreti
2015-02-06path -> old_pathFlorian Hartwig
2015-01-26Add a safe wrapper for `libc::isatty`.Utkarsh Kukreti
2015-01-13changed uint and int to usize and isize respectivelyRick Richardson
2015-01-07more cstr falloutRick Richardson
2015-01-07ToCStr removal falloutValerii Hiora
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-10Fallout of Copy becoming opt-in.Victor Berger
2014-11-19Use namespaced enum variants.Roma Sokolov
As per this pull request https://github.com/rust-lang/rust/pull/18973, enum variants require fully qualified path to access them. This commit introduces boring changes to make nix-rust compiles againts new rust.
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-20Add recvfrom(2) and sendto(2) wrappersPhil Vachon
Add FFI function call wrappers for recvfrom(2) and sendto(2) to enable the use of connectionless sockets.
2014-10-11Implement scatter/gather IO: writev & readv.Roma Sokolov
Also added tests to check them.
2014-10-08Bind x86 linuxTilde Engineering
2014-10-07Fix dup3 and accept4 on DarwinTilde Engineering
2014-10-06Fix warningsCarl Lerche
2014-10-06Implement dup3Carl Lerche
2014-10-02Track Rust masterCarl Lerche
2014-09-16execve should take a ref to a CStringCarl Lerche
2014-09-16Provide fork() + error tweaksCarl Lerche
2014-09-15Temporarily remove dup3 supportCarl Lerche