Results 136 issues of David CARLIER

Moving the part in separated compat implementation (also couple of other OS support cpu affinity, e.g. NetBSD, with different APIs). Most of CPU_* macros are compatible minus CPU_AND.

S-waiting-for-author
feature
M-ignored-by-merge-bots

Also fixes a memory leak and avoids crashes when reallocation fails.

S-waiting-for-author
M-ignored-by-merge-bots

also renaming few types to avoid conflicts with existing ones.

Proposal to make it compilable under BSD