about summary refs log tree commit diff
path: root/tests/codegen-llvm/enum/enum-aggregate.rs
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2025-09-14 11:33:11 -0600
committerAlan Somers <asomers@gmail.com>2025-09-14 11:44:55 -0600
commit572b42346482472736723fe433b417fe32a01800 (patch)
tree56dfb7e6ebbf2883bc54381baa71b7c1dcdd85fa /tests/codegen-llvm/enum/enum-aggregate.rs
parent637b50be01093962ac6f4432d6881ab41d6d90b4 (diff)
downloadrust-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