NetBSD/bin
kre 21f0086877 Introduce a new macro JNUM to replace the idiom jp-jobtab+1
(the job number, given jp a pointer to a jobs table entry)
used open coded previously in many places (mostly in DEBUG mode
trace messages, so not included in most shells, but there are
a few others).

Make the type of JNUM() be int rather than the ptrdiff_t the
open coded version became ... which when used in some printf()
type function arg list was cast to some other arbitrary (but not
consistent) int type for which there is a standard %Xd type
format conversion.   Now we can (and do) just use %d for this.

If the number of jobs ever exceeds the range of an int, we would
have far more serious problems than the broken output this would
cause.

While here improve a comment or two, and use JOBRUNNING instead
of 0 where the intent is the former (JOBRUNNING is #defined as 0).

NFCI.
2022-04-18 06:02:27 +00:00
..
cat
chio
chmod
cp fix reversed test. 2020-05-22 14:54:30 +00:00
csh fix various typos, mainly in comments, but also log messages, docs, game text. 2022-04-08 10:17:52 +00:00
date tool changes 2021-05-26 20:19:51 +00:00
dd update header too. 2022-01-14 23:56:35 +00:00
df Set totals.f_frsize to DEV_BSIZE instead of totals.f_bsize so that 2021-11-29 05:59:58 +00:00
domainname
echo echo: fix lint error due to strict bool mode 2021-11-16 21:38:29 +00:00
ed ed(1): use reallocarr instead of realloc(x * y) 2021-11-02 08:04:20 +00:00
expr Fix typo 2020-06-11 13:08:07 +00:00
getfacl Fix xrefs, comment out acl(9) which we don't have. 2020-06-18 19:36:13 +00:00
hostname
kill restore a bit of history. 2021-08-15 10:58:04 +00:00
ksh s/writting/writing/ 2021-11-06 06:40:33 +00:00
ln
ls Fix skipping of directories that begin with a '.' in -R mode. 2020-07-07 14:29:06 +00:00
mkdir PR bin/56398 2021-09-13 22:46:02 +00:00
mt s/begining/beginning/ in comments and messages. 2022-01-24 09:14:36 +00:00
mv Note that -h is an extension to POSIX. Bump date. 2020-06-24 17:00:58 +00:00
pax s/exisit/exist/ in comment. 2021-12-05 02:52:17 +00:00
ps remove double t from targeted, add missing r to arbitrary 2022-01-26 11:48:53 +00:00
pwd Make pwd (both /bin/pwd and the /bin/sh built-in version) check for 2021-11-16 16:57:15 +00:00
rcmd
rcp In sink(), upon error, avoid multiple replies to the source as this 2020-05-06 18:15:40 +00:00
rm bin: remove unnecessary lint comment CONSTCOND 2021-09-10 22:11:03 +00:00
rmdir
setfacl Sync usage with manpage. 2020-06-18 19:44:01 +00:00
sh Introduce a new macro JNUM to replace the idiom jp-jobtab+1 2022-04-18 06:02:27 +00:00
sleep
stty
sync
test s/existance/existence/ in comment. 2021-12-05 04:42:54 +00:00
Makefile Add ACL support for FFS. From FreeBSD. 2020-05-16 18:31:45 +00:00
Makefile.inc bin: in builds with MKLINT=yes, run lint on all programs 2021-10-09 21:06:31 +00:00