newlib-cygwin/winsup/cygwin/include/sys
Mark Geisert dfd14093e3 Cygwin: Fix type mismatch on sys/cpuset.h
Addresses https://cygwin.com/pipermail/cygwin/2023-March/253220.html

Take the opportunity to follow FreeBSD's and Linux's lead in recasting
macro inline code as calls to static inline functions.  This allows the
macros to be type-safe.  In addition, added a lower bound check to the
functions that use a cpu number to avoid a potential buffer underrun on
a bad argument.  h/t to Corinna for the advice on recasting.

Fixes: 362b98b49a ("Cygwin: Implement CPU_SET(3) macros")
2023-03-14 11:26:13 +01:00
..
_pthreadtypes.h
acl.h
clipboard.h Cygwin: remove 32-bit only clipboard code 2022-05-29 17:45:52 -04:00
copying.dj
cpuset.h Cygwin: Fix type mismatch on sys/cpuset.h 2023-03-14 11:26:13 +01:00
cygwin.h Cygwin: remove miscellaneous 32-bit code 2022-05-29 17:54:32 -04:00
dirent.h Cygwin: remove miscellaneous 32-bit code 2022-05-29 17:54:32 -04:00
file.h
ioctl.h Cygwin: remove most occurrences of __stdcall and __cdecl 2022-06-06 12:00:45 -04:00
ipc.h
kd.h
lock.h
mman.h Cygwin: simplify some function names 2022-05-29 17:45:52 -04:00
mount.h
msg.h
mtio.h
param.h Cygwin: fix/drop a few comments 2022-08-03 18:14:39 +02:00
poll.h
procfs.h
quota.h
random.h
resource.h
sem.h
shm.h
signalfd.h
smallprint.h
socket.h
soundcard.h
statfs.h
statvfs.h
stdio.h
strace.h Cygwin: remove regparm.h 2022-05-29 17:45:52 -04:00
sysinfo.h
syslimits.h change _COMPILING_NEWLIB to _LIBC 2021-11-15 19:32:23 -05:00
syslog.h
sysmacros.h
sysproto.h
termio.h
termios.h Cygwin: drop macro and code for CYGWIN_VERSION_DLL_IS_OLD_TERMIOS 2022-08-03 15:35:29 +02:00
timerfd.h
ttychars.h
ucontext.h
uio.h
un.h
utime.h
utmp.h Cygwin: unbreak the build with GCC 7 2019-07-19 14:14:33 -04:00
utsname.h
vfs.h
wait.h change _COMPILING_NEWLIB to _LIBC 2021-11-15 19:32:23 -05:00
xattr.h