Rollup merge of #136826 - xizheyin:issue-136737, r=thomcc

Replace mem::zeroed with mem::MaybeUninit::uninit for large struct in Unix

As discussion in #136737.

- Replace `mem::zeroed()` with `MaybeUninit::uninit()` for `sockaddr_storage` in `accept()` and `recvfrom()` since these functions fill in the address structure
- Replace `mem::zeroed()` with `MaybeUninit::uninit()` for `pthread_attr_t` in thread-related functions since `pthread_attr_init()` initializes the structure
- Add references to man pages to document this behavior
This commit is contained in:
Jacob Pratt 2025-02-23 02:44:16 -05:00 committed by GitHub
commit 757faeec75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

Diff Content Not Available