summaryrefslogtreecommitdiff
path: root/src/fcntl.rs
AgeCommit message (Collapse)Author
2016-08-26Add FcntlArg::F_FULLFSYNCMarkus Unterwaditzer
https://developer.apple.com/library/ios/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fsync.2.html
2016-04-20fcntl: Use bindings from libc instead of our ownBrian Pearce
2016-02-14linux: Add splice(2), tee(2), vmsplice(2)Kamal Marhubi
2016-01-28Move errno::Result back to crate rootarcnmx
2016-01-28Errno::result()arcnmx
2016-01-18fix on macMattis Marjak
2016-01-18update libc to 0.2.2Mattis Marjak
2015-11-20netbsd supportJeremy Fitzhardinge
2015-09-09Add/Fix support for DragonFly BSDMichael Neumann
2015-08-25Add memfd functionalityDavid Henningsson
2015-08-15Add flock(2) supportAndy Grover
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-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-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-11Get the library to build on freebsdAndrew J. Stone
`cargo build` works.
2015-04-03'derive(Copy)' needs Clone nowFlorian Hartwig
2015-04-03Fd ist now RawFdFlorian Hartwig
2015-03-24NixResult -> nix::Result; NixError -> nix::ErrorCarl Lerche
2015-03-19Track Rust nightliesCarl Lerche
2015-03-13Amend some files to make it compile on arm-linux-androideabi.kennytm
2015-02-27Further SockAddr & NixPath cleanupCarl Lerche
2015-02-19Re-export std::os::unix::FdCarl Lerche
2015-02-10Add `NixPath`, `NixError`, and `NixResult`.Utkarsh Kukreti
2015-02-06path -> old_pathFlorian Hartwig
2015-01-27Add a `Mode` bitflags and use it instead of `std::io::FilePermission`.Utkarsh Kukreti
These constants are defined in POSIX [1] so we should export them anyways, plus we don't need to depend on `std::io` anymore! [breaking-change] [1]: http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/stat.h.html
2015-01-07ToCStr removal falloutValerii Hiora
2015-01-03Update to rust masterValerii Hiora
- cstr fallout - deriving -> derive - lib stabilization warnings removal
2014-12-18Add all now needed ';' after macro invocations.Victor Berger
2014-12-15bitflags! derives Copy for you now, so remove our derivings.Jonathan Reem
2014-12-12Fallout of Copy opt-in for non-LinuxValerii Hiora
Based on #22.
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-10Update static->constTilde Engineering
2014-10-02Track Rust masterCarl Lerche
2014-09-20Be warning-free on Darwin.Clark Gaebel
2014-08-25Tweaks + fix accept4Carl Lerche
2014-08-21Fix O_* flags for Darwin. Minor kqueue tweaks.Carl Lerche
2014-08-21Bind kqueue + misc cleanupCarl Lerche
2014-08-20Start binding DarwinCarl Lerche
2014-08-17More socket APIsCarl Lerche
2014-08-16Epoll, rename to nix, misc cleanupCarl Lerche
2014-08-15Bind FD dup fns + misc tweaksCarl Lerche
2014-08-13Add open(), tweak mount functionsCarl Lerche