diff options
author | Mikhail R. Gadelha <mikhail@igalia.com> | 2023-08-01 14:26:00 -0300 |
---|---|---|
committer | Mikhail R. Gadelha <mikhail@igalia.com> | 2023-08-01 14:26:41 -0300 |
commit | 943d194fd90fc943fd0b99cf987c1b118f8edaad (patch) | |
tree | f00fecf5a70dfe96d25a7a42f4382cf10edb7100 /clang/lib/Basic/FileManager.cpp | |
parent | 2301e13269d52dbed9b760615d9f328ca1cf72f5 (diff) | |
download | llvm-943d194fd90fc943fd0b99cf987c1b118f8edaad.zip llvm-943d194fd90fc943fd0b99cf987c1b118f8edaad.tar.gz llvm-943d194fd90fc943fd0b99cf987c1b118f8edaad.tar.bz2 |
[libc] Fix sched_getscheduler return value
This patch fixes the return time for sched_getscheduler which was set to
always zero. The syscall documentation, however, defines:
On success, sched_getscheduler() returns the policy for the thread (a
nonnegative integer).
I also changed the return type for sched_setscheduler, but this change
didn't impact and test case.
This patch also removes the duplicated code from param_and_scheduler_test.cpp
and adds SCHED_BATCH and SCHED_IDLE to the tests.
Reviewed By: michaelrj
Differential Revision: https://reviews.llvm.org/D156700
Diffstat (limited to 'clang/lib/Basic/FileManager.cpp')
0 files changed, 0 insertions, 0 deletions