summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-10-20Merge #780bors[bot]
780: Add a test for ppoll r=Susurrus a=asomers
2017-10-17Merge #782bors[bot]
782: Fix formatting in CHANGELOG.md r=posborne a=asomers
2017-10-17Merge #783bors[bot]
783: Promote i686-unknown-freebsd to Tier1 in the README r=Susurrus a=asomers We effectively made it Tier1 back in ec6fe0629df87d8355cbdba8b7a0855934a5ac9e, but never updated the README.
2017-10-14Promote i686-unknown-freebsd to Tier1 in the READMEAlan Somers
We effectively made it Tier1 back in ec6fe0629df87d8355cbdba8b7a0855934a5ac9e, but never updated the README.
2017-10-14Fix formatting in CHANGELOG.mdAlan Somers
2017-10-14Add a test for ppollAlan Somers
2017-10-11Merge #774bors[bot]
774: #602 added unistd::mkfifo r=asomers a=jpastuszek Since libc has mkfifo already I have just copied mkdir and adapted to mkfifo. I have tested that on MacOS only.
2017-10-11added unistd::mkfifo #602Jakub Pastuszek
2017-10-11Merge #778bors[bot]
778: Replace most Linux man page links with Open Group man page links r=posborne a=asomers But leave in place Linux links for non-standard functions. Also, add brief docs for some functions that were lacking them.
2017-10-08Merge #768bors[bot]
768: Add support for 'fallocate' r=asomers a=SanchayanMaity For #596
2017-10-08Replace most Linux man page links with Open Group man page linksAlan Somers
But leave in place Linux links for non-standard functions. Also, add brief docs for some functions that were lacking them.
2017-10-07Add test for 'fallocate'Sanchayan Maity
2017-10-07Add support for 'fallocate'Sanchayan Maity
2017-10-07Merge #773bors[bot]
773: Add more accessors for AioCb r=asomers a=asomers
2017-10-07Merge #775bors[bot]
775: Fix test warnings r=asomers a=SanchayanMaity
2017-10-05Fix variable does not need to be mutable warning for aio testSanchayan Maity
This fixes the following warning during run of cargo test warning: variable does not need to be mutable --> test/sys/test_aio.rs:16:13 | 16 | fn poll_aio(mut aiocb: &mut AioCb) -> Result<()> { | ^^^^^^^^^ | = note: #[warn(unused_mut)] on by default
2017-10-05Fix use of deprecated item: gcc::ConfigSanchayan Maity
gcc::Config has been renamed to gcc::Build This fixes the following warning during run of cargo test warning: use of deprecated item: gcc::Config has been renamed to gcc::Build --> nix-test/build.rs:16:5 | 16 | gcc::Config::new() | ^^^^^^^^^^^^^^^^ | = note: #[warn(deprecated)] on by default
2017-10-02Add more accessors for AioCbAlan Somers
2017-09-07Merge #663bors[bot]
663: Add support for SO_TIMESTAMP r=asomers a=Wolvereness This was implemented as part of my employment, and I have received permission to submit it upstream under my own name. I implemented this with a bit of copy+pasting from the SCM_RIGHTS implementation, and it appeared to be functional when originally implemented on top of 13deb619c3e0bdf490511cedd848e60633ca3b2d (tagged v0.8.0).
2017-09-06Merge pull request #762 from Mic92/stat-testsAlan Somers
test/test_stat.rs: test correct stat function
2017-09-06Merge pull request #763 from Mic92/merge-unionAlan Somers
use better merge algorithm for CHANGELOG.md
2017-09-04test/test_stat.rs: use matching tempdir name for test_fstatatJörg Thalheim
2017-09-04use better merge algorithm for CHANGELOG.mdJörg Thalheim
see also: https://about.gitlab.com/2015/02/10/gitlab-reduced-merge-conflicts-by-90-percent-with-changelog-placeholders/
2017-09-04test/test_stat.rs: test correct stat functionJörg Thalheim
2017-09-04Add support for SO_TIMESTAMPWesley Wolfe
2017-09-03Merge #715bors[bot]
715: Fix multiple issues with POSIX AIO r=asomers a=asomers Fixed error handling in `AioCb::fsync`, `AioCb::read`, and `AioCb::write` Previously, the `AioCb`'s `in_progress` field would erroneously be set to `true`, even if the syscall had an error Fixes #714 AioCb::Drop will now panic for in-progress AioCb Printing a warning message to stderr isn't really appropriate, because there's no way to guarantee that stderr is even valid. Nor is aio_suspend necessarily an appropriate action to take.
2017-09-03Fixed error handling in `AioCb::{fsync,read,write}`Alan Somers
Previously, the `AioCb`'s `in_progress` field would erroneously be set to `true`, even if the syscall had an error Fixes #714
2017-09-03AioCb::Drop will now panic for in-progress AioCbAlan Somers
Printing a warning message to stderr isn't really appropriate, because there's no way to guarantee that stderr is even valid. Nor is aio_suspend necessarily an appropriate action to take.
2017-09-03Merge #746bors[bot]
746: Replace socket FFI with libc versions r=asomers a=Susurrus Getting this up there to get some CI run on it. Replacing the `msghdr`, `cmsghdr`, and other FFI function declarations will be a little more involved so I wanted to run this through first.
2017-09-01Merge #750bors[bot]
750: Migrate quota module to libc FFI types r=asomers a=Susurrus
2017-08-29Migrate quota module to libc FFI typesBryant Mairs
2017-08-30Merge #745bors[bot]
745: Use upstream libc definitions for fcntl FFI r=asomers a=Susurrus
2017-08-29Use upstream libc definitions for fcntl FFIBryant Mairs
2017-08-28Merge #749bors[bot]
749: Moved ptrace constants into enum types plus minor additions r=Susurrus a=xd009642 Reopening of #734 hence the branch name, changelog will be updated once the pr number of this new pull request is known.
2017-08-28Added detach functionxd009642
2017-08-28Moved ptrace constants into enum types added minor functionality.xd009642
Used the libc_enum! macro to create enums for the ptrace event, request, and libc_bitflags for options constants defined in libc. Also, replicated functionality to move from c_int to PtraceEvent enum in PR #728 as it appears to be abandoned. Added utility function for detaching from tracee. Updated names and removed ptrace::ptrace namespace
2017-08-28Merge #747bors[bot]
747: Use libc types for sched and syscall FFI r=Susurrus a=Susurrus
2017-08-27Remove syscall module.Bryant Mairs
This module merely contained FFI declarations, and only enough to implement memfd_create() and pivot_root() wrapper functions in nix. Since these declarations are redundant with equivalent FFI declarations in libc, we'll remove them here. In the future, any syscall-related wrapper function will be implemented directly and utilize libc for FFI declarations as we cannot generically expose a type-safe `syscall()` because of its variadic argument list.
2017-08-27Support casting values in libc_enum!Bryant Mairs
2017-08-26Use libc types for sched FFIBryant Mairs
2017-08-26Fix unused variable in testsBryant Mairs
2017-08-26Replace more FFI instancesBryant Mairs
2017-08-25Merge #744bors[bot]
744: Mark and document pty::ptsname() as unsafe r=asomers a=nelsonjchen On some platforms, `ptsname()` mutates global variables and mutating global variables is always considered `unsafe` by Rust. Reference: https://github.com/nix-rust/nix/pull/742#issuecomment-324385919
2017-08-25Merge #732bors[bot]
732: Use libc definitions for wait module r=Susurrus a=Susurrus Not certain if these are all correct yet, but we can reuse a ton of logic from `libc` within the `wait` module.
2017-08-24Mark and document pty::ptsname() as unsafeNelson Chen
`ptsname()` mutates global variables and mutating global variables is always considered `unsafe` by Rust. Reference: https://github.com/nix-rust/nix/pull/742#issuecomment-324385919
2017-08-21Use libc definitions for wait moduleBryant Mairs
2017-08-21Merge #739bors[bot]
739: Support features across more platforms r=Susurrus * Exposes `utsname` on all platforms * Expose `signalfd` on Android Closes #607.
2017-08-21Update changelog for PR#739Bryant Mairs
2017-08-21Expose signalfd on AndroidBryant Mairs
2017-08-21Log sendfile as missing for some BSDsBryant Mairs