[libc] Add fuchsia/io.h for TestLogger
authorAlex Brachet <abrachet@google.com>
Wed, 19 Apr 2023 00:54:32 +0000 (00:54 +0000)
committerAlex Brachet <abrachet@google.com>
Wed, 19 Apr 2023 00:54:32 +0000 (00:54 +0000)
commit8bd723b0714bf00330e727510130a635e3cb477f
treeadd4d55460e14ade44b2868463bf4c0933756cf0
parent0acb639fd2350d831f149035e078654a655c209b
[libc] Add fuchsia/io.h for TestLogger

b3c696fb86 started using TestLogger in tests. This class depends on
write_to_stderr which was previously only provided for Linux and
GPU's. Note, this function is used on those platforms in the libc
proper, though for Fuchsia we only ever want to provide this for
TestLogger.

No CMake files are changed because this fuchsia/ directory isn't
useful in any CMake build.

Differential Revision: https://reviews.llvm.org/D148675
libc/src/__support/OSUtil/fuchsia/io.h [new file with mode: 0644]
libc/src/__support/OSUtil/io.h