summaryrefslogtreecommitdiff
path: root/libc/src/sys/random/linux/getrandom.cpp
AgeCommit message (Collapse)Author
2025-06-18[libc] Internal getrandom implementation (#144427)sribee8
Implemented an internal getrandom to avoid calls to the public one in table.h --------- Co-authored-by: Sriya Pratipati <sriyap@google.com>
2025-06-11[libc] Move libc_errno.h to libc/src/__support and make ↵lntue
LIBC_ERRNO_MODE_SYSTEM to be header-only. (#143187) This is the first step in preparation for: https://discourse.llvm.org/t/rfc-make-clang-builtin-math-functions-constexpr-with-llvm-libc-to-support-c-23-constexpr-math-functions/86450
2024-07-12[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98597)Petr Hosek
This is a part of #97655.
2024-07-12Revert "[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace ↵Mehdi Amini
declaration" (#98593) Reverts llvm/llvm-project#98075 bots are broken
2024-07-11[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98075)Petr Hosek
This is a part of #97655.
2023-09-26[libc] Mass replace enclosing namespace (#67032)Guillaume Chatelet
This is step 4 of https://discourse.llvm.org/t/rfc-customizable-namespace-to-allow-testing-the-libc-when-the-system-libc-is-also-llvms-libc/73079
2023-08-07[libc][cleanup] Fix most conversion warningsMichael Jones
This patch is large, but is almost entirely just adding casts to calls to syscall_impl. Much of the work was done programatically, with human checking when the syntax or types got confusing. Reviewed By: mcgrathr Differential Revision: https://reviews.llvm.org/D156950
2023-04-12[LIBC] Fix `getrandom` success return valueNoah Goldstein
`getrandom` should return the number of bytes successfully set on success, not `0`. Reviewed By: sivachandra, michaelrj Differential Revision: https://reviews.llvm.org/D147981
2023-03-02[libc][NFC] Switch use of errno in src/unistd and src/sys to libc_errno.Siva Chandra Reddy
Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D145096
2022-10-10Implement `getrandom` function for linux targets.Schrodinger ZHU Yifan
Reviewed By: michaelrj, sivachandra Differential Revision: https://reviews.llvm.org/D134665