summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2017-07-09Merge #624bors[bot]
624: Enable ptrace on all Linux platforms r=Susurrus Nothing that nix currently binds is architecture-specific, and Android supports ptrace just as much as non-Android Linux.
2017-07-08Support syscalls on mips64Bryant Mairs
2017-07-08Enable syscalls on s390xBryant Mairs
2017-07-08SIGSTKFLT doesn't exist on Linux/GNU/mips(64)Bryant Mairs
2017-07-08Enable ioctl on mips64 and s390xBryant Mairs
2017-07-08Enable ptrace on all Linux platformsGeoffrey Thomas
Nothing that nix currently binds is architecture-specific, and Android supports ptrace just as much as non-Android Linux.
2017-07-07sys/statfs: use statfs from libcJörg Thalheim
the previous definition were linux specific.
2017-07-07reuse mknod/umask/fstat/lstat from libcJörg Thalheim
2017-07-05We need to pass by value and not by pointer for writing ioctlsBastian Köcher
2017-07-05Merge #625bors[bot]
625: Use libc_bitflags! for BSD in fcntl.rs r=Susurrus
2017-07-05Wrap lines to keep them under 100 charsequal-l2
2017-07-05Unify BSD constsequal-l2
2017-07-05Fix libc is not viable with netbsdequal-l2
2017-07-04Allow nix to compile on android targetsroblabla
2017-07-04Allow casting a flag to a type in libc_bitflags!roblabla
This is necessary because certain flags in libc have different types, generally due to a mistake when adding the flags to the libc. See https://github.com/rust-lang/libc/pull/511 for an example of such a discrepency.
2017-07-04Merge pull request #629 from Kixunil/newtypesAlan Somers
Newtypes for uid_t, gid_t and pid_t.
2017-07-04Use libc_bitflags! for BSD in fcntl.rsequal-l2
2017-07-02Rely on libc for more socket constantsBryant Mairs
2017-07-02Newtypes for uid_t, gid_t and pid_t.Martin Habovštiak
2017-06-20Merge #599bors[bot]
599: Support powerpc64 r=Susurrus The test_ioctl values are computed using ioctl-test.c
2017-06-20Merge #622bors[bot]
622: Separate OpenBSD and FreeBSD in fcntl.rs r=asomers Those two OSes cannot be together since the following FreeBSD flags aren't available on OpenBSD. - `O_DIRECT` - `O_EXEC` - `O_TTY_INIT`
2017-06-19Support powerpc64Luca Barbato
The test_ioctl values are computed using ioctl-test.c
2017-06-19Separate OpenBSD and FreeBSD in fcntl.rsequal-l2
2017-06-18Fix BSD errorequal-l2
2017-06-18Update bitflags to 0.9equal-l2
2017-06-15Change sched_setaffinity's PID argument to pid_tJulian Squires
The officially documented type, and the type in sched.h, for this argument is pid_t.
2017-06-13Added ptrace utilities.Daniel McKenna
Some ptrace functions return structures through the data argument. This commit adds utilities to return data through this mechanism and function specialisations for a few of these functions (getting event messages or the siginfo_t struct). Once the next version of libc is released these utilities will be expanded to include the fpregs and user_regs structs. Ptrace requests that are now satisfied by a more specific public function will return an unsupported operation error. This has involved adding an UnsupportedOperation to the nix::Error enum and removed the mapping from Error to Errno and from Error to std::io::Error.
2017-06-12Add openpty()Kelvin Ly
2017-06-04Add pthread_selfking6cong
2017-06-01Add SigAction gettersHenning Ottesen
* SigAction::flags() * SigAction::mask() * SigAction::handler()
2017-05-16Add various pty functionsBryant Mairs
* grantpt * ptsname/ptsname_r * posix_openpt * unlockpt
2017-04-21remove test warningsking6cong
2017-04-16Self should not be mutated (pull request 564)diekmann
2017-04-15Add AioCb::from_boxed_sliceAlan Somers
The existing AioCb constructors work for simple programs where everything is stored on the stack. But in more complicated programs the borrow checker can't prove that a buffer will outlive the AioCb that references it. Fix this problem by introducting AioCb::from_boxed_slice, which takes a reference-counted buffer. Fixes #575
2017-04-09Split socket consts. test across ARM arch.Zac Berkowitz
2017-04-09Removed tests on ARM for non-existant constants.Zac Berkowitz
2017-04-09Removed unused libc imports in termios.Zac Berkowitz
2017-04-09Added missing syscalls for powerpcZac Berkowitz
2017-04-09Re-enabled errorno test for not_android.Zac Berkowitz
2017-04-09Removed some socket constants from arch=armZac Berkowitz
2017-04-09Fixed constants for MIPSZac Berkowitz
2017-04-09Fixes nix-rust/nix#532Zac Berkowitz
2017-04-09Switched bsd speed_t def. to libc::speed_tZac Berkowitz
2017-03-22add support `readlink|readlinkat`Jörg Thalheim
2017-03-21add support for `fstatat`Jörg Thalheim
2017-03-21add support for `openat`Jörg Thalheim
2017-03-18Actually mark mmap and related functions as `unsafe`Kevin Mehall
The nix::sys::mman::mmap documentation says > Calls to mmap are inherently unsafe, so they must be made in an unsafe block. however, the function was not actually marked unsafe. * `munmap` should also be `unsafe` for obvious reasons. * `madvise` should be `unsafe` because of the MADV_DONTNEED flag. * `mlock` was already marked `unsafe` * `munlock` and `msync` don't strictly need to be `unsafe` despite taking pointers AFAICT, but are marked `unsafe` for consistency and in case they add additional flags in the future.
2017-03-02Remove revents from PollFd::newBryant Mairs
revents is an output field so regardless of what value it is set to it will be overwritten by many of the function calls that take a PollFd. The only value that makes sense for the caller to pass in in `EventFlags::empty()` so we just hardcode that instead of making the caller do it.
2017-02-28fcntl: Expose FcntlArg variants at the module levelKamal Marhubi
This allows importing them directly from `nix::fcntl` which is more ergonomic than needing to use them via `FcntlArg`.
2017-02-27fcntl: Support getting and setting pipe size on LinuxKamal Marhubi