opnsense-src/usr.bin
John Baldwin 382ffc8786 x86: Add a NT_X86_SEGBASES register set.
This register set contains the values of the fsbase and gsbase
registers.  Note that these registers can already be controlled
individually via ptrace(2) via MD operations, so the main reason for
adding this is to include these register values in core dumps.  In
particular, this will enable looking up the value of TLS variables
from core dumps in gdb.

The value of NT_X86_SEGBASES was chosen to match the value of
NT_386_TLS on Linux.  The notes serve similar purposes, but FreeBSD
will never dump a note equivalent to NT_386_TLS (which dumps a single
segment descriptor rather than a pair of addresses) and picking a
currently-unused value in the NT_X86_* range could result in a future
conflict.

Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D34650

(cherry picked from commit 931983ee08)
2022-05-13 09:45:19 -07:00
..
addr2line
alias
apply apply(1): Fix magic number substitution with magic character ' ' 2018-08-08 21:21:28 +00:00
ar ar: Avoid overwriting the stdout file stream pointer 2022-02-09 10:25:28 -05:00
asa
at at(1): Markup environment variables with proper macros 2020-07-19 14:42:13 +00:00
atm
awk one-true-awk: import 20210221 (1e4bc42c53a1) which fixes a number of bugs 2021-07-10 11:07:26 -06:00
backlight backlight.8: Fix description of -f 2022-04-11 12:15:56 +02:00
banner Add HISTORY sections to banner(6), basename(1), limits(1) and vmstat(8) 2020-06-18 13:19:56 +00:00
basename Add HISTORY sections to banner(6), basename(1), limits(1) and vmstat(8) 2020-06-18 13:19:56 +00:00
bc Sync with OpenBSD. 2019-01-12 12:35:02 +00:00
beep beep(1): Initial version of utility to create terminal beep via soundcard. 2021-11-12 15:33:10 +01:00
biff
bluetooth pkgbase: Add a FreeBSD-bluetooth package 2019-07-19 15:10:03 +00:00
bmake Merge bmake-20220208 2022-02-15 21:37:08 -08:00
brandelf Update Makefile.depend files 2019-12-11 17:37:53 +00:00
bsdcat libarchive: import changes from upstream 2022-02-23 08:56:34 +01:00
bsdiff bsdiff: fix off-by-one error 2020-11-16 18:41:49 +00:00
bzip2 Install all bzip2.1 MLINKs from the same place. 2019-08-28 21:01:51 +00:00
bzip2recover Install all bzip2.1 MLINKs from the same place. 2019-08-28 21:01:51 +00:00
c89
c99
caesar
calendar usr.bin/calendar: do not treat // in text as comment 2022-03-04 20:41:02 +01:00
cap_mkdb
chat Fix a few mandoc issues 2020-10-09 14:03:45 +00:00
chkey Update Makefile.depend files 2019-12-11 17:37:53 +00:00
chpass Partially revert r367756 (chpass(1) synopsis changes) 2020-11-17 16:54:12 +00:00
cksum
clang Merge llvm-project 13.0.0 release 2021-12-06 17:30:07 +01:00
cmp cmp: initialize limit to avoid stack garbage limits 2021-10-23 14:01:00 -05:00
col col(1): Add EXAMPLES section 2020-10-21 16:30:34 +00:00
colrm colrm.1: Add a missing colon 2020-06-23 10:27:41 +00:00
column
comm comm(1): Add EXAMPLES section 2020-07-27 16:51:23 +00:00
compile_et pkgbase: Create a FreeBSD-kerberos package 2022-01-05 18:23:50 +01:00
compress compress(1): Add EXAMPLES section 2020-10-20 13:05:25 +00:00
cpio libarchive: import changes from upstream 2022-02-23 08:56:34 +01:00
cpuset sys/bitset.h: reduce visibility of BIT_* macros 2022-01-14 18:17:30 +02:00
csplit
ctags
ctlstat ctlstat: add prometheus output 2022-05-12 14:43:01 -06:00
cut cut: Fix out of boundary write on illegal list argument 2018-05-23 09:16:20 +00:00
cxxfilt
dc Adjust history, info source from v1's manuals 2019-09-04 13:44:46 +00:00
diff diff: tests: loosen up requirements for report_identical 2022-04-21 17:38:00 -05:00
diff3 diff3: document and test -T 2021-09-25 10:34:39 +02:00
dirname Convert cap_enter() < 0 && errno != ENOSYS to caph_enter() < 0. 2018-06-19 23:43:14 +00:00
dpv dpv: Fix synopsis formatting & sort options 2021-11-07 18:50:23 +01:00
drill Rename NO_WERROR -> MK_WERROR=no 2021-01-07 09:31:03 +00:00
dtc dtc.1: Mention the existence of -i flag 2022-03-09 13:52:23 -07:00
du du_test: Skip three tests if sparse files are not supported 2021-04-22 10:41:39 +01:00
ee
elfctl elfctl: whitespace cleanup 2022-02-22 14:54:41 -05:00
elfdump elfdump: handle small files more gracefully 2022-03-02 15:56:31 -06:00
enigma enigma(1) Remove reference to PGP; modernize a bit 2018-05-09 07:46:57 +00:00
env pkgbase: Put more binaries/lib in runtime 2022-01-05 18:23:51 +01:00
etdump etdump: Fix the file name included in the could not open error message 2022-01-25 00:00:05 +00:00
expand [expand] add __dead2 annotation to usage 2018-05-11 06:55:02 +00:00
factor Fix the way 'factor' behaves when using OpenSSL to match the description 2020-01-12 20:25:11 +00:00
false
fetch fetch: make -S argument accept values > 2GB 2022-03-04 20:49:38 +01:00
file Integrate contrib/file/tests with kyua/atf 2022-03-02 15:56:31 -06:00
file2c
find pkgbase: Put more binaries/lib in runtime 2022-01-05 18:23:51 +01:00
finger
fmt fmt(1): Add EXAMPLES section 2020-10-29 18:37:20 +00:00
fold fold(1): Add EXAMPLES section 2020-10-29 18:39:04 +00:00
fortune freebsd-tips: Use a fetchable URL as example 2021-07-28 03:24:51 +08:00
from
fstat fuser: restore functionality by fixing fsid type 2021-11-08 07:55:30 +02:00
fsync pkgbase: Put a lot of binaries and lib in FreeBSD-runtime 2019-09-05 14:13:08 +00:00
ftp pkgbase: Create a FreeBSD-ftp package 2022-01-05 18:23:51 +01:00
gcore x86: Add a NT_X86_SEGBASES register set. 2022-05-13 09:45:19 -07:00
gencat
getaddrinfo
getconf Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
getent getent(1): Add EXAMPLES section 2020-10-24 16:40:34 +00:00
getopt Convert cap_enter() < 0 && errno != ENOSYS to caph_enter() < 0. 2018-06-19 23:43:14 +00:00
gh-bc Skip -flto for all MIPS ports 2022-03-04 21:16:44 +01:00
gprof gprof: Retire a.out support 2020-12-26 11:47:47 -05:00
grdc Remove remnant from the pre LIBADD era 2019-09-13 14:51:00 +00:00
grep pkgbase: Put more binaries/lib in runtime 2022-01-05 18:23:51 +01:00
gzip gzip: fix error handling in unxz 2022-03-02 15:56:31 -06:00
head Update Makefile.depend files 2019-12-11 17:37:53 +00:00
hesinfo
hexdump hexdump(1): Add EXAMPLES section 2020-06-29 15:15:14 +00:00
host
iconv iconv(1): Add EXAMPLE 2020-11-29 18:22:14 +00:00
id pkgbase: Put more binaries/lib in runtime 2022-01-05 18:23:51 +01:00
ident ident(1): Normalizing date format 2020-12-19 12:54:00 +00:00
indent Fix a few typos in source code comments 2021-08-19 09:27:34 +02:00
ipcrm Fix build post r330299 2018-03-02 23:31:55 +00:00
ipcs ipcs(1): drop obsolete error checking 2019-02-07 14:29:45 +00:00
iscsictl iscsi.conf(5): Fix a mandoc warning 2020-11-20 16:41:32 +00:00
join join(1): Add EXAMPLES section 2020-06-20 11:27:59 +00:00
jot jot.1: Explain default argument values more precisely 2019-09-21 15:01:11 +00:00
kdump fd: add close_range(..., CLOSE_RANGE_CLOEXEC) 2022-03-07 12:15:47 +00:00
keylogin
keylogout
killall killall(1): Clarify -d, -s and -v options 2020-06-27 11:28:11 +00:00
ktrace Make it clear what the userland traces are in the ktrace(1) man page. 2019-08-26 10:18:19 +00:00
ktrdump Fix warning about signed comparison and drop WARNS for ktrdump(8). 2021-04-01 10:55:03 +03:00
kyua Simplify and speed up the kyua build 2021-08-05 09:56:47 +01:00
lam The lam(1) man page is unclear about the uppercase versions of the flags 2019-01-04 02:48:43 +00:00
last last(1): Add EXAMPLES section 2021-01-09 18:37:25 +01:00
lastcomm
ldd ldd: also use exec mode for -a 2021-11-19 06:25:28 +02:00
ldd32 libcompat: Correct rtld MLINKS 2019-11-12 22:31:59 +00:00
leave Add extremely useful calendar(1) application to FreeBSD 2020-03-03 00:20:08 +00:00
less less: upgrade to v590. 2021-08-02 01:28:42 -07:00
lessecho
lesskey less: upgrade to v590. 2021-08-02 01:28:42 -07:00
lex usr.bin/lex: regenerate bootstrap files after d37f81e35b 2021-05-11 09:39:30 +01:00
limits pkgbase: Put more binaries/lib in runtime 2022-01-05 18:23:51 +01:00
locale locale: exit 1 if unknown keyword was specified 2020-06-13 08:37:24 +00:00
localedef Add collation version support to querylocale(3). 2020-11-08 02:50:34 +00:00
locate Fix a grammar error on locate(1). 2020-12-11 08:04:54 +00:00
lock lock(1): Add EXAMPLES section 2020-12-11 19:27:21 +00:00
lockf Remove whitespace which accidentaly snuck into r364831. 2020-08-26 19:28:30 +00:00
logger pkgbase: Put more binaries/lib in runtime 2022-01-05 18:23:51 +01:00
login pkgbase: Put more binaries/lib in runtime 2022-01-05 18:23:51 +01:00
logins
logname Convert cap_enter() < 0 && errno != ENOSYS to caph_enter() < 0. 2018-06-19 23:43:14 +00:00
look look(1): Add EXAMPLES section 2020-12-29 21:48:12 +01:00
lorder lorder: add note that it is no longer required 2022-01-02 20:17:00 -05:00
lsvfs lsvfs(1): Add EXAMPLES section 2020-12-29 21:35:24 +01:00
lzmainfo
m4 m4(1): Add a SEE ALSO section and reference an AT&T manual 2021-04-15 14:43:43 +02:00
mail Replace literal uses of /usr/local in C sources with _PATH_LOCALBASE 2020-10-27 11:29:11 +00:00
man man: reset OPTIND before parsing args 2021-10-03 00:14:43 -05:00
mandoc Ensure that the makewhatis symlink is added in the bootstrap-tools stage 2020-09-10 15:37:29 +00:00
mesg
minigzip Move contrib/zlib to sys/contrib/zlib so that we can use it in kernel. 2019-05-08 08:43:15 +00:00
ministat Minor cleanups to allow handing vast datasets. 2020-02-03 20:46:31 +00:00
mkcsmapper Remove mkcsmapper_static and mkesdb_static from build-tools 2021-08-05 10:00:56 +01:00
mkcsmapper_static Remove mkcsmapper_static and mkesdb_static from build-tools 2021-08-05 10:00:56 +01:00
mkdep
mkesdb Remove mkcsmapper_static and mkesdb_static from build-tools 2021-08-05 10:00:56 +01:00
mkesdb_static Remove mkcsmapper_static and mkesdb_static from build-tools 2021-08-05 10:00:56 +01:00
mkfifo
mkimg mkimg: zero entry in vhdx_write_metadata 2021-11-27 19:29:30 -05:00
mkstr
mktemp pkgbase: Put more binaries/lib in runtime 2022-01-05 18:23:51 +01:00
mkuzip geom_uzip(4), mkuzip(8): Add Zstd image mode 2019-08-13 23:32:56 +00:00
morse
msgs Switch the default pager for most commands to less 2018-08-08 19:24:20 +00:00
mt Add the LTO-9 density code to libmt and the mt(1) man page. 2020-12-10 21:06:06 +00:00
nc Add -M option to nc(1), which makes it print the TCP connection 2019-12-14 10:53:52 +00:00
ncal Remove spurious transition from Julian to Gregorian for country 2020-03-29 04:18:27 +00:00
netstat netstat: fix nhop prepend printing. 2022-03-28 08:47:23 +00:00
newgrp
newkey newkey(8): fix 'tmpname' memory leak (always) and input file descriptor leak 2019-02-08 14:31:44 +00:00
nfsstat nfsstat: Add output for counts of new RPCs to the "-E" option 2021-11-28 15:58:03 -08:00
nice
nl nl(1): Add EXAMPLES section 2020-06-18 08:26:26 +00:00
nm Update Makefile.depend files 2019-12-11 17:37:53 +00:00
nohup Cross-reference nohup(1) and daemon(8). 2018-11-09 13:47:06 +00:00
number
objcopy remove doubled name in objcopy manpage 2018-09-11 20:32:57 +00:00
ofed pkgbase: Create a FreeBSD-rdma package 2022-01-05 18:23:50 +01:00
opieinfo
opiekey
opiepasswd
pagesize
pamtest
passwd pkgbase: Put a lot of binaries and lib in FreeBSD-runtime 2019-09-05 14:13:08 +00:00
paste
patch usr.bin/patch: remove unneeded header. 2021-05-15 21:40:41 -07:00
pathchk
perror
pom pom: Fix fencepost bugs. 2018-11-20 00:06:53 +00:00
posixshmcontrol MFC posixshm: Add a -j option to posixshmcontrol ls, to specify a jail 2022-03-02 15:10:33 -08:00
pr Drop "All rights reserved" from the files I own 2019-03-11 22:23:56 +00:00
primes Fix the way 'factor' behaves when using OpenSSL to match the description 2020-01-12 20:25:11 +00:00
printenv Convert cap_enter() < 0 && errno != ENOSYS to caph_enter() < 0. 2018-06-19 23:43:14 +00:00
printf printf(1): Add EXAMPLES section 2020-07-01 16:33:32 +00:00
proccontrol proccontrol(1): Add wxmap control 2021-09-24 03:26:59 +03:00
procstat Document procstat(1) advlock command 2022-04-16 05:18:19 +03:00
protect Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
quota Add a workaround for servers which respond RPC_PROGNOTREGISTERED 2019-09-21 00:17:40 +00:00
random random(6): Re-add undocumented support for floating point denominators 2020-02-15 19:13:37 +00:00
rctl Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
readelf readelf: Add -z decompression support 2020-10-31 15:27:45 +00:00
renice renice(8): Clarify "who" parameters. 2020-10-27 12:32:17 +00:00
resizewin
rev rev(1): Add EXAMPLES section 2020-06-27 11:19:18 +00:00
revoke
rpcgen rpcgen: make compiler arglist allocation dynamic 2019-10-15 16:05:17 +00:00
rpcinfo
rs
rup rup: Fix -Wcast-align warnings 2018-07-03 19:09:46 +00:00
ruptime Remove extra spaces for the load average of machines that are down. 2020-04-04 12:07:36 +00:00
rusers rusers: modernize a bit 2018-06-25 11:44:56 +00:00
rwall
rwho capsicum: use a new capsicum helpers in tools 2018-11-04 19:24:49 +00:00
script script(1): work around slow reading child 2022-01-15 14:55:32 +02:00
sdiff
sdiotool
sed sed(1): Fix a typo in the manual page 2022-04-23 08:54:44 +02:00
seq seq(1): complete EXAMPLES section 2020-06-20 11:24:29 +00:00
setchannel Fix a few mandoc issues 2020-10-09 14:03:45 +00:00
shar Shar files may be seen as binary by grep. 2019-01-31 23:21:18 +00:00
showmount [showmount] implement long options 2019-12-12 05:11:53 +00:00
size Update Makefile.depend files 2019-12-11 17:37:53 +00:00
smbutil
sockstat sockstat: fix usage string 2022-02-23 01:11:25 +01:00
soelim
sort sort: Fix message catalogue usage 2022-02-04 09:58:13 -05:00
split split(1): Add EXAMPLES section 2020-06-18 15:14:10 +00:00
ssh-copy-id my copyright: some minor adjustments 2018-05-19 20:35:15 +00:00
stat tests: readlink: fix atf_test_case call [NFC] 2022-03-09 15:22:05 -06:00
stdbuf
strings Update Makefile.depend files 2019-12-11 17:37:53 +00:00
su Do not use macros in -width 2020-03-26 17:58:52 +00:00
svn Update Subversion to 1.14.1 LTS. See contrib/subversion/CHANGES for a 2021-02-18 21:03:57 +01:00
systat systat: Display seconds in vmstat mode 2022-03-05 13:53:34 +11:00
tabs
tail tail: Add regression tests for -f and -F 2021-08-21 12:18:21 -04:00
talk Use a private definition of osockaddr rather then relying on type 2019-01-18 21:30:06 +00:00
tar libarchive: import changes from upstream 2022-02-23 08:56:34 +01:00
tcopy
tee tee.1: Add a missing article 2020-06-23 10:22:58 +00:00
telnet pkgbase: Create a FreeBSD-telnet package 2022-01-05 18:23:49 +01:00
tests
tftp Fix a few mandoc issues 2020-10-09 14:03:45 +00:00
time time(1): Add EXAMPLES section 2020-07-07 16:07:39 +00:00
timeout timeout.1: Fix typos in examples 2021-10-24 18:33:37 +02:00
tip Fix some common typos in source code comments 2021-08-31 08:13:15 +02:00
top top: Remove a duplicate extern declaration for show_args. 2022-05-10 15:51:49 -07:00
touch touch: don't leak descriptor if fstat(2) fails 2022-03-19 14:16:29 +01:00
tput tput(1): Several enhancements for the manual page 2020-08-11 21:44:43 +00:00
tr Convert cap_enter() < 0 && errno != ENOSYS to caph_enter() < 0. 2018-06-19 23:43:14 +00:00
true
truncate truncate(1): Add EXAMPLES section 2020-07-27 15:25:04 +00:00
truss fd: add close_range(..., CLOSE_RANGE_CLOEXEC) 2022-03-07 12:15:47 +00:00
tset
tsort tsort(1): Add EXAMPLES section 2020-08-30 17:37:56 +00:00
tty
ul ul(1): Remove references to colcrt(1) and nroff(1) 2020-10-07 14:43:16 +00:00
uname uname: -v: strip final whitespace compatibly with uname(3) 2022-03-05 19:56:11 +00:00
unexpand
unifdef Re-apply fixed r354847 2019-11-20 19:43:34 +00:00
uniq Add EXAMPLES to cover all flags except -f since it is analogous to -s. 2020-06-07 13:21:47 +00:00
units Tell the world how to convert gigabytes to bytes with units(1) easily 2020-03-17 10:02:59 +00:00
unvis
unzip unzip: Fix segmentation fault if a zip file contains buggy filename. 2021-10-18 20:16:02 +09:00
usbhidaction Correct USB HID item in examples 2020-10-28 08:29:31 +00:00
usbhidctl Include item position in report descriptor dump in usbhidctl(1). 2019-08-17 08:29:22 +00:00
users Only set WARNS if not defined 2020-09-11 13:28:37 +00:00
uudecode uudecode: correct error message 2022-04-30 10:01:22 +02:00
uuencode uu{encode,decode}: improve style 2022-04-30 09:59:08 +02:00
vacation
vgrind Normalize deployment tools usage and definitions by putting into one place 2020-04-07 02:46:22 +00:00
vi import nvi 2.2.0-3bbdfe4 2021-09-22 12:07:48 +02:00
vis
vmstat Use if ... else when printing memory attributes 2021-06-12 02:21:12 +01:00
vtfontcvt vtfontcvt: update FreeBSD Foundation copyrights 2022-02-22 14:53:41 -05:00
w w(1): Add EXAMPLES to man page 2020-08-24 17:57:08 +00:00
wall Add RFC 5424 syslog message output to syslogd. 2018-04-15 08:34:16 +00:00
wc wc(1): document SIGINFO handling in the manual page. 2020-04-11 08:16:35 +00:00
what pkgbase: Put a lot of binaries and lib in FreeBSD-runtime 2019-09-05 14:13:08 +00:00
whereis whereis: fix fetching of user.cs_path sysctl variable 2022-03-04 20:54:00 +01:00
which Fix typo and environment variable macro 2020-09-24 16:42:17 +00:00
who who(1): Add EXAMPLES section 2020-08-30 17:40:59 +00:00
whois whois: Handle referrals to rwhois servers. 2020-07-09 17:27:14 +00:00
write Remove extraneous setutxent() calls in write(1). 2019-01-23 20:02:17 +00:00
xargs pkgbase: Put more binaries/lib in runtime 2022-01-05 18:23:51 +01:00
xinstall pkgbase: Put more binaries/lib in runtime 2022-01-05 18:23:51 +01:00
xo Allow proper builds of libxo's CSV encoder: 2019-12-16 22:05:03 +00:00
xohtml Import libxo-1.4.0: 2020-01-25 21:16:45 +00:00
xolint
xopo
xstr
xz
xzdec
yacc 13.1: update stable/13 to -PRERELEASE to start the release cycle 2022-02-23 23:21:49 -05:00
yes Convert cap_enter() < 0 && errno != ENOSYS to caph_enter() < 0. 2018-06-19 23:43:14 +00:00
ypcat pkgbase: Put yellow pages programs to its own package 2022-01-05 18:23:51 +01:00
ypmatch pkgbase: Put yellow pages programs to its own package 2022-01-05 18:23:51 +01:00
ypwhich pkgbase: Put yellow pages programs to its own package 2022-01-05 18:23:51 +01:00
zstd zstd: build with C11 2022-03-05 19:58:08 +00:00
Makefile Add WITH_LLVM_BINUTILS to install LLVM binutils instead of Elftoolchain 2021-12-05 21:42:14 +01:00
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.inc build: provide a default WARNS for all in-tree builds 2020-09-18 17:17:46 +00:00
Makefile.powerpc