Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-08-16 | Use libc_bitflags for stat::Mode | Bryant Mairs | |
2017-08-16 | Match libc_bitflags! syntax to upstream bitflags! | Bryant Mairs | |
2017-07-07 | reuse mknod/umask/fstat/lstat from libc | Jörg Thalheim | |
2017-06-18 | Update bitflags to 0.9 | equal-l2 | |
2017-03-21 | add support for `fstatat` | Jörg Thalheim | |
2017-02-19 | Fix the style for bitflags! | Mathias Svensson | |
Prefer libc_bitflags! over bitflags!. Prefer libc::CONSTANTS over writing the constant manually. | |||
2017-02-18 | Auto merge of #508 - aidanhs:aphs-major-minor-macros, r=posborne | Homu | |
Implement major/minor macros, correct mkdev It appears that the previous `mkdev` was based on the kernel headers (https://github.com/torvalds/linux/blob/v4.7/include/linux/kdev_t.h#L6) which (I guess) is the internal kernel dev_t. Scrolling down the file you can see some bitshifting operations to do conversions. The new implementation(s) are based on [musl](http://git.musl-libc.org/cgit/musl/tree/include/sys/sysmacros.h?id=dbbb3734d8c0176feabd6c46e2e85bbc3b8a60af) and [glibc](https://github.molgen.mpg.de/git-mirror/glibc/blob/20003c49884422da7ffbc459cdeee768a6fee07b/sysdeps/unix/sysv/linux/sys/sysmacros.h#L38), which are in agreement about how dev_t should be handled. (as it happens I suspect we could omit the shift by 32 since I don't see that in the kernel headers, but doesn't hurt to take the conservative route and mimic the libcs) | |||
2017-02-17 | Implement major/minor macros, correct mkdev | Aidan Hobson Sayers | |
2017-02-16 | Update bitflags to 0.7 | Simon Sapin | |
2016-04-20 | Last few constants | arcnmx | |
2016-04-19 | Use constants from libc | arcnmx | |
2016-04-18 | Add some missing SFlags | arcnmx | |
2016-01-28 | Move errno::Result back to crate root | arcnmx | |
2016-01-28 | Errno::result() | arcnmx | |
2015-08-12 | Update some stuff for upstream bitflags changes | Corey Richardson | |
2015-05-28 | Remove std::os::unix::io::RawFd re-export | Carl Lerche | |
2015-05-21 | Fix NixPath yield with CStr instead of OsStr | Carl 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-08 | Add lstat | Skyler Hawthorne | |
2015-03-24 | NixResult -> nix::Result; NixError -> nix::Error | Carl Lerche | |
2015-02-27 | Further SockAddr & NixPath cleanup | Carl Lerche | |
2015-02-10 | Add `NixPath`, `NixError`, and `NixResult`. | Utkarsh Kukreti | |
2015-02-06 | path -> old_path | Florian Hartwig | |
2015-01-27 | Fix warnings for `rustc 1.0.0-dev (e365e4c05 2015-01-27 08:40:39)`. | Utkarsh Kukreti | |
2015-01-27 | Add 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-13 | changed uint and int to usize and isize respectively | Rick Richardson | |
2015-01-07 | ToCStr removal fallout | Valerii Hiora | |
2015-01-03 | Update to rust master | Valerii Hiora | |
- cstr fallout - deriving -> derive - lib stabilization warnings removal | |||
2014-12-18 | Add all now needed ';' after macro invocations. | Victor Berger | |
2014-12-15 | bitflags! derives Copy for you now, so remove our derivings. | Jonathan Reem | |
2014-12-10 | Fallout of Copy becoming opt-in. | Victor Berger | |
2014-10-10 | Update static->const | Tilde Engineering | |
2014-10-06 | Fix warnings | Carl Lerche | |
2014-10-06 | Bind stat and fstat | Tilde Engineering | |
2014-08-20 | Start binding Darwin | Carl Lerche | |
2014-08-16 | Epoll, rename to nix, misc cleanup | Carl Lerche | |