| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2021-05-03 | Move `std::sys::unix::ext` to `std::os::unix` | Christiaan Dirkx | -3539/+0 | |
| 2021-05-02 | Change 'NULL' to 'null' | Brent Kerby | -2/+2 | |
| 2021-04-25 | Inline most raw socket, fd and handle conversions | KaiJewson | -0/+12 | |
| 2021-03-30 | Rollup merge of #83374 - reyk:fix/bsd-ancillary, r=joshtriplett | Dylan DPC | -23/+34 | |
| unix: Fix feature(unix_socket_ancillary_data) on macos and other BSDs This adds support for CMSG handling on macOS and fixes it on OpenBSD and possibly other BSDs. When traversing the CMSG list, the previous code had an exception for Android where the next element after the last pointer could point to the first pointer instead of NULL. This is actually not specific to Android: the `libc::CMSG_NXTHDR` implementation for Linux and emscripten have a special case to return NULL when the length of the previous element is zero; most other implementations simply return the previous element plus a zero offset in this case. This MR makes the check non-optional which fixes CMSG handling and a possible endless loop on such systems; tested with file descriptor passing on OpenBSD, Linux, and macOS. This MR additionally adds `SocketAncillary::is_empty` because clippy is right that it should be added. This belongs to the `feature(unix_socket_ancillary_data)` tracking issue: https://github.com/rust-lang/rust/issues/76915 r? `@joshtriplett` | ||||
| 2021-03-26 | unix: Fix feature(unix_socket_ancillary_data) on macos and other BSDs | Reyk Floeter | -23/+34 | |
| This adds support for CMSG handling on macOS and fixes it on OpenBSD and other BSDs. When traversing the CMSG list, the previous code had an exception for Android where the next element after the last pointer could point to the first pointer instead of NULL. This is actually not specific to Android: the `libc::CMSG_NXTHDR` implementation for Linux and emscripten have a special case to return NULL when the length of the previous element is zero; most other implementations simply return the previous element plus a zero offset in this case. This MR additionally adds `SocketAncillary::is_empty` because clippy is right that it should be added. | ||||
| 2021-03-26 | Use iter::zip in library/ | Josh Stone | -2/+2 | |
| 2021-03-21 | Use io::Error::new_const everywhere to avoid allocations. | Mara Bos | -6/+6 | |
| 2021-02-28 | unix: Non-mutable bufs in send_vectored_with_ancillary_to | LinkTed | -45/+48 | |
| Change the arguments of `send_vectored_with_ancillary` and `send_vectored_with_ancillary_to` to take an non-mutable bufs. | ||||
| 2020-12-16 | Fix failing build of std on armv5te-unknown-linux-uclibceabi due to missing ↵ | Ondrej Perutka | -1/+5 | |
| cmsg_len_zero | ||||
| 2020-11-26 | Add comment for the previous android bug fix | LinkTed | -0/+4 | |
| 2020-11-24 | Bug fix for android platform, because of the wrong behavior of CMSG_NXTHDR | LinkTed | -0/+19 | |
| 2020-11-04 | Fix docs for MacOs (again) | LinkTed | -1/+2 | |
| 2020-11-03 | Fix docs for MacOs (correction) | LinkTed | -1/+2 | |
| 2020-10-28 | Fix test cases for MacOs | LinkTed | -2/+28 | |
| 2020-10-17 | Fix cannot find type `ucred` for MacOs by using fake definitions | LinkTed | -1/+1 | |
| 2020-10-11 | Fix unresolved imports for `recv_vectored_with_ancillary_from`, ↵ | LinkTed | -0/+1 | |
| `send_vectored_with_ancillary_to` and `SocketAncillary` | ||||
| 2020-10-10 | Fix unresolved link to `SocketAncillary` | LinkTed | -0/+2 | |
| 2020-10-10 | Fix `libc` is ambiguous for Windows | LinkTed | -9/+6 | |
| 2020-10-10 | Fix import errors for `#[cfg(doc)]` target | LinkTed | -2/+4 | |
| 2020-10-10 | Add fake definitions for Windows | LinkTed | -0/+10 | |
| 2020-10-10 | Fix imports for MacOs | LinkTed | -8/+4 | |
| 2020-10-10 | Change imports for `cfg(doc)` | LinkTed | -30/+29 | |
| 2020-10-10 | Remove `passcred` for `emscripten` | LinkTed | -4/+4 | |
| 2020-10-10 | Remove unnecessary trailing semicolon | LinkTed | -1/+1 | |
| 2020-10-10 | Fix type mismatching for different OSes. | LinkTed | -41/+105 | |
| 2020-10-10 | Remove `SocketCred` for `emscripten` | LinkTed | -13/+9 | |
| 2020-10-10 | Fix unused import for `IoSliceMut` for macos | LinkTed | -0/+9 | |
| 2020-10-10 | Add conditional compilation for import | LinkTed | -0/+1 | |
| 2020-10-10 | Fix cfg condition for test | LinkTed | -1/+1 | |
| 2020-10-10 | Remove `target_os`, which does not have `SO_PASSCRED` constant in `libc` | LinkTed | -56/+5 | |
| 2020-10-10 | Remove `target_os`, which does not have `cmsghdr` struct in `libc` | LinkTed | -12/+0 | |
| 2020-10-10 | Remove `target_os`, which does not have `MSG_CMSG_CLOEXEC` constant in `libc` | LinkTed | -54/+31 | |
| 2020-10-10 | Add the code of the tracking issue | LinkTed | -36/+36 | |
| 2020-10-10 | Replace `assert` with `unreachable` | LinkTed | -3/+3 | |
| 2020-10-10 | Remove unsupported target_os for SocketCred | LinkTed | -125/+7 | |
| 2020-10-10 | Change standard types to libc types | LinkTed | -6/+8 | |
| 2020-10-10 | Change name of struct to SocketCred | LinkTed | -9/+9 | |
| 2020-10-10 | Change API to unsafe and add doc comments | LinkTed | -3/+20 | |
| 2020-10-10 | Add `set_passcred` and `passcred` methods to `UnixStream` and `UnixDatagram` | LinkTed | -11/+121 | |
| 2020-10-10 | Rename `test.rs` to `tests.rs` | LinkTed | -625/+19 | |
| 2020-10-10 | Add doc comments | LinkTed | -1/+21 | |
| 2020-10-10 | Add doc(cfg(...)) | LinkTed | -0/+24 | |
| 2020-10-10 | Reduce impl trait by using macro in `raw_fd.rs` | LinkTed | -61/+34 | |
| 2020-10-10 | Move conditional compilation to the upper module and sort the target OS list ↵ | LinkTed | -189/+199 | |
| alphabetically | ||||
| 2020-10-10 | Remove unnecessary path | LinkTed | -1/+1 | |
| 2020-10-10 | Use `fill` instead of `memset` | LinkTed | -9/+16 | |
| 2020-10-10 | Remove inner function in `bind`, `connect` and `send_to` | LinkTed | -49/+33 | |
| 2020-10-10 | Remove lifetime annotation in `messages` function | LinkTed | -1/+1 | |
| 2020-10-10 | Remove `Clone` trait bound in `add_to_ancillary_data` | LinkTed | -1/+1 | |
| 2020-10-10 | Add integer overflow check | LinkTed | -1/+9 | |
