diff options
| author | Alan Somers <asomers@gmail.com> | 2025-09-14 11:33:11 -0600 |
|---|---|---|
| committer | Alan Somers <asomers@gmail.com> | 2025-09-14 11:44:55 -0600 |
| commit | 572b42346482472736723fe433b417fe32a01800 (patch) | |
| tree | 56dfb7e6ebbf2883bc54381baa71b7c1dcdd85fa /tests/codegen-llvm/enum/enum-aggregate.rs | |
| parent | 637b50be01093962ac6f4432d6881ab41d6d90b4 (diff) | |
| download | rust-572b42346482472736723fe433b417fe32a01800.tar.gz rust-572b42346482472736723fe433b417fe32a01800.zip | |
On FreeBSD, use readdir instead of readdir_r
readdir_r has the same problems on FreeBSD as it does on other platforms: it assumes a fixed NAME_MAX. And readdir has the same thread-safety guarantee as it does on other platforms: it's safe as long as only one thread tries to read from the directory stream at a given time. Furthermore, readdir_r is likely to be removed for FreeBSD 16, so we should stop using it now.
Diffstat (limited to 'tests/codegen-llvm/enum/enum-aggregate.rs')
0 files changed, 0 insertions, 0 deletions
