I chose the scheduler priorities based on
https://man7.org/linux/man-pages/man7/sched.7.html
I think the cooperative app cores are most like SCHED_FIFO, while the
sys core is similar to SCHED_RR.
However, I don't think our pthread implementation would be able to
accurately return the right policy since we need to know what processor
the thread is running on, and the only API to get that gets the ID for
the current thread. Since the pthread function passes in a thread ID, we
are unable to always get the processor ID and thus the policy.
In this case, I think we should just always return (and accept in set)
SCHED_FIFO. I don't think this will be used anyways.
The pthread_attr_t type can have priority and affinity values set.
pthread_getpriority returns the priority of the current thread.
These are needed to enable std thread support. std can't link directly
with libctru so we go through pthread as an intermediate interface.
Add Linux BLKIOMIN and BLKIOOPT ioctl constants
These ioctl constants are used to fetch the minimum and optimal I/O
sizes for block devices.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
solarish: Expose siginfo_t data as functions
This will bring illumos (and Solaris) functionality in line with the other UNIX (and UNIX-like) platforms, where unions often hamper access to those data fields.
This will bring illumos (and Solaris) functionality in line with the
other UNIX (and UNIX-like) platforms, where unions often hamper access
to those data fields.
Set __rlimit_resource_t definition for all uclibc (c_ulong).
Bring all linux RLIMIT definitions into arch/generic/mod.rs or respective architectures.
Define all RLIMIT constants for all architectures.
Move BLKSSZGET/BLKPBSZGET with their other Ioctls Constants.
arch/generic/mod.rs No need to check for mips(64), powerpc(64), or sparc(64).
Bring all linux RLIMIT definitions into arch/generic/mod.rs or respective architectures.
Define all RLIMIT constants for all architectures.
Move BLKSSZGET/BLKPBSZGET with their other Ioctls Constants.
arch/generic/mod.rs No need to check for mips(64), powerpc(64), or sparc(64).