freebsd-nq/lib/libc
Andrew Turner 548a2ec49b Add PT_GETREGSET
This adds the PT_GETREGSET and PT_SETREGSET ptrace types. These can be
used to access all the registers from a specified core dump note type.
The NT_PRSTATUS and NT_FPREGSET notes are initially supported. Other
machine-dependant types are expected to be added in the future.

The ptrace addr points to a struct iovec pointing at memory to hold the
registers along with its length. On success the length in the iovec is
updated to tell userspace the actual length the kernel wrote or, if the
base address is NULL, the length the kernel would have written.

Because the data field is an int the arguments are backwards when
compared to the Linux PTRACE_GETREGSET call.

Reviewed by:	kib
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D19831
2022-01-27 11:40:34 +00:00
..
aarch64 libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
amd64 libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
arm libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
capability Fix a few mandoc issues 2020-10-09 19:12:44 +00:00
compat-43
db tools/build: Don't redefine open() for the linux bootstrap 2021-08-02 14:33:23 +01:00
gdtoa Remove sparc64 specific parts of libc. 2020-02-26 18:55:09 +00:00
gen libc: Teak comment about mips 2022-01-10 10:15:15 -07:00
gmon
i386 libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
iconv libc: Fix "harmless" iconv one-byte overread 2021-12-21 22:47:38 +00:00
include libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
inet
isc
locale libc/locale: Fix races between localeconv(3) and setlocale(3) 2021-09-17 10:47:46 -04:00
md
nameser
net libc: Fix build with -DNS_REREAD_CONF. 2021-12-29 17:01:05 -05: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 Add casts and L suffixes to libc quad support, to work around various 2020-02-17 20:14:59 +00:00
regex libc: Fix regexec when sizeof(char *) > sizeof(long) 2021-12-23 16:38:10 +00:00
resolv res_init: remove unused inet_makeaddr with IN_LOOPBACKNET 2021-11-09 09:33:48 -06:00
riscv libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
rpc libc clnt_com_create: relock rpcsoc_lock earlier when port is obtained from portmapper 2022-01-09 07:36:06 +02: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 __sflush(): on write error, if nothing was written, reset FILE state back 2022-01-25 17:26:05 +02:00
stdlib qsort.c: prevent undefined behavior 2022-01-13 11:09:38 +01:00
stdtime tzcode: Implement timezone change detection 2021-09-12 03:07:58 +00:00
string libc: correct SPDX tag on strstr.c 2022-01-16 11:56:28 -05:00
sys Add PT_GETREGSET 2022-01-27 11:40:34 +00:00
tests Remove quotes around Makefile .error/.warn/.info strings 2022-01-22 14:03:07 -05:00
uuid uuid(3): Document return values 2021-11-19 03:58:34 -05:00
x86 Make CPU_SET macros compliant with other implementations 2021-12-30 12:20:32 +01:00
xdr typo: s/impelmentation/implementation/. 2020-02-07 15:14:29 +00:00
yp
libc_nossp.ldscript
libc.ldscript
Makefile mips: remove libc 2021-12-31 00:14:53 -07: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