| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[libc] Migrate sys/ tests to ErrnoCheckingTest. (#141871) See PR #132823 for a previous change to sys/epoll tests, and prior changes before that. ErrnoCheckingTest ensures that errno is properly reset at the beginning of the test case, and is validated at the end of it. This change removes many instances of manual errno manipulation. | 1 年前 | |
[libc] Fix epoll_create behavior when only epoll_create1 is available (#149713) In PR #99785, I disabled a test for epoll_create that was intended to fail on systems where only epoll_create1 is available. This is because epoll_create1 cannot fail in the same way that epoll_create does. Specifically, calling epoll_create(0) should result in an EINVAL error. So, when only epoll_create1 is available, we should simply check if the argument is zero and return the error accordingly. | 1 年前 | |
[libc] Clean up errno header usage in some more tests. (#157974) Either remove spurious libc_errno.h which are no longer needed, or migrate some tests to ErrnoCheckingTest to remove manual errno manipulation. | 10 个月前 | |
[libc] Implement pkey_alloc/free/get/set/mprotect for x86_64 linux (#162362) This patch provides definitions for pkey_* functions for linux x86_64. pkey_alloc, pkey_free, and pkey_mprotect are simple syscall wrappers. pkey_set and pkey_get modify architecture-specific registers. The logic for these live in architecture specific directories: * libc/src/sys/mman/linux/x86_64/pkey_common.h has a real implementation * libc/src/sys/mman/linux/generic/pkey_common.h contains stubs that just return ENOSYS. | 8 个月前 | |
Disable prctl test when building for arm or riscv. (#143627) I'm setting up a buildbot for arm32 using qemu and qemu doesn't support PR_GET_THP_DISABLE. Disable the test for now while we figure out what to do about that. Also disable for riscv because we may do the same for riscv buildbots. | 1 年前 | |
[libc][NFC] Fix Implicit Conversion Warning in getrandom Test (#155732) getrandom returns a ssize_t, but the error codes are defined as integers. We need to use the builtin cast in the Fails matcher to ensure that everything is the same type. clang will warn about this in a bootstrapping build. Originally found in \#155627. | 11 个月前 | |
[libc] Clean up sys/resource (#161749) Needed to support sys/resource in bazel | 9 个月前 | |
[libc] Migrate sys/ tests to ErrnoCheckingTest. (#141871) See PR #132823 for a previous change to sys/epoll tests, and prior changes before that. ErrnoCheckingTest ensures that errno is properly reset at the beginning of the test case, and is validated at the end of it. This change removes many instances of manual errno manipulation. | 1 年前 | |
[libc] Migrate sys/ tests to ErrnoCheckingTest. (#141871) See PR #132823 for a previous change to sys/epoll tests, and prior changes before that. ErrnoCheckingTest ensures that errno is properly reset at the beginning of the test case, and is validated at the end of it. This change removes many instances of manual errno manipulation. | 1 年前 | |
| 9 个月前 | ||
[libc] Migrate sys/ tests to ErrnoCheckingTest. (#141871) See PR #132823 for a previous change to sys/epoll tests, and prior changes before that. ErrnoCheckingTest ensures that errno is properly reset at the beginning of the test case, and is validated at the end of it. This change removes many instances of manual errno manipulation. | 1 年前 | |
[libc] Move libc_errno.h to libc/src/__support and make 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 | 1 年前 | |
[libc] Move libc_errno.h to libc/src/__support and make 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 | 1 年前 | |
[libc] Fix implicit conversion warnings in tests. (#131362) | 1 年前 | |
[libc] remove errno.h includes (#110934) | 1 年前 | |
[libc] Migrate sys/ tests to ErrnoCheckingTest. (#141871) See PR #132823 for a previous change to sys/epoll tests, and prior changes before that. ErrnoCheckingTest ensures that errno is properly reset at the beginning of the test case, and is validated at the end of it. This change removes many instances of manual errno manipulation. | 1 年前 | |
| 1 年前 |