Currently unit tests cannot be run on macOS due to missing OSUtil.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/src/__support/OSUtil/darwin/io.h | ||
---|---|---|
19 | can we use the macro name if we include <sys/syscall.h>? |
libc/src/__support/OSUtil/darwin/io.h | ||
---|---|---|
19 | The syscall in macOS is a bit tricky. Technically they are not public API in macOS, since you are supposed to make syscalls via the system libc syscall wrappers. So the system header sys/syscall.h is not guaranteed to be available. On the other hand, these low numbered syscalls are matched with Unix and barely changed, so it is kind of safe to call these. |
can we use the macro name if we include <sys/syscall.h>?