newlib-cygwin/winsup/cygwin/include
Corinna Vinschen d27e9fb29a Cygwin: sys/cpuset.h: add cpuset-specific external functions
The latest incarnation of sys/cpuset.h broke building coreutils.
The reason is the inclusion of stdlib.h and string.h and hence
premature requests for datatypes not yet defined in the include
chain.

Avoid this by defining __cpuset_alloc and __cpuset_free as external
functions, now defined in sched.cc.  Linux is doing this too, just
using different names for the functions. Redefine  __cpuset_zero_s
to use __builtin_memset only on compilers supporting it, otherwise
using a simple loop. Drop the stdlib.h and string.h includes.

Fixes: 3f2790e044 ("Cygwin: Make gcc-specific code in <sys/cpuset.h> compiler-agnostic")
Reported-by: Denis Excoffier <cygwin@Denis-Excoffier.org>
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-09-01 12:38:52 +02:00
..
acl
arpa Use remove-advertising-clause script to edit BSD licenses 2020-01-29 19:03:31 +01:00
asm Cygwin: remove miscellaneous 32-bit code 2022-05-29 17:54:32 -04:00
attr
bits Cygwin: __WORDSIZE: Drop 32 bit considerations 2022-08-03 17:48:20 +02:00
cygwin Cygwin: Add ISO C2X functions c8rtomb, mbrtoc8 2023-08-02 16:56:24 +02:00
machine Cygwin: remove some 32-bit-only function definitions 2022-05-29 17:45:52 -04:00
net
netinet Cygwin: Implement GSO/GRO support 2022-05-13 11:11:38 +02:00
ssp
sys Cygwin: sys/cpuset.h: add cpuset-specific external functions 2023-09-01 12:38:52 +02:00
a.out.h Cygwin: remove miscellaneous 32-bit code 2022-05-29 17:54:32 -04:00
aio.h Cygwin: fix build failure due to redefinition of __restrict in sys/cdefs.h 2023-08-07 16:04:32 +02:00
byteswap.h
dlfcn.h
endian.h
err.h
error.h
fcntl.h Cygwin: fix formatting: collapse whitespace-only lines 2020-03-11 13:45:58 +01:00
features.h
fnmatch.h Use remove-advertising-clause script to edit BSD licenses 2020-01-29 19:03:31 +01:00
fts.h Use remove-advertising-clause script to edit BSD licenses 2020-01-29 19:03:31 +01:00
getopt.h change _COMPILING_NEWLIB to _LIBC 2021-11-15 19:32:23 -05:00
glob.h Use remove-advertising-clause script to edit BSD licenses 2020-01-29 19:03:31 +01:00
icmp.h
ifaddrs.h
io.h
lastlog.h
limits.h Cygwin: define CHARCLASS_NAME_MAX 2023-03-01 21:22:56 +01:00
mntent.h
monetary.h
mqueue.h
netdb.h Use remove-advertising-clause script to edit BSD licenses 2020-01-29 19:03:31 +01:00
nl_types.h
paths.h
poll.h
process.h Cygwin: fix formatting: collapse whitespace-only lines 2020-03-11 13:45:58 +01:00
pthread.h Cygwin: implement pthread_rwlock_clockrdlock/pthread_rwlock_clockwrlock 2021-07-29 17:31:31 +02:00
pty.h
regex.h Cygwin: replace regex with latest verbatim FreeBSD version 2023-03-16 11:12:08 +01:00
resolv.h Cygwin: fix formatting: drop spaces leading tabs 2020-03-11 13:45:58 +01:00
search.h
semaphore.h Cygwin: implement sem_clockwait 2021-07-29 17:13:47 +02:00
sysexits.h Use remove-advertising-clause script to edit BSD licenses 2020-01-29 19:03:31 +01:00
syslog.h
termio.h
tzfile.h
uchar.h Cygwin: Add ISO C2X functions c8rtomb, mbrtoc8 2023-08-02 16:56:24 +02:00
ucontext.h
utmpx.h
wait.h