opnsense-src/lib/libc
Andrew Turner 658631a37d 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

(cherry picked from commit 548a2ec49b)
2022-05-12 15:12:59 -07:00
..
aarch64 Add an implementation of .mcount on arm64 2022-04-19 10:18:02 +01:00
amd64 amd64: bring back asm bcmp, shared with memcmp 2022-03-29 10:25:17 +00:00
arm Add sched_getcpu() 2022-01-14 18:17:29 +02:00
capability Fix a few mandoc issues 2020-10-09 19:12:44 +00:00
compat-43 Adjust history, info source from v1's manuals 2019-09-04 13:44:46 +00:00
db tools/build: Don't redefine open() for the linux bootstrap 2021-08-05 10:00:45 +01:00
gdtoa Remove sparc64 specific parts of libc. 2020-02-26 18:55:09 +00:00
gen sched_getaffinity(3): more compatibility with Linux 2022-05-02 21:08:44 +03:00
gmon mcount: tidy up ANSIfication 2018-10-20 22:39:35 +00:00
i386 libc: add _get_tp() private function 2021-04-23 14:14:07 +03:00
iconv libc: Fix "harmless" iconv one-byte overread 2022-01-24 23:59:47 +00:00
include Add sched_getcpu() 2022-01-14 18:17:29 +02:00
inet libc: fix cases of undefined behavior. 2018-08-07 15:24:19 +00:00
isc SPDX: more ISC-related files. 2017-12-08 17:52:53 +00:00
locale lnumeric.c: replace some space*8 by tabs 2022-02-09 02:42:46 +02:00
md Replace dot-dot relative pathing with SRCTOP-relative paths where possible 2017-01-20 03:23:24 +00:00
mips mips _libc_get_static_tls_base: Narrow scope of #ifdef. 2022-04-29 13:50:05 -07:00
nameser Bounds check again after advancing cp, otherwise we have a possible 2019-09-05 19:35:30 +00:00
net if_indextoname(3): Correct the RFC in a comment 2022-04-10 07:52:14 +02:00
nls Implement strerror_l(). 2020-12-16 09:02:09 +00:00
posix1e acl_delete_entry(): remove write-only variable 2021-12-06 02:23:45 +02:00
powerpc Add sched_getcpu() 2022-01-14 18:17:29 +02:00
powerpc64 Add sched_getcpu() 2022-01-14 18:17:29 +02:00
powerpcspe [PowerPC] [PowerPCSPE] Fix multiple issues in fpsetmask(). 2021-03-08 12:39:33 -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: regex: rework unsafe pointer arithmetic 2021-01-08 13:58:35 -06:00
resolv resolver(3): Fix a typo in a source code comment 2022-04-14 08:10:32 +02:00
riscv Add sched_getcpu() 2022-01-14 18:17:29 +02:00
rpc rpc(3): Fix two typos in source code comments 2022-04-09 08:17:17 +02:00
secure libc: ssp: sprinkle around some __dead2 2021-10-06 02:14:42 -05:00
softfloat libc: use standard LF line endings, not CRLF 2022-02-08 15:52:23 -05:00
stdio libc: Restore fp state upon flush error in fputc 2022-03-31 11:21:48 -04:00
stdlib getenv(3): Fix two typos in source code comments 2022-04-14 08:03:09 +02:00
stdtime strftime.3: Fix a typo and use St for standards 2022-02-14 18:05:07 +01:00
string libc: correct SPDX tag on strstr.c 2022-01-18 19:32:29 -05:00
sys Add PT_GETREGSET 2022-05-12 15:12:59 -07:00
tests Have stpncpy tests ask the kernel for the page size 2022-05-03 15:04:04 +01:00
uuid uuid(3): Document return values 2021-11-21 19:43:31 -05:00
x86 Make CPU_SET macros compliant with other implementations 2022-01-14 18:17:30 +02:00
xdr typo: s/impelmentation/implementation/. 2020-02-07 15:14:29 +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 Attempt to move the POSIX iconv* symbols out of runtime linker space. 2013-11-17 22:52:17 +00:00
libc_nossp.ldscript Add different libc ldscript: the one without libssp -- 2016-10-12 13:19:21 +00:00
Makefile powerpc: enable initial-exec TLS 2022-03-08 01:28:33 +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-22 13:33:10 +03:00