NetBSD/bin
christos 06519c05da PR/36092: B K: algorithmic inefficiency in bin/test/test.c:t_lex
test(1) scans for "operators" linearly in an array using strcmp() to
find a match. Since the list of "operators" is fixed, split them
into one and two character ones, and ones that start with a `-' and
ones they don't. This way we can optimize the compare function to
just check for one or two characters. Sort and use bsearch(3). We
could have used a single sorted array and bsearch(3), to save some
complexity, but I decided to be a bit fancier.
2007-03-28 01:47:25 +00:00
..
cat - Applied patch from PR bin/35408 by Andreas Wiese. 2007-01-13 11:51:59 +00:00
chio appease gcc -Wuninitialized 2005-06-01 15:12:18 +00:00
chmod Add xref to chflags(1). From Andre Luiz de Oliveira in PR 32265. 2005-12-09 20:27:02 +00:00
cp fix whitespace nits (space -> tab) 2006-12-26 00:13:24 +00:00
csh No functional changes. Cleanup time printing code so it can be used 2007-02-24 21:29:13 +00:00
date * Prevent out-of-bounds read tsptype if a packet with 2007-02-04 22:21:53 +00:00
dd Bump date for progress=n description change. 2006-01-12 21:42:11 +00:00
df Improve wording of -a description. From FreeBSD via Zafer Aydogan. 2007-01-28 09:56:13 +00:00
domainname Drop extra space. 2004-06-15 14:08:33 +00:00
echo Put a few headers back so this compiles again. 2003-11-25 03:40:18 +00:00
ed s/intialized/initialized/ 2007-03-17 13:51:46 +00:00
expr Handle asprintf failing to allocate. 2006-03-17 14:43:11 +00:00
hostname
kill Coverity CID 2356: Remove bogus test !*argv; also cleanup string usage. 2006-03-17 22:30:11 +00:00
ksh Applied patch by Arto Huusko from PR bin/24753 to append a slash to "." 2007-01-28 22:30:12 +00:00
ln Add -i to usage. 2006-10-13 20:37:10 +00:00
ls Complete the move of string_to_flags() and flags_to_string() from the 2006-12-14 20:09:35 +00:00
mkdir Fix setmode error handling. 2005-10-01 20:22:29 +00:00
mt use c99 initializers 2006-10-16 00:07:32 +00:00
mv Allow files whose name starts with a dash be moved across filesystem 2007-02-15 09:57:16 +00:00
pax EROFS is not a critical error in a "mkdir -p". 2007-03-08 17:01:30 +00:00
ps Revert the changes done after newlock2 merge, except for the removal of 2007-02-17 22:49:56 +00:00
pwd file system, not filesystem; e.g. is an abbreviation; use FAT instead of msdos 2003-10-30 14:58:23 +00:00
rcmd sprinkle a little const, and now everything compiles with WARNS=3 2005-06-26 19:10:48 +00:00
rcp pass lint; from Anon Ymous 2006-12-15 22:45:34 +00:00
rm New sentence, new line. Bump date for previous. 2006-09-02 23:28:32 +00:00
rmdir
sh Document that shell arithmetic now uses intmax_t. Document that 2007-03-25 06:56:43 +00:00
sleep PR/27140: "sleep time" doesn't error out. 2005-10-17 10:11:46 +00:00
stty c99 initializers 2006-10-16 00:37:55 +00:00
sync
systrace Remove unused ctype.h 2007-03-10 01:16:17 +00:00
test PR/36092: B K: algorithmic inefficiency in bin/test/test.c:t_lex 2007-03-28 01:47:25 +00:00
Makefile Remove 'l'. Those who do not learn from history are doomed to repeat it. 2007-02-08 03:57:53 +00:00
Makefile.inc sprinkle a little const, and now everything compiles with WARNS=3 2005-06-26 19:10:48 +00:00