Commit Graph

710 Commits

Author SHA1 Message Date
Philipp Matthias Schaefer
45d8beea46 Make signal argument to kill optional 2016-11-14 21:22:05 +01:00
Homu
a9f630ed00 Auto merge of #465 - asomers:cleanup, r=posborne
Avoid TempDir::into_path(), because it doesn't cleanup on Drop
2016-11-14 16:19:54 +09:00
Alan Somers
ea140702a5 Avoid TempDir::into_path(), because it doesn't cleanup on Drop 2016-11-13 20:42:41 -07:00
Homu
853a7db630 Auto merge of #462 - dgreid:changelog_for_newcgroup, r=posborne
Update CHANGELOD.md to include CLONE_NEWCGROUP

Add note about CLONE_NEWCGROUP from pull request #457 to CHANGELOG.md.

Signed-off-by: Dylan Reid <dgreid@chromium.org>
2016-11-10 14:40:58 +09:00
Dylan Reid
bc9564b5d6 Update CHANGELOD.md to include CLONE_NEWCGROUP
Add note about CLONE_NEWCGROUP from pull request #457 to CHANGELOG.md.

Signed-off-by: Dylan Reid <dgreid@chromium.org>
2016-11-09 18:46:06 -08:00
Homu
bf8ce97f32 Auto merge of #451 - zethra:master, r=kamalmarhubi
Added tcgetpgrp and tcsetpgrp

I added the tcgetpgrp and tcsetpgrp functions.  I'm not sure if I did everything right so please tell me if I need to change anything.
2016-11-09 07:02:06 +09:00
zethra
013e7c8bd2 Added .map(drop) as requested 2016-11-08 10:30:31 -05:00
zethra
f7ad7f8bcb Updated CHANGELOG.md 2016-11-08 10:26:06 -05:00
zethra
1b3aea102e Merge remote-tracking branch 'upstream/master' 2016-11-08 10:23:17 -05:00
zethra
baf6b8d520 Added documention to tcgetpgrp and tcsetpgrp 2016-11-08 10:23:14 -05:00
Homu
f8d4c315f5 Auto merge of #457 - dgreid:clone_newcgroup, r=posborne
Add CLONE_NEWCGROUP

This is a new option to clone added earlier this year.  It was already added to rust/libc.
2016-11-04 12:10:33 +09:00
Dylan Reid
5624ddb5d1 Add CLONE_NEWCGROUP 2016-11-03 14:47:16 -07:00
Homu
a6bbb49e89 Auto merge of #452 - posborne:additional-documentation-additions, r=fiveop
Additional documentation additions

This is a second round of doc additions.  There are also some funcitonal changes to APIs for getting/setting hostname that need to be reviewed.

r? @nix-rust/nix-maintainers
2016-11-02 13:34:43 +09:00
Paul Osborne
173f2acec8 unistd: doc updates based on review comments
These make the language consistent in the 3rd person, fix a few
minor mistakes, and remove some superflous prose.

Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-11-01 23:13:02 -05:00
Homu
74e3570e96 Auto merge of #454 - alexcrichton:bump-rust, r=posborne
Bump minimum supported version of Rust

Many crates are coalescing around 1.9.0 with the stabilization of `std::panic`,
and it helps remove the build script w/ rustc version parsing for now as well.
2016-11-01 02:58:26 +09:00
zethra
c0d6829cc4 Merge remote-tracking branch 'upstream/master' 2016-10-31 13:48:44 -04:00
Alex Crichton
81c42de574 Remove rustc-version dependency and build script
The script checked for rustc >= 1.6.0, but the minimum supported version for
this crate is now 1.7.0
2016-10-31 10:30:55 -07:00
Homu
652e730f10 Auto merge of #453 - nix-rust:asomers-kevent, r=posborne
Asomers kevent

This is a rebase of @asomers work on master to resolve a merge conflict so we can get things merged up.
2016-10-30 11:31:30 +09:00
Alan Somers
a0058f0308 Update comments and CHANGELOG for PR 442 2016-10-29 21:28:39 -05:00
Alan Somers
76bd1c4c10 impl Send for KEvent 2016-10-29 21:28:22 -05:00
Paul Osborne
2f220fce96 unistd: add module-level doc comment that makes sense
The previous one was entirely too generic.

Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-10-29 17:24:04 -05:00
Paul Osborne
4b6b7b4b46 unistd: add documentation for the daemon function
Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-10-29 17:24:04 -05:00
Paul Osborne
c270fd25b7 unistd: add docs for exec* functions
Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-10-29 17:24:04 -05:00
Homu
ff4484d343 Auto merge of #449 - posborne:documentation-improvements, r=kamalmarhubi
Documentation improvements

This series of commits starts to fill in documentation that was not previously present for various calls, mostly in unistd for this pass.

r? @kamalmarhubi
2016-10-30 06:52:19 +09:00
zethra
18c85d5022 Added tcgetpgrp and tcsetpgrp 2016-10-28 14:43:55 -04:00
Homu
b05c1e4f38 Auto merge of #433 - kiddkai:getpgid, r=posborne
add getpgid call

Add a `getpgid` function to nix.

Argument is required, either pass in `None` or `Some(pid_t)`. It should have the same behavior
as the `libc` one.
2016-10-29 00:12:25 +09:00
kiddkai
ac51932078 add getpgid in changelog 2016-10-28 22:27:27 +11:00
kiddkai
c74d0014bc remove extra line in the commit 2016-10-28 22:26:10 +11:00
kiddkai
24cde803d6 add getpgid 2016-10-28 22:26:10 +11:00
Paul Osborne
fdf8ab6d2e unistd: add docs for chown
Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-10-27 22:53:35 -04:00
Paul Osborne
fd1f44e26f unistd: add docs for chdir
Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-10-27 22:53:21 -04:00
Paul Osborne
7b5068aed6 unistd: document the dup, dup2, and dup3 calls
Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-10-27 22:40:28 -04:00
Paul Osborne
aea291ed2b unistd: add documentation for gettid
Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-10-27 22:27:14 -04:00
Paul Osborne
a2e0c057bd unistd: add setsid implementation
This is a logical companion to setpgid, so adding an implementation.

Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-10-27 22:23:00 -04:00
Paul Osborne
eba38be7f5 unistd: add documentation for setpgid
Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-10-27 22:19:23 -04:00
Paul Osborne
4a20c0730c unistd: add docs for getpid/getppid
Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-10-27 21:58:41 -04:00
Paul Osborne
020baa801e unistd: add better docs for fork()
Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-10-27 21:53:43 -04:00
Paul Osborne
7b9e9e572c error: add documentation for nix::Error
Signed-off-by: Paul Osborne <paul.osborne@smartthings.com>
2016-10-27 19:36:29 -04:00
Homu
8d0e312844 Auto merge of #448 - dgreid:setresuid, r=posborne
Add setresuid and setresgid

These were both recently added to libc, add wrappers.

Signed-off-by: Dylan Reid <dgreid@chromium.org>
2016-10-28 00:13:20 +09:00
Dylan Reid
6c85f437c1 Add setresuid and setresgid
These were both recently added to libc, add wrappers.

Signed-off-by: Dylan Reid <dgreid@chromium.org>

---
Changes since v2:
Updated function comments and CHANGELOG

Changes since v1:
Add function comments, update CHANGELOG
2016-10-26 10:51:04 -07:00
Homu
284c9f42fb Auto merge of #446 - kamalmarhubi:bind-mount-in-ci, r=posborne
mount: Run test_mount_bind in CI

Looks like Travis allows bind mounts in their container infra now.
2016-10-25 12:11:50 +09:00
Kamal Marhubi
0fa7250b95 mount: Run test_mount_bind in CI
Looks like Travis allows bind mounts in their container infra now.
2016-10-24 22:52:05 -04:00
Homu
e618485946 Auto merge of #443 - asomers:mkstemp, r=posborne
use tempfile in test_pwrite

Use tempfile in test_pwrite so as not to pollute the source directory.
2016-10-25 03:51:49 +09:00
Homu
bf1e6b2662 Auto merge of #444 - posborne:rust-1.7-minimum-supported-version, r=kamalmarhubi
ci: drop official support for rustc < 1.7.0

Supporting older versions of rust is causing CI to fail and is
a somewhat constant support burden with questionable value.  1.7.0
is the oldest I have seen that people have had a requirement on
supporting in recent history.

It may make sense to work toward a more official policy on
what version of rust we will support in the future.  Users of
older version of rust are, of course, welcome to use older versions
of nix and everything else in the ecosystem.

r? @kamalmarhubi @fiveop
2016-10-25 01:58:12 +09:00
Paul Osborne
360f7aae38 cargo: bump version to 0.8.0-pre
Also, changed author from Carl to being more broad (as we have
many contributors and maintainers now).  This matches what is
used for crates in the rust-lang org.

Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-10-24 11:56:46 -05:00
Paul Osborne
914e3ba35e ci: drop official support for rustc < 1.7.0
Supporting older verisons of rust is causing CI to fail and is
a somewhat constant support burden with questionable value.  1.7.0
is the oldest I have seen that people have had a requirement on
supporting in recent history.

It may make sense to work toward a more official policy on
what version of rust we will support in the future.  Users of
older version of rust are, of course, welcome to use older versions
of nix and everything else in the ecosystem.

Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-10-24 11:55:01 -05:00
Alan Somers
40351db00d use tempfile in test_pwrite. 2016-10-23 20:43:38 -06:00
Philipp Matthias Schaefer
001fecb1c4 Temporarily allow beta failures till 1.13.0-beta.3 or later is released 2016-10-22 10:18:14 +02:00
Kamal Marhubi
45c82235a3 Merge pull request #415 from asomers/evfilt
Move kqueue-related definitions from nix to libc
2016-10-20 23:45:59 -04:00
Alan Somers
3ccb3130eb Merge github.com:nix-rust/nix into evfilt 2016-10-13 21:26:43 -06:00