[libcxx-commits] [libcxx] [libcxx] Add fallback to standard C when `unistd` is unavailable (PR #102005)

Joseph Huber via libcxx-commits libcxx-commits at lists.llvm.org
Mon Aug 5 09:28:28 PDT 2024


jhuber6 wrote:

> Shame that this needs to return a string, otherwise `tmpfile` would be ideal, but the C standard makes it difficult to do this safely, since by the time you get the temp filename there's no guarantee that someone else didn't open the file. Which is possible to happen given lots of parallel tests and only like five random numbers?

Well, the `stdio.h` test wants it anyway, so maybe we want it?

https://github.com/llvm/llvm-project/pull/102005


More information about the libcxx-commits mailing list