freebsd-nq/usr.bin
Stefan Eßer e84a97439b usr.bin/gh-bc, contrib/bc: update to version 5.0.0
Merge commit 2f57ecae4b

This is a new major release with a number of changes and extensions:

- Limited the number of temporary numbers and made the space for them
  static so that allocating more space for them cannot fail.
- Allowed integers with non-zero scale to be used with power, places,
  and shift operators.
- Added greatest common divisor and least common multiple to lib2.bc.
- Made bc and dc UTF-8 capable.
- Added the ability for users to have bc and dc quit on SIGINT.
- Added the ability for users to disable prompt and TTY mode by
  environment variables.
- Added the ability for users to redefine keywords.
- Added dc's modular exponentiation and divmod to bc.
- Added the ability to assign strings to variables and array elements
  and pass them to functions in bc.
- Added dc's asciify command and stream printing to bc.
- Added bitwise and, or, xor, left shift, right shift, reverse,
  left rotate, right rotate, and mod functions to lib2.bc.
- Added the functions s2u(x) and s2un(x,n), to lib2.bc.

MFC after:	1 week

(cherry picked from commit 44d4804d19)

vendor/bc: update to upstream version 5.0.2

(cherry picked from commit a60ef1802a)
(cherry picked from commit 662087dfd0)

contrib/bc: remove files ommitted from the release

A number of files have been removed from the release distribution of
this bc implementation. They were mostly relevant for pre release
testing and benchmarking to identify regressions. The Markdown
sources of the man pages are only relevant for combinations of build
options not used in FreeBSD and need non-default conversion tools
(available as ports in FreeBSD).

All the omitted files can be found in the upstream git repository,
and they are fetched when building this software as a port. But they
have never been used in the FreeBSD base system.

(cherry picked from commit ea31d1a5c4)

Remove files that were checked in with wrong .gitattributes

These files will be added back in updated form, but are only relevant
for the Windows platform, anyway.

(cherry picked from commit d6c323eda2)

contrib/bc: merge version 5.1.0 from vendor branch

This version adds options and functions that allow to print numbers
in the open interval (-1 .. 1) with or without a leading 0 digit.

Additionally, an option has been added to prevent line wrap and
allows to print arbitrarily long results on a single line.

Merge commit '5d58a51571721190681c50d4bd3a1f45e6282d72'

(cherry picked from commit d43fa8ef53)

contrib/bc: update to version 5.1.1

Merge commit '6f49f5cdde1c62c4e5a743e895f3afe592b5c0e5'

(cherry picked from commit a30efc5ca7)

contrib/bc: temporarily disconnect the tests for 5.0.2

The tests that come with version 5.0.2 have been extended to cover the
line editing functions. It has been found that these tests generate
false negative results in FreeBSD, most likely due to an issue in the
pexpect functionality used.

These history tests are skipped on systems that do not have python and
py-pexpect installed (and thus are unlikely to cause CI test failures),
but in order to not cause irritating failures on systems were these
packages are in fact installed, I temporarily disconnect them.

I had planned to skip this version due to the issue with the history
tests, but some committer has asked me to go ahead since the currently
used version 5.0.0 contains a macro name that collides with a project
he is working on.

No MFC of this version is planned. A version 5.0.3 is expected to be
released soon, and that version will allow to reconnect the tests and
will be MFCed.

(cherry picked from commit f774652b0e)

Add back Windows only VCXProj files

(cherry picked from commit ded0d3d486)

contrib/bc: re-enable tests after the import of version 5.1.0

The tests have been fixed to not write any data outside of the
temporary work directory provided by the test framework.

MFC after:	3 days

(cherry picked from commit b8d895faf4)

Revert erroneous commit ded0d3d486

These files came from a prior commit to contrib/bc and seem to have
been placed in the top of the source tree by a failed git rebase.

Reported by:	markj

(cherry picked from commit f902ca97bd)
2021-10-12 16:18:26 +02:00
..
addr2line
alias
apply apply(1): Fix magic number substitution with magic character ' ' 2018-08-08 21:21:28 +00:00
ar ar: provide error exit status upon failure 2021-10-08 20:28:31 -04: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): Add note that with option it print the current brightness. 2021-03-10 11:49:31 +01: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
biff
bluetooth pkgbase: Add a FreeBSD-bluetooth package 2019-07-19 15:10:03 +00:00
bmake Merge bmake-20210206 2021-02-15 08:53:34 -08:00
brandelf Update Makefile.depend files 2019-12-11 17:37:53 +00:00
bsdcat bsdcat,cpio,tar: derive version string from archive.h 2020-12-29 14:21:50 -08: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 calendar.freebsd: Fix off-by-one error 2021-09-17 16:08:18 -07: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 llvm-objcopy: Install llvm-strip link 2021-10-10 14:34:33 +01:00
cmp cmp: add -b, --print-bytes 2021-10-03 00:15:12 -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
compress compress(1): Add EXAMPLES section 2020-10-20 13:05:25 +00:00
cpio bsdcat,cpio,tar: derive version string from archive.h 2020-12-29 14:21:50 -08:00
cpuset cpuset(1): Fix a typo 2020-10-10 13:01:04 +00:00
csplit
ctags
ctlstat Flush stdout after each iteration. 2019-03-06 15:19:04 +00:00
cut
cxxfilt
dc Adjust history, info source from v1's manuals 2019-09-04 13:44:46 +00:00
diff diff: read whole files to determine if they are ASCII text 2021-09-25 10:34:39 +02:00
diff3 diff3: document and test -T 2021-09-25 10:34:39 +02:00
dirname
dpv Fix a few mandoc issues 2020-10-09 19:12:44 +00:00
drill Rename NO_WERROR -> MK_WERROR=no 2021-01-07 09:31:03 +00:00
dtc dtc: remove unknown option printf, since getopt will print it 2020-02-20 21:29:59 +00:00
du du_test: Skip three tests if sparse files are not supported 2021-04-22 10:41:39 +01:00
ee
elfctl elfctl: avoid touching file if no change made 2021-06-01 22:08:54 -04:00
elfdump elfdump: use designated array initialization for note types 2019-01-31 16:49:06 +00:00
enigma
env service(8): use an environment more consistent with init(8) 2021-03-07 15:39:30 -06:00
etdump
expand
factor Fix the way 'factor' behaves when using OpenSSL to match the description 2020-01-12 20:25:11 +00:00
false
fetch fetch(1): Fix style 2020-10-30 09:48:41 +00:00
file
file2c
find find(1): Document the -f option 2021-05-16 10:36:53 +02: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 fstat(1): Add EXAMPLES section 2020-11-19 19:05:16 +00:00
fsync pkgbase: Put a lot of binaries and lib in FreeBSD-runtime 2019-09-05 14:13:08 +00:00
ftp
gcore gcore: add option to dump core using kernel facility 2021-05-10 04:03:19 +03: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
gh-bc usr.bin/gh-bc, contrib/bc: update to version 5.0.0 2021-10-12 16:18:26 +02: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 grep: fix combination of quiet and count flag 2021-09-22 10:05:39 -04:00
gzip fts_read: Handle error from a NULL return better. 2020-12-08 23:38:26 +00: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 id: sanitize arguments better 2021-07-03 17:29:41 -06: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
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 kdump: use VIS_NOLOCALE when printing output 2021-07-05 10:46:11 +01: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: Remove non-functional -v option 2021-09-03 04:08:35 +03: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 limits(1): Add EXAMPLES section 2020-06-25 16:46:27 +00: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 logger: temporarily disable Capsicum when a host is provided 2020-04-08 18:43:00 +00:00
login login: use sizeof(audit_cond) consistently, NFC 2021-10-08 19:56:53 -05:00
logins
logname
look look(1): Add EXAMPLES section 2020-12-29 21:48:12 +01:00
lorder
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(1): Correct a typo in the usage output 2021-08-14 08:28:00 +02:00
mkstr
mktemp
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 mend 2021-06-07 11:01:28 +02: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(1): Fix a typo in an error message 2021-08-30 07:44:57 +02: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 ofed: fix the WITH_OFED_EXTRA build 2021-02-03 20:55:56 -06: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 Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00: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
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 procstat: distinguish vm map guards in procstat vm output. 2021-02-21 11:11:34 +02: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 Add some examples to script.1 2021-01-05 16:32:27 +01:00
sdiff
sdiotool
sed sed(1): Add a reference for a 4.4BSD manual document 2021-04-15 14:43:10 +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 mend 2021-06-07 11:01:28 +02:00
soelim
sort usr.bin/sort: Avoid UBSan errors 2021-08-05 09:57:45 +01:00
split split(1): Add EXAMPLES section 2020-06-18 15:14:10 +00:00
ssh-copy-id
stat Unbreak the tests after r347002. 2019-05-01 19:35:45 +00: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 Clean up copyright messages. 2021-05-16 23:09:42 -07: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 bsdcat,cpio,tar: derive version string from archive.h 2020-12-29 14:21:50 -08:00
tcopy
tee tee.1: Add a missing article 2020-06-23 10:22:58 +00:00
telnet Update Makefile.depend files 2019-12-11 17:37:53 +00: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): Add EXAMPLES section 2020-07-07 17:02:23 +00:00
tip Fix some common typos in source code comments 2021-08-31 08:13:15 +02:00
top top(1): indicate how to reset grep string 2021-09-12 19:12:01 -06:00
touch
tput tput(1): Several enhancements for the manual page 2020-08-11 21:44:43 +00:00
tr
true
truncate truncate(1): Add EXAMPLES section 2020-07-27 15:25:04 +00:00
truss truss: minor cleanup and pedantic warning fixes 2021-07-05 10:46:12 +01: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(1): Fix a typo in the man page date 2020-12-19 12:55:27 +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: sync with NetBSD upstream to add passphrase support 2021-10-02 20:56:19 +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
uuencode Make outfile constant. 2018-11-12 07:14:34 +00: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 Document automatic handling of font height for BDF files 2020-08-02 16:41:36 +00:00
w w(1): Add EXAMPLES to man page 2020-08-24 17:57:08 +00:00
wall
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: remove gnu/libexec from source search paths 2020-02-19 14:40:53 +00: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 xargs: compile yesexpr as ERE 2020-12-12 15:38:32 +00:00
xinstall install(1): Avoid unncessary fstatfs() calls and use mmap() based on size 2020-10-14 12:28:41 +00: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 MFV: r362513 2020-07-14 01:54:24 +00:00
yes
ypcat
ypmatch
ypwhich
zstd Only set WARNS if not defined 2020-09-11 13:28:37 +00:00
Makefile Remove mkcsmapper_static and mkesdb_static from build-tools 2021-08-05 10:00:56 +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