Age | Commit message (Collapse) | Author |
|
Some of the tests are currently unrunnable, but the basic library is at least
buildable.
|
|
|
|
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
|
|
`cargo build` works.
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
- cstr fallout
- deriving -> derive
- lib stabilization warnings removal
|
|
|
|
|
|
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.
|