| Commit message (Expand) | Author | Age | Files | Lines |
| * | Setup stub unit test infrastructure | EuAndreh | 2024-01-05 | 10 | -0/+80 |
| * | sched_rr_get_interval: don't assume time_t is 32-bit on 32-bit archs•••as with clock_getres, the time64 syscall for this is not necessary or
useful, this time since scheduling timeslices are not on the order 68
years. if there's a 32-bit syscall, use it and expand the result into
timespec; otherwise there is only one syscall and it does the right
thing to store to timespec directly.
on 64-bit archs, there is no change to the code after preprocessing.
| Rich Felker | 2019-07-29 | 1 | -0/+14 |
| * | move and deduplicate declarations of __vdsosym to make it checkable | Rich Felker | 2018-09-12 | 1 | -2/+0 |
| * | add sched_getcpu vDSO support•••This brings the call to an actually usable speed.
Quick unscientific benchmark: 14ns : 102ns :: vDSO : syscall
| Nathan Zadoks | 2016-03-02 | 1 | -0/+31 |
| * | add sched_getcpu•••This is a GNU extension, but a fairly minor one, for a system call that
otherwise has no libc wrapper.
| Nathan Zadoks | 2016-03-02 | 1 | -0/+13 |
| * | fix return value of pthread_getaffinity_np and pthread_setaffinity_np•••these functions are expected to return an error code rather than
setting errno and returning -1.
| Rich Felker | 2014-12-02 | 1 | -8/+11 |
| * | fix uninitialized output from sched_getaffinity•••the sched_getaffinity syscall only fills a cpu set up to the set size
used/supported by the kernel. the rest is left untouched and userspace
is responsible for zero-filling it based on the return value of the
syscall.
| Rich Felker | 2014-12-02 | 1 | -1/+5 |
| * | remove useless __yield alias for sched_yield•••this is no longer used for anything, and reportedly clashed with a
builtin on certain compilers.
| Rich Felker | 2014-05-04 | 1 | -4/+1 |
| * | add pthread_setaffinity_np and pthread_getaffinity_np functions | Rich Felker | 2013-08-10 | 3 | -18/+26 |
| * | add cpu affinity interfaces•••this first commit just includes the CPU_* and sched_* interfaces, not
the pthread_* interfaces, which may be added later. simple
sanity-check testing has been done for the basic interfaces, but most
of the macros have not yet been tested.
| Rich Felker | 2013-08-10 | 3 | -0/+29 |
| * | add support for thread scheduling (POSIX TPS option)•••linux's sched_* syscalls actually implement the TPS (thread
scheduling) functionality, not the PS (process scheduling)
functionality which the sched_* functions are supposed to have.
omitting support for the PS option (and having the sched_* interfaces
fail with ENOSYS rather than omitting them, since some broken software
assumes they exist) seems to be the only conforming way to do this on
linux.
| Rich Felker | 2012-11-11 | 6 | -9/+11 |
| * | avoid setting nondefault scheduler too | Rich Felker | 2012-05-03 | 1 | -1/+1 |
| * | implement stub versions of sched_*•••these actually work, but for now they prohibit actually setting
priority levels and report min/max priority as 0.
| Rich Felker | 2012-05-03 | 7 | -0/+59 |