[libc] Add select.h and the implementation of the select function for Linux.
authorSiva Chandra Reddy <sivachandra@google.com>
Wed, 19 Oct 2022 23:55:15 +0000 (23:55 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Sat, 22 Oct 2022 03:17:48 +0000 (03:17 +0000)
commitbe4e425758afb926c63eadcfa6bf054bc33c0e4c
treeae2d2335dc8c2d6f1f3b42c1fab801f631efda7b
parent21ef1cac1372f26b9f917bdc7d687847d4edb64e
[libc] Add select.h and the implementation of the select function for Linux.

Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D136375
22 files changed:
libc/config/linux/api.td
libc/config/linux/x86_64/entrypoints.txt
libc/config/linux/x86_64/headers.txt
libc/include/CMakeLists.txt
libc/include/llvm-libc-macros/CMakeLists.txt
libc/include/llvm-libc-macros/sys-select-macros.h [new file with mode: 0644]
libc/include/llvm-libc-types/CMakeLists.txt
libc/include/llvm-libc-types/fd_set.h [new file with mode: 0644]
libc/include/sys/select.h.def [new file with mode: 0644]
libc/spec/linux.td
libc/spec/posix.td
libc/spec/spec.td
libc/src/sys/CMakeLists.txt
libc/src/sys/select/CMakeLists.txt [new file with mode: 0644]
libc/src/sys/select/linux/CMakeLists.txt [new file with mode: 0644]
libc/src/sys/select/linux/select.cpp [new file with mode: 0644]
libc/src/sys/select/select.h [new file with mode: 0644]
libc/test/src/sys/CMakeLists.txt
libc/test/src/sys/select/CMakeLists.txt [new file with mode: 0644]
libc/test/src/sys/select/select_failure_test.cpp [new file with mode: 0644]
libc/test/src/sys/select/select_ui_test.cpp [new file with mode: 0644]
libc/test/src/sys/select/testdata/CMakeLists.txt [new file with mode: 0644]