Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unix: Extend UnixStream and UnixDatagram to send and receive file descriptors #69864

Merged
merged 51 commits into from
Dec 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
0b3c9d8
unix: Extend UnixStream and UnixDatagram to send and receive file des…
LinkTed Aug 21, 2020
6fa7c3f
Split net.rs into multiple files
LinkTed Aug 22, 2020
6f82ddf
Add AncillaryError
LinkTed Aug 22, 2020
e6984ee
Add UCred struct
LinkTed Aug 23, 2020
8783b06
Move `add_to_ancillary_data` and `AncillaryDataIter` to ancillary.rs
LinkTed Aug 23, 2020
8784ffb
Using `read_unaligned` instead of `memcpy`.
LinkTed Aug 25, 2020
e108405
Replace `TryFrom` of `AncillaryData` with a private method.
LinkTed Aug 25, 2020
3dfab6f
Add integer overflow check
LinkTed Aug 25, 2020
b82f29d
Remove `Clone` trait bound in `add_to_ancillary_data`
LinkTed Aug 25, 2020
4c929a0
Remove lifetime annotation in `messages` function
LinkTed Aug 25, 2020
1f3195a
Remove inner function in `bind`, `connect` and `send_to`
LinkTed Aug 25, 2020
6ed9bfa
Use `fill` instead of `memset`
LinkTed Aug 27, 2020
07ed6af
Remove unnecessary path
LinkTed Aug 27, 2020
53791b3
Move conditional compilation to the upper module and sort the target …
LinkTed Aug 28, 2020
1869141
Reduce impl trait by using macro in `raw_fd.rs`
LinkTed Aug 28, 2020
46764d4
Add doc(cfg(...))
LinkTed Aug 29, 2020
a91fd73
Add doc comments
LinkTed Aug 29, 2020
19c5fdd
Rename `test.rs` to `tests.rs`
LinkTed Sep 1, 2020
686964f
Add `set_passcred` and `passcred` methods to `UnixStream` and `UnixDa…
LinkTed Sep 7, 2020
eeea5c2
Change API to unsafe and add doc comments
LinkTed Sep 12, 2020
1902711
Change name of struct to SocketCred
LinkTed Sep 16, 2020
5964d59
Change standard types to libc types
LinkTed Sep 16, 2020
d0b133c
Remove unsupported target_os for SocketCred
LinkTed Sep 17, 2020
e61148f
Cast boolean into int directly in function set_passcred
LinkTed Sep 17, 2020
cc085e9
Replace `assert` with `unreachable`
LinkTed Sep 18, 2020
db902bc
Add the code of the tracking issue
LinkTed Sep 19, 2020
7b476d8
Remove `target_os`, which does not have `MSG_CMSG_CLOEXEC` constant i…
LinkTed Sep 20, 2020
1f6d7dc
Remove `target_os`, which does not have `cmsghdr` struct in `libc`
LinkTed Sep 20, 2020
d30508f
Remove `target_os`, which does not have `SO_PASSCRED` constant in `libc`
LinkTed Sep 20, 2020
e0cedba
Fix cfg condition for test
LinkTed Sep 20, 2020
c2a1b50
Add conditional compilation for import
LinkTed Sep 20, 2020
b01ce2c
Fix `MSG_CMSG_CLOEXEC` for macos
LinkTed Sep 22, 2020
31e6e38
Fix `SO_PASSCRED` for macos
LinkTed Sep 22, 2020
0fcb834
Fix unused import for `IoSliceMut` for macos
LinkTed Sep 22, 2020
889c927
Remove `SocketCred` for `emscripten`
LinkTed Sep 22, 2020
ce167f8
Fix type mismatching for different OSes.
LinkTed Sep 25, 2020
6b0c3df
Remove unnecessary trailing semicolon
LinkTed Sep 26, 2020
e9bf699
Remove `passcred` for `emscripten`
LinkTed Sep 26, 2020
1ae54e5
Change imports for `cfg(doc)`
LinkTed Sep 27, 2020
d0069a0
Fix imports for MacOs
LinkTed Oct 2, 2020
a817647
Add fake definitions for Windows
LinkTed Oct 4, 2020
fc65f6a
Fix import errors for `#[cfg(doc)]` target
LinkTed Oct 4, 2020
7b596f2
Fix `libc` is ambiguous for Windows
LinkTed Oct 5, 2020
64facfe
Fix unresolved link to `SocketAncillary`
LinkTed Oct 6, 2020
d8c75d9
Fix unresolved imports for `recv_vectored_with_ancillary_from`, `sen…
LinkTed Oct 11, 2020
79273fa
Fix cannot find type `ucred` for MacOs by using fake definitions
LinkTed Oct 17, 2020
ea5e012
Fix test cases for MacOs
LinkTed Oct 21, 2020
c779405
Fix docs for MacOs (correction)
LinkTed Nov 3, 2020
ead7185
Fix docs for MacOs (again)
LinkTed Nov 4, 2020
9b9dd4a
Bug fix for android platform, because of the wrong behavior of CMSG_N…
LinkTed Nov 24, 2020
8983752
Add comment for the previous android bug fix
LinkTed Nov 26, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions library/std/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@
#![feature(rustc_private)]
#![feature(shrink_to)]
#![feature(slice_concat_ext)]
#![feature(slice_fill)]
#![feature(slice_internals)]
#![feature(slice_ptr_get)]
#![feature(slice_ptr_len)]
Expand Down
Loading