Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Sync from rust #17254
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
Uh oh!
There was an error while loading. Please reload this page.
Sync from rust #17254
Changes from 1 commit
8129f1f8026e2cf63bec638cbfd260894e701c2ae25d2a983d4f01ff6c52ea6e9d6b16a20a99d6cf8c9396db20a1fb94c04b6780dedb5c61aab8f76a468ccda4f9719bf7ef9810e7c4e8c612ada6b15194006912fd722328b572a22840980d4565d854fa1e077423eaa486237090c3fe9470e0a9bfe0e940eefd7b92017e37a82314eae94405ce78d3ec6284893e92137890caf576d28fd7829595093573e54f02bbb1cef873f60c0482b221bbe0a3979f49092503b6ae90256fa0e1763d4b0637ff6241dfc99e97ae3bd01a37e8589f5cf6b1ddfa36b44affa63c350adae314078ab2541b1ccb8b0c347d155cdd39d4cdfd81e911314450fbc5b1c8a6f9708c7d07260b8cfd28e6c74031a98cbf0264350d69dc3f3f4fd0e1753725cdf894ad370bd9252f33dc850b3638c88010d2031db27f6c9eaefd915e18a81ee48a096494ee0e6ea26b3cb87780925c5d90caeca3b43b2f55409c612f599fb934def3fe81857465d9c7cedbe2b7c436c6b1f8b046394e4cdc4ec8bd93e87e4f3cf1e03964386f975f447f5145848e0d0f85ce54bb1e5ccf6078fb1aaab73b7c0954394392c4ace4d57e557227707e5ab66876520f76b622f52b1c09937e902645c475f7b2b79b559023d32e21e0369867fbcbb6c74f77391855be64cfb8d6698d6c621e20bef07c86ba9d34754ab32bf2f78b4ac97070c7198f9ad32521e25e8856824e4ea16164984fa73a39026b5c028677ebb380902cc1b399b3238ab8271b9867e20ee6e5433952ab34447c78636ca1a3391d4a95e1c14e115b4bdea042b9ccc89dde56046888bfbe2ede640863312718ad69dfd750075ff75c38e78f1a63c24147755db9839b085d5fc8c635af5d93be004fd5f228e46d797d8cf9b8c32388da40cbd65bf276336d7c4046dc2003ddb0973ac5b573a16ce11b8eea91be2b1ec08383e2848dea73b7e27c5af888971d083c132572f0efe5188ee32e84e5c0f6a4a873f439e6af619f3f82a78435d144bcfe1750d9b30938e1a05743977575501968e3d0f39eae4b533bf88e3f1cb236461d36239a8dfdeefff216cc5c575bf3bcd28cef134566daf08873fbb7cb25746068adde3e4c115b506e1ba3780840f9861cca5133eec6c2839292e6a4e699b6781312464b643e56d2ccb1a1708911b94e6f5866046a733403744184adb784a6ce6546f6e3ef1385356fdbb078395ae9fc5f586e6ace2a97c264d2e469File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Convert `Unix{Datagram,Stream}::{set_}passcred()` to per-OS traits These methods are the pre-stabilized API for obtaining peer credentials from an `AF_UNIX` socket, part of the `unix_socket_ancillary_data` feature. Their current behavior is to get/set one of the `SO_PASSCRED` (Linux), `LOCAL_CREDS_PERSISTENT` (FreeBSD), or `LOCAL_CREDS` (NetBSD) socket options. On other targets the `{set_}passcred()` methods do not exist. There are two problems with this approach: 1. Having public methods only exist for certain targets isn't permitted in a stable `std` API. 2. These options have generally similar purposes, but they are non-POSIX and their details can differ in subtle and surprising ways (such as whether they continue to be set after the next call to `recvmsg()`). Splitting into OS-specific extension traits is the preferred solution to both problems.Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
This merge commit was added into this branch cleanly.
There are no new changes to show, but you can still view the diff.