FreeBSD needs posix_spawnattr_init and posix_spawn_file_actions_init to
be used before calling posix_spawn. Keep the trivial version for Darwin.
Details
Details
- Reviewers
vitalybuka - Group Reviewers
Restricted Project
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
compiler-rt/test/sanitizer_common/TestCases/Posix/posix_spawn.c | ||
---|---|---|
11 | can you include public header instead of internal one? |
compiler-rt/test/sanitizer_common/TestCases/Posix/posix_spawn.c | ||
---|---|---|
11 | spawn.h is already included above. This include is to pick up the SANITIZER_APPLE definition. |
compiler-rt/test/sanitizer_common/TestCases/Posix/posix_spawn.c | ||
---|---|---|
11 | I'm not sure if other tests do the same, if not I'd just use defined(__APPLE__)? |
compiler-rt/test/sanitizer_common/TestCases/Posix/posix_spawn.c | ||
---|---|---|
11 | I would prefer avoid including imp/lib/ headers here and use defined(APPLE) |
can you include public header instead of internal one?
#include <spawn.h>