Implement `getrandom` function for linux targets.
authorSchrodinger ZHU Yifan <yifanzhu@rochester.edu>
Mon, 10 Oct 2022 18:00:13 +0000 (11:00 -0700)
committerMichael Jones <michaelrj@google.com>
Mon, 10 Oct 2022 18:00:35 +0000 (11:00 -0700)
commit9eb11856cf1fa62c5408594fafc973eb2d380cdb
treeeb6f7349f141e3cecd71053f16c3f984fc0e7b68
parentb8a8c2d47a38ba08012fe9cbb28169a1e0f7be2a
Implement `getrandom` function for linux targets.

Reviewed By: michaelrj, sivachandra

Differential Revision: https://reviews.llvm.org/D134665
18 files changed:
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/linux/CMakeLists.txt
libc/include/llvm-libc-macros/linux/sys-random-macros.h [new file with mode: 0644]
libc/include/llvm-libc-macros/sys-random-macros.h [new file with mode: 0644]
libc/include/sys/random.h.def [new file with mode: 0644]
libc/spec/linux.td
libc/src/sys/CMakeLists.txt
libc/src/sys/random/CMakeLists.txt [new file with mode: 0644]
libc/src/sys/random/getrandom.h [new file with mode: 0644]
libc/src/sys/random/linux/CMakeLists.txt [new file with mode: 0644]
libc/src/sys/random/linux/getrandom.cpp [new file with mode: 0644]
libc/test/src/sys/CMakeLists.txt
libc/test/src/sys/random/CMakeLists.txt [new file with mode: 0644]
libc/test/src/sys/random/linux/CMakeLists.txt [new file with mode: 0644]
libc/test/src/sys/random/linux/getrandom_test.cpp [new file with mode: 0644]