Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-02-15 | socket get-/setsockopt: document internal macros, types and traits | mexus | |
2018-02-12 | Expose MSG_CMSG_CLOEXEC on *BSD | Greg V | |
2018-02-12 | Add cfmakesane() on FreeBSD | Greg V | |
2018-02-12 | Add missing kqueue event filters on FreeBSD | Greg V | |
2018-02-08 | make statfs/statvfs to be available wherever they are available | Igor 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-07 | Merge #852 | bors[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-03 | Updated example to be more meaningful | xd009642 | |
Example now matches something more akin to an actual usecase. | |||
2018-02-01 | Corrected typo | xd009642 | |
2018-01-31 | Added example and updated changelog. | xd009642 | |
Added doc test for sys::ptrace::step and also updated the changelog. | |||
2018-01-30 | Add step function to ptrace | xd009642 | |
Added step function to ptrace, this follows the same form as the PTRACE_CONTINUE by advanced the tracee by a single step! | |||
2018-01-28 | Fail to compile for any unused code | Bryant Mairs | |
2018-01-28 | Fix B460800 and B921600 baud rates for netbsd | Bryant Mairs | |
2018-01-28 | Alphabetize modules under /sys | Bryant Mairs | |
2018-01-28 | Require Debug impls for all types | Bryant Mairs | |
2018-01-28 | Replace sockaddr_ctl with one from libc | Bryant Mairs | |
Also alter Debug to output all fields. | |||
2018-01-28 | Implement Copy/Clone for all types missing it | Bryant Mairs | |
2018-01-28 | Disallow unnecessary import braces | Bryant Mairs | |
2018-01-28 | Deny unused qualifications | Bryant Mairs | |
2018-01-26 | Merge #843 | bors[bot] | |
843: Support arbitrary baud rates on BSDs r=asomers a=Susurrus Closes #842 | |||
2018-01-25 | Consistently use `Termios` in comments | Bryant Mairs | |
2018-01-25 | Don't use map(drop) as it's hard to understand | Bryant Mairs | |
.map(drop) makes it seem like there is a need to drop the type at that point when really all you're doing is trying to erase the type information and return an empty tuple. So do that explicitly instead of throwing drop in there. | |||
2018-01-25 | Support arbitrary baud rates on BSDs | Bryant Mairs | |
2018-01-26 | Merge #835 | bors[bot] | |
835: Add socket options for IP_TRANSPARENT / BIND_ANY r=asomers a=justinlatimer Add socket options for implementing a transparent proxy. Sources: [Linux](https://www.kernel.org/doc/Documentation/networking/tproxy.txt) [OpenBSD](https://man.openbsd.org/setsockopt.2#SO_BINDANY) [FreeBSD](https://www.freebsd.org/cgi/man.cgi?query=ip&manpath=FreeBSD+11.1-RELEASE) Thanks! | |||
2018-01-21 | Merge #820 | bors[bot] | |
820: Change AioCb to primarily use Bytes instead of Rc<[u8]> r=Susurrus a=asomers `Rc<[u8]>` isn't a very good buffer type to use for aio. For one thing, it lacks interior mutability. For another, a single `Rc<[u8]>` can't be carved up into smaller buffers of the same type. `Bytes` and `BytesMut` fix both problems. This PR removes the ability to construct an `AioCb` from `Rc<[u8]>` and adds the ability to construct one from `Bytes`, `BytesMut`, or raw pointers (for consumers who need even more flexibility). At this stage, the PR has the following warts: 1. A hack is necessary to force small `Bytes` buffers to allocate on the heap. I plan to fix this with an enhancement to the bytes crate. 2. The `AioCb::buffer` method is necessary due to a deficiency in the tokio-core crate. Once I fix that, then only `AioCb::into_buffer`will need to be public. | |||
2018-01-15 | aio: more documentation | Alan Somers | |
2018-01-15 | aio: Clippy cleanup | Alan Somers | |
2018-01-15 | aio: use `Bytes` instead of `Rc<[u8]>` | Alan Somers | |
It's not actually safe to read into an `Rc<[u8]>`. It only worked because of a coincidental `unsafe` block. Replace that type with `BytesMut` from the bytes crate. For consistency's sake, use `Bytes` for writing too, and completely remove methods relating to `Rc<[u8]>`. Note that the `AioCb` will actually own the `BytesMut` object. The caller must call `into_buffer` to get it back once the I/O is complete. Fixes #788 | |||
2018-01-15 | Add AioCb::from_ptr and AioCb::from_mut_ptr | Alan Somers | |
2018-01-11 | Add socket options for IP_TRANSPARENT / BIND_ANY | Justin Latimer | |
2018-01-08 | Impl LinkAddr(MAC Addr) | luozijun | |
2018-01-08 | impl `Debug` for all sockaddr types | luozijun | |
2018-01-06 | Add sigprocmask | Thomas de Zeeuw | |
2017-12-20 | Replace boolean match with if/else | Bryant Mairs | |
2017-12-20 | Don't clone Copy types | Bryant Mairs | |
2017-12-20 | Remove redundant closure | Bryant Mairs | |
2017-12-20 | Replace '0 as *_' with ptr::null*() | Bryant Mairs | |
2017-12-20 | Use backticks around types/functions in docs | Bryant Mairs | |
2017-12-20 | Use implicit returns | Bryant Mairs | |
2017-12-20 | Remove unnecessary '@ _' | Bryant Mairs | |
2017-12-20 | Use |= where appropriate | Bryant Mairs | |
2017-12-20 | Remove unnecessary impl Clones | Bryant Mairs | |
2017-12-20 | Remove unnecessary lifetime annotations | Bryant Mairs | |
2017-12-20 | Dereference in match head instead | Bryant Mairs | |
2017-12-20 | Use unwrap_or_else instead of unwrap_or without a closure | Bryant Mairs | |
2017-12-20 | Remove unnecessary parenthesis | Bryant Mairs | |
2017-12-20 | Make numeric literals easier to read | Bryant Mairs | |
2017-12-20 | Merge redundant match arms | Bryant Mairs | |
2017-12-20 | Remove unnecessary references | Bryant Mairs | |
2017-12-20 | Make numeric literals easier to read | Bryant Mairs | |
2017-12-20 | Migrate sys/socket to libc FFI types and fix `msghdr` definition mismatch. | Matthew Gregan | |