opnsense-src/lib/libc
Dmitry Chagin c21b080f3d cpuset: Fix sched_[g|s]etaffinity() for better compatibility with Linux.
Under Linux to sched_[g|s]etaffinity() functions the value returned from a call
to gettid(2) (thread id) can be passed in the argument pid. Specifying pid as 0
will set the attribute for the calling thread, and passing the value returned
from a call to getpid(2) (process id) will set the attribute for the main thread
of the thread group.

Native cpuset(2) family of system calls has "which" argument to determine how
the value of id argument is interpreted, i.e., CPU_WHICH_TID is used to pass
a thread id and CPU_WHICH_PID - to pass a process id.

For now native sched_[g|s]etaffinity() implementation is wrong as uses "which"
CPU_WHICH_PID to pass both (process and thread id) to the kernel. To fix this
adding a new "which" CPU_WHICH_TIDPID intended to handle both id's.

Reviewed by:		kib
Differential Revision:	https://reviews.freebsd.org/D38209
MFC after:		1 week
2023-01-29 16:17:33 +03:00
..
aarch64 libc: Fix longjmp/_longjmp(buf, 0) for AArch64 and RISC-V 2023-01-09 18:34:43 +00:00
amd64 amd64 libc: add missed GNU-stack annotation to memmove/memcpy 2022-11-18 15:31:38 +02:00
arm libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
capability Remove "All Rights Reserved" from FreeBSD Foundation libc copyrights 2022-07-21 09:53:31 -04:00
compat-43 libc: Add HISTORY sections to the manual pages 2022-05-05 18:46:32 +02:00
db libc: Add HISTORY sections to the manual pages 2022-05-05 18:46:32 +02:00
gdtoa libc: drop "All rights reserved" from Foundation copyrights 2022-08-04 16:57:50 -04:00
gen cpuset: Fix sched_[g|s]etaffinity() for better compatibility with Linux. 2023-01-29 16:17:33 +03:00
gmon
i386 libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
iconv libc: iconv: add mb_cur_min for encoder traits 2022-08-11 11:42:17 -05:00
include libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
inet
isc
locale xlocale(3): Link man pages 2022-12-19 05:54:52 +01:00
md
nameser Bounds check again after advancing cp, otherwise we have a possible 2019-09-05 19:35:30 +00:00
net getservent.3: Mention the service.db 2022-12-07 10:26:13 +01:00
nls Implement strerror_l(). 2020-12-16 09:02:09 +00:00
posix1e acl_delete_entry(): remove write-only variable 2021-11-29 17:39:51 +02:00
powerpc libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
powerpc64 libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
powerpcspe [PowerPC] [PowerPCSPE] Fix multiple issues in fpsetmask(). 2021-02-28 21:11:29 -06:00
quad qdivrem: Predict division by zero as false. 2022-10-04 13:51:06 +02:00
regex libc: drop "All rights reserved" from Foundation copyrights 2022-08-04 16:57:50 -04:00
resolv resolver(3): Fix a typo in a source code comment 2022-04-09 09:14:29 +02:00
riscv libc: Fix longjmp/_longjmp(buf, 0) for AArch64 and RISC-V 2023-01-09 18:34:43 +00:00
rpc rpcb_clnt.c: Do not force use of UDP 2022-11-13 12:16:06 -08:00
secure libc: ssp: sprinkle around some __dead2 2021-09-30 23:55:17 -05:00
softfloat libc: use standard LF line endings, not CRLF 2021-04-03 16:20:07 -04:00
stdio libc: Fix size range check in setvbuf 2022-10-04 12:03:56 -04:00
stdlib strfmon(3): Match the return type 2023-01-25 11:02:55 +02:00
stdtime tzcode: Move configuration into separate header. 2023-01-11 11:39:12 +01:00
string libc: Fix build with WITHOUT_MACHDEP_OPTIMIZATIONS=YES set. 2023-01-10 17:00:41 +03:00
sys cpuset: Fix sched_[g|s]etaffinity() for better compatibility with Linux. 2023-01-29 16:17:33 +03:00
tests strfmon_l: Use specified locale for number formatting 2022-10-30 00:09:11 +03:00
uuid uuid(3): Document return values 2021-11-19 03:58:34 -05:00
x86 Remove "All Rights Reserved" from FreeBSD Foundation libc copyrights 2022-07-21 09:53:31 -04:00
xdr xdr: store chars consistently 2023-01-12 18:16:17 +00:00
yp Increase the size of the send and receive buffers for YP client rpc 2019-09-16 06:42:01 +00:00
libc.ldscript
libc_nossp.ldscript
Makefile libc: Include quad support on long32 ABIs 2022-10-05 17:27:44 +01:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options Update libssp paths in various Makefile.depend* files 2020-01-06 18:15:55 +00:00
Versions.def Create namespace for the symbols added during 14-CURRENT cycle. 2021-07-15 19:40:28 +03:00