freebsd-dev/bin
Jilles Tjoelker 1767d529f2 sh: Simplify mksyntax and make it fit for cross-compiling.
Now it outputs fixed files, which use constants provided by the C standard
library to determine appropriate values for the target machine.

Before, mksyntax inspected the host machine which resulted in subtle
breakage if e.g. char is signed on the host and unsigned on the target such
as when cross-compiling on x86 for ARM.

Tested using -funsigned-char on amd64. Compiling build-tools without it and
sh itself with it causes various tests to fail without this change but not
with this change. With consistent -funsigned-char, tests pass with or
without this change.

The mksyntax program could be removed and syntax.c and syntax.h committed to
the repository.

Submitted by:	Christoph Mallon
MFC after:	2 weeks
2013-02-07 22:42:33 +00:00
..
cat Fix date. 2013-01-29 20:01:47 +00:00
chflags
chio Add static keywords to chio(1). 2011-12-11 20:53:12 +00:00
chmod
cp Return with an error from copy_link(), copy_fifo() and copy_special() if 2013-01-27 05:59:28 +00:00
csh Update to tcsh 6.18.01. 2012-02-22 03:36:15 +00:00
date Fix socket calls on error post-r243965. 2012-12-21 15:54:13 +00:00
dd More -Wmissing-variable-declarations fixes. 2012-10-20 10:33:15 +00:00
df Don't time travel back and use a present date. 2013-01-25 18:47:16 +00:00
domainname
echo
ed More -Wmissing-variable-declarations fixes. 2012-10-19 14:49:42 +00:00
expr Remove redundant declaration of yyparse 2012-05-22 03:01:54 +00:00
getfacl Fix warnings found by -Wmising-variable-declarations. 2012-10-19 05:43:38 +00:00
hostname
kenv I forgot to bump the manpage date. 2012-05-12 02:49:40 +00:00
kill
ln Fix wording nit. 2012-12-28 22:06:33 +00:00
ls When WCHAR_MIN == 0 the check if a wchar_t value will always be true. In 2013-01-06 02:50:38 +00:00
mkdir Put some static keywords in the source code. 2011-10-31 08:59:17 +00:00
mv Follow the behavior as specified in POSIX: 2012-11-15 15:05:51 +00:00
pax Fix warnings found by -Wmising-variable-declarations. 2012-10-19 05:43:38 +00:00
pkill
ps Document P_PPTRACE. 2013-02-07 15:37:51 +00:00
pwait Use a different way to silence clang analyzer as done in r245494 by 2013-01-16 18:15:25 +00:00
pwd
rcp Fix warnings found by -Wmising-variable-declarations. 2012-10-19 05:43:38 +00:00
realpath
rm Fix bin/ build with a 64-bit ino_t. 2012-09-27 23:31:12 +00:00
rmail
rmdir
setfacl Fix warnings found by -Wmising-variable-declarations. 2012-10-19 05:43:38 +00:00
sh sh: Simplify mksyntax and make it fit for cross-compiling. 2013-02-07 22:42:33 +00:00
sleep
stty stty: Mark usage() __dead2. 2012-07-15 21:12:22 +00:00
sync
test test(1): Document == alias for =. 2012-12-27 13:21:37 +00:00
uuidgen Mention the upper hard limit for -n option. Patch slightly modified 2012-05-23 16:19:19 +00:00
Makefile
Makefile.inc