[libc] Add global stdout and stderr objects.
authorSiva Chandra Reddy <sivachandra@google.com>
Tue, 24 May 2022 08:13:11 +0000 (08:13 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Fri, 27 May 2022 05:43:49 +0000 (05:43 +0000)
commit9b8ca3c1f18c6c906c8ba8d5ac7a082f2d3b5bd4
tree673f87fd765ff1f60bdb86b3ba2f1c477f1479b4
parent827fa2c419617b40b639995ccfd43896cefd4a3c
[libc] Add global stdout and stderr objects.

They are added as entrypoint object targets. The header-gen
infrastructure has been extended to enable handling standard required
global objects. The libc-api-test has also been extended to verify the
global object declarations.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D126329
18 files changed:
libc/config/linux/api.td
libc/config/linux/x86_64/entrypoints.txt
libc/config/public_api.td
libc/spec/spec.td
libc/spec/stdc.td
libc/src/__support/File/file.h
libc/src/__support/File/linux_file.cpp
libc/src/stdio/CMakeLists.txt
libc/src/stdio/stderr.cpp [new file with mode: 0644]
libc/src/stdio/stderr.h [new file with mode: 0644]
libc/src/stdio/stdout.cpp [new file with mode: 0644]
libc/src/stdio/stdout.h [new file with mode: 0644]
libc/test/src/CMakeLists.txt
libc/test/src/__support/File/platform_file_test.cpp
libc/utils/HdrGen/PrototypeTestGen/PrototypeTestGen.cpp
libc/utils/HdrGen/PublicAPICommand.cpp
libc/utils/LibcTableGenUtil/APIIndexer.cpp
libc/utils/LibcTableGenUtil/APIIndexer.h