Cygwin: Implement CPU_SET(3) macros

This patch supplies an implementation of the CPU_SET(3) processor
affinity macros as documented on the relevant Linux man page.

There is a mostly superset implementation of cpusets under newlib's
libc/sys/RTEMS/include/sys that has Linux and FreeBSD compatibility
and is built on top of FreeBSD bitsets.  This Cygwin implementation
and the RTEMS one could be combined if desired at some future point.
This commit is contained in:
Mark Geisert
2019-08-04 15:45:46 -07:00
committed by Corinna Vinschen
parent 654398db84
commit 362b98b49a
3 changed files with 64 additions and 10 deletions

View File

@@ -29,15 +29,9 @@ If a SA_SIGINFO signal handler changes the ucontext_t pointed to by the
third parameter, follow it after returning from the handler.
</para></listitem>
<listitem><para>
Support for getting and setting process and thread affinities. New APIs:
sched_getaffinity, sched_setaffinity, pthread_getaffinity_np,
pthread_setaffinity_np.
</para></listitem>
<listitem><para>
New APIs: sched_getaffinity, sched_setaffinity, pthread_getaffinity_np,
pthread_setaffinity_np.
pthread_setaffinity_np, plus CPU_SET macros.
</para></listitem>
<listitem><para>