Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
Small fixes to RELEASE_PROCEDURE.md
I decided against adding a line for a local test of the commit, because we have the full build in the CI and you might miss something locally anyway.
|
|
Bump to 0.7.1-pre
|
|
|
|
|
|
Release v0.7.0
|
|
|
|
|
|
Add MSG_CMSG_CLOEXEC to MsgFlags on Linux
Fixes #421.
|
|
Fixes #421.
|
|
Update CHANGELOG for pull request 416
As [requested by @fiveop](https://github.com/nix-rust/nix/pull/416#issuecomment-245709257)
|
|
|
|
Mention the libc version changes in RELEASE_PROCEDURE.md
r? @nix-rust/nix-maintainers
|
|
|
|
Expand on release procedure
|
|
|
|
add unistd::getcwd and unistd::mkdir
As a (late) followup of [this withdrawn PR](https://github.com/rust-lang/libc/pull/326) I have added getcwd (wrapper around `libc::getcwd`) and mkdir (wrapper around `libc::mkdir`) and added testing.
A few notes:
- I'm new to rust so I would appreciate some pair of eyes testing the code, plus I'm open for revision of code or general remarks about my coding style
- I have run the tests both on OSX as on Linux (Ubuntu)
- I've run `clippy` to see if my code is well formatted, however clippy issues many warnings about the project. I think I didn't add any more warnings
- the methods in unistd are not documented so I also left out the documentation of `getcwd` and `mkdir`, although I think it'd probably be good to add some documentation, especially some example code how to use the methods
- the base idea of `getcwd` is [taken from std](https://github.com/rust-lang/rust/blob/1.9.0/src/libstd/sys/unix/os.rs#L95-L119), should I mention that somewhere?
|
|
|
|
1.2.0 error in doc-test
|
|
|
|
against std::env::current_dir
|
|
|
|
the implementation in std
|
|
|
|
directory names, need to be created with mkdir first which doesn't exist yet)
|
|
expect into proper try handling), needs testing still
|
|
Replace ffi module by libc functions in mqueue.rs
This is almost finished. I still need to check if I introduced any breaking changes by changing signatures. I would want to record this in the change log, however, for that we still need to merge #391.
- [x] update change log
- [x] run rustfmt on `src/mqueue.rs`
|
|
Use libc in poll.rs
I'll add a change log commit, once this is reviewed.
|
|
|
|
|
|
|
|
|
|
|
|
Replace parts of ffi module by libc functions ind sched.rs
Not exporting `CpuMask` anymore, should be the only API change of this PR. Since the type is not used in any other exported signature or type, I think it is fine to no longer export it.
r? @kamalmarhubi @posborne
|
|
|
|
Closes #408.
|
|
Add FcntlArg::F_FULLFSYNC
https://developer.apple.com/library/ios/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fsync.2.html
|
|
https://developer.apple.com/library/ios/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fsync.2.html
|
|
Implement `Clone` for `FdSet` on Mac/iOS
|
|
|
|
Get rid of a few warnings during compilation of tests
|
|
|
|
Update CHANGELOG for pull request 397
|
|
Fix nix on FreeBSD (rebased on master)
|
|
ci: fix docker container check
Newer version of docker no longer have the /.dockerinit file present
when the container is executing, so that is no longer an option.
When executing in a container, we do know that we will be executing
as pid 1 -- this is probably not ever the case on the host system.
r? @fiveop
|
|
Newer version of docker no longer have the /.dockerinit file present
when the container is executing, so that is no longer an option.
When executing in a container, we do know that we will be executing
as pid 1 -- this is probably not ever the case on the host system.
Signed-off-by: Paul Osborne <osbpau@gmail.com>
|
|
On Linux, the cmsg_len field of struct cmsghdr has type size_t, but it
has size socklen_t on POSIX-compliant operating systems. So on
POSIX-compliant 64-bit operating systems, struct cmsghdr has padding
gaps that aren't present on Linux. Most of the issues fixed by this
commit related to those gaps.
src/sys/socket/ffi.rs
Fix the type of the cmsg_data field so the struct layout will be
correct.
src/sys/socket/mod.rs
In CmsgIterator.next, only return a single file descriptor.
sendmsg(2) can only stuff a single file descriptor into each
cmsg.
In cmsg_align, fix the rounding calculation, and eliminate a
division instruction.
Add a missing cmsg_align call in ControlMessage.len
In ControlMessage.encode_into, add any necessary padding bytes
between the cmsghdr and the data.
In sendmsg, fix some len<->capacity confusion.
|
|
Rules for generic types were located above rules for specific types, so the
rules for specific types never got matched. This caused the
sys::socket::sockopt::test::can_get_listen_on_tcp_socket test to fail on
FreeBSD. The solution is to put all of the generic rules at the bottom.
|