about summary refs log tree commit diff
path: root/library/std/src/sys/unix/ext
AgeCommit message (Collapse)AuthorLines
2020-10-10Add fake definitions for WindowsLinkTed-0/+10
2020-10-10Fix imports for MacOsLinkTed-8/+4
2020-10-10Change imports for `cfg(doc)`LinkTed-30/+29
2020-10-10Remove `passcred` for `emscripten`LinkTed-4/+4
2020-10-10Remove unnecessary trailing semicolonLinkTed-1/+1
2020-10-10Fix type mismatching for different OSes.LinkTed-41/+105
2020-10-10Remove `SocketCred` for `emscripten`LinkTed-13/+9
2020-10-10Fix unused import for `IoSliceMut` for macosLinkTed-0/+9
2020-10-10Add conditional compilation for importLinkTed-0/+1
2020-10-10Fix cfg condition for testLinkTed-1/+1
2020-10-10Remove `target_os`, which does not have `SO_PASSCRED` constant in `libc`LinkTed-56/+5
2020-10-10Remove `target_os`, which does not have `cmsghdr` struct in `libc`LinkTed-12/+0
2020-10-10Remove `target_os`, which does not have `MSG_CMSG_CLOEXEC` constant in `libc`LinkTed-54/+31
2020-10-10Add the code of the tracking issueLinkTed-36/+36
2020-10-10Replace `assert` with `unreachable`LinkTed-3/+3
2020-10-10Remove unsupported target_os for SocketCredLinkTed-125/+7
2020-10-10Change standard types to libc typesLinkTed-6/+8
2020-10-10Change name of struct to SocketCredLinkTed-9/+9
2020-10-10Change API to unsafe and add doc commentsLinkTed-3/+20
2020-10-10Add `set_passcred` and `passcred` methods to `UnixStream` and `UnixDatagram`LinkTed-11/+121
2020-10-10Rename `test.rs` to `tests.rs`LinkTed-625/+19
2020-10-10Add doc commentsLinkTed-1/+21
2020-10-10Add doc(cfg(...))LinkTed-0/+24
2020-10-10Reduce impl trait by using macro in `raw_fd.rs`LinkTed-61/+34
2020-10-10Move conditional compilation to the upper module and sort the target OS list ↵LinkTed-189/+199
alphabetically
2020-10-10Remove unnecessary pathLinkTed-1/+1
2020-10-10Use `fill` instead of `memset`LinkTed-9/+16
2020-10-10Remove inner function in `bind`, `connect` and `send_to`LinkTed-49/+33
2020-10-10Remove lifetime annotation in `messages` functionLinkTed-1/+1
2020-10-10Remove `Clone` trait bound in `add_to_ancillary_data`LinkTed-1/+1
2020-10-10Add integer overflow checkLinkTed-1/+9
2020-10-10Replace `TryFrom` of `AncillaryData` with a private method.LinkTed-23/+18
2020-10-10Using `read_unaligned` instead of `memcpy`.LinkTed-8/+6
2020-10-10Move `add_to_ancillary_data` and `AncillaryDataIter` to ancillary.rsLinkTed-5/+86
2020-10-10Add UCred structLinkTed-9/+53
2020-10-10Add AncillaryErrorLinkTed-29/+44
2020-10-10Split net.rs into multiple filesLinkTed-2635/+3297
2020-10-10unix: Extend UnixStream and UnixDatagram to send and receive file descriptorsLinkTed-0/+1019
Add the functions `recv_vectored_fds` and `send_vectored_fds` to send and receive file descriptors, by using `recvmsg` and `sendmsg` system call.
2020-10-03Rollup merge of #77182 - GuillaumeGomez:missing-examples-fd-traits, r=pickfireJonas Schievink-0/+40
Add missing examples for Fd traits Not sure what happened here... This is a reopening of #77142 r? @Dylan-DPC
2020-10-02Simplify fd examplesGuillaume Gomez-19/+16
2020-10-01Auto merge of #76969 - withoutboats:rawfd-refexive-traits, r=dtolnaybors-0/+19
Make RawFd implement the RawFd traits This PR makes `RawFd` implement `AsRawFd`, `IntoRawFd` and `FromRawFd`, so it can be passed to interfaces that use one of those traits as a bound.
2020-09-25Add missing examples for Fd traitsGuillaume Gomez-0/+43
2020-09-22Revert "Function to convert OpenOptions to c_int"Joshua Nelson-29/+0
2020-09-22Auto merge of #76110 - FedericoPonzi:convert-openoptions-cint, r=JoshTriplettbors-0/+29
Function to convert OpenOptions to c_int Fixes: #74943 The creation_mode and access_mode function were already available in the OpenOptions struct, but currently private. I've added a new free functions to unix/fs.rs which takes the OpenOptions, and returns the c_int to be used as parameter for the `open` call.
2020-09-22enable unstable open_options_ext_as_flags feature in doc commentsFederico Ponzi-0/+1
2020-09-20fix typosWithout Boats-2/+2
2020-09-20Make RawFd implement the RawFd traitsWithout Boats-0/+19
2020-09-19Add tracking issue for feature(unix_socket_peek)rijenkii-3/+3
2020-09-16Sets as_flags as unstableFederico Ponzi-1/+1
2020-09-15Auto merge of #75148 - joechrisellis:master, r=Amanieubors-0/+185
Implementation of peer credentials for Unix sockets The code in `ucred.rs` is based on the work done in [PR 13](https://github.com/tokio-rs/tokio-uds/pull/13) in the tokio-uds repository on GitHub. This commit is effectively a port to the stdlib, so credit to Martin Habovštiak (`@Kixunil)` and contributors for the meat of this work. 🥇 Happy to make changes as needed. 🙂