summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-03-29Merge #876bors[bot]
876: add mlockall and munlockall r=asomers a=afck Closes #875
2018-03-28Merge #877bors[bot]
877: Replace the gcc crate by cc r=asomers a=Eijebong
2018-03-28Replace the gcc crate by ccBastien Orivel
2018-03-27add docs for memory locking functionsAndreas Fackler
2018-03-27add mlockall and munlockallAndreas Fackler
2018-03-24Merge #857bors[bot]
857: Add chmod, fchmod, fchmodat functions r=asomers a=antage
2018-03-23Add fchmod, fchmodat functions.Anton Ageev
2018-03-22Merge #873bors[bot]
873: add SO_MARK SetSockOpt for Linux r=asomers a=mcginty SO_MARK allows traffic to be filtered by a "tag" using fwmark (see: https://www.linux.org/docs/man8/tc-fw.html). Tested on Linux as root - the test will skip over when not being run as root, as I noticed a few other tests do this in the suite already.
2018-03-21add SO_MARK SetSockOpt for LinuxJake McGinty
2018-03-21Merge #860bors[bot]
860: Update the release procedure r=asomers a=Susurrus Be more explicit about the development version to specify after doing a release. cc @nox Closes #468
2018-03-02Merge #869bors[bot]
869: Change SigAction::flags to use from_bits_truncated r=asomers a=Detegr On Linux, if the signal trampoline code is in the C library, sigaction sets the SA_RESTORER flag (0x04000000) in the sa_flags field of old sigaction (see sigreturn(2)). This is not intended for application use and is missing from SaFlags, therefore from_bits fails and unwrapping panics the user program. This fix just drops the bits that are not defined in SaFlags.
2018-03-02Change SigAction::flags to use from_bits_truncatedAntti Keränen
On Linux, if the signal trampoline code is in the C library, sigaction sets the SA_RESTORER flag (0x04000000) in the sa_flags field of old sigaction (see sigreturn(2)). This is not intended for application use and is missing from SaFlags, therefore from_bits fails and unwrapping panics the user program. This fix just drops the bits that are not defined in SaFlags.
2018-02-21Merge #825bors[bot]
825: FreeBSD: cfmakesane, EVFILT_* r=Susurrus a=myfreeweb Depends on: https://github.com/rust-lang/libc/pull/887
2018-02-19[skip ci] Update the release procedureBryant Mairs
Don't change the version in `Cargo.toml` after publishing to crates.io as it's unnecessary extra manual work.
2018-02-17Merge #846bors[bot]
846: Export socket options related macros r=Susurrus a=mexus In this PR I've added docs to that macros and exported them. I've also made related structs/traits to be public as well. Hope I didn't forget anything :) Reference issue: #577.
2018-02-15socket get-/setsockopt: document internal macros, types and traitsmexus
2018-02-12Expose MSG_CMSG_CLOEXEC on *BSDGreg V
2018-02-12Add cfmakesane() on FreeBSDGreg V
2018-02-12Add missing kqueue event filters on FreeBSDGreg V
2018-02-11Merge pull request #859 from Susurrus/fix_changelogAlan Somers
Fix markdown in the CHANGELOG
2018-02-11[skip ci] Fix markdown in the CHANGELOGBryant Mairs
2018-02-09Merge #832bors[bot]
832: make statfs/statvfs to be available everywhere r=asomers a=ignatenkobrain libc reads sys/statvfs.h on all OS except Windows which nix doesn't care about. Closes: https://github.com/nix-rust/nix/issues/831 Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2018-02-08make statfs/statvfs to be available wherever they are availableIgor Gnatenko
libc reads sys/statvfs.h on all OS except Windows which nix doesn't care about. Closes: https://github.com/nix-rust/nix/issues/831 Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2018-02-08Merge #853bors[bot]
853: Update `InterfaceFlags` r=Susurrus a=LuoZijun Add Flags: `IFF_NO_PI`, `IFF_TUN`, `IFF_TAP`.
2018-02-08Update `InterfaceFlags`寧靜
Add Flags: `IFF_NO_PI`, `IFF_TUN`, `IFF_TAP`.
2018-02-07Merge #852bors[bot]
852: Add step function to ptrace r=Susurrus a=xd009642 Added step function to ptrace, this follows the same form as the PTRACE_CONTINUE by advanced the tracee by a single step! Found when I was updating to nix 0.10.0 that this function had been missed out. Minor addition as `SINGLESTEP` works the same as `CONTINUE`
2018-02-06Merge #851bors[bot]
851: Added `getsid` in `::nix::unistd` r=asomers a=ggriffiniii Resolves Issue #850
2018-02-05Add test for getsid.Glenn Griffin
2018-02-03Merge #830bors[bot]
830: Add alarm r=asomers a=Thomasdezeeuw Fixed #828.
2018-02-03Merge #856bors[bot]
856: Re-add ifaddrs module r=asomers a=Susurrus Mistakingly removed in d1be45d8405. Fixes #855.
2018-02-03Updated example to be more meaningfulxd009642
Example now matches something more akin to an actual usecase.
2018-02-02Re-add ifaddrs moduleBryant Mairs
Mistakingly removed in d1be45d8405
2018-02-02Add alarm moduleThomas de Zeeuw
This module has two functions; set: set an alarm, and cancel: cancels a previously set alarm.
2018-02-01Corrected typoxd009642
2018-02-01Merge #849bors[bot]
849: Update RELEASE_PROCEDURE.md r=asomers a=Susurrus Based on discussion after the 0.10.0 release.
2018-01-31[skip ci] Update RELEASE_PROCEDURE.mdBryant Mairs
2018-01-31Added example and updated changelog.xd009642
Added doc test for sys::ptrace::step and also updated the changelog.
2018-01-31Merge #837bors[bot]
837: More cleanups and enable some more compiler lints r=asomers a=Susurrus Gonna run this through CI and see what breaks on non-Linux-x64 platforms. These changes are minor cleanups, but improve our doc story and should help with future submitted PRs.
2018-01-30Add step function to ptracexd009642
Added step function to ptrace, this follows the same form as the PTRACE_CONTINUE by advanced the tracee by a single step!
2018-01-29Added `getsid` in `::nix::unistd`Glenn Griffin
2018-01-28Fail to compile for any unused codeBryant Mairs
2018-01-28Fix B460800 and B921600 baud rates for netbsdBryant Mairs
2018-01-28Alphabetize modules under /sysBryant Mairs
2018-01-28Clean up imports and uses in lib.rsBryant Mairs
2018-01-28Require docs for features and ifaddrs moduleBryant Mairs
2018-01-28Require docs for the net/if_ moduleBryant Mairs
2018-01-28Require docs for the poll moduleBryant Mairs
2018-01-28Deny missing docs for pty moduleBryant Mairs
2018-01-28Require Debug impls for all typesBryant Mairs
2018-01-28Replace sockaddr_ctl with one from libcBryant Mairs
Also alter Debug to output all fields.