Home | History | Annotate | only in /src/usr.bin/error
History log of /src/usr.bin/error
RevisionDateAuthorComments
 1.12 10-May-2024  rillig error: disable lint's strict bool mode when building with Clang

The Clang preprocessor does not mark sections from system headers.
Lint's strict bool mode relies on these markers to allow the functions
from <ctype.h> to be used as 'bool', even though their declared return
type is 'int'. Without these markers, lint complains that the "right
operand of '&&' must be bool, not 'int'". Until this is fixed in lint,
disable strict bool mode.
 1.11 26-Aug-2023  rillig error: enable lint's strict bool mode

This cleans up the inconsistencies between 'int', 'boolean' and 'bool'.
 1.10 26-Aug-2023  rillig error: fix lint warnings
 1.9 13-Aug-2009  dholland Pass WARNS=4, not without some gross preprocessor hackery.
XXX: does this program actually do anything useful these days?
 1.8 13-Aug-2009  dholland pass -Wshadow
 1.7 14-Apr-2009  lukem Enable WARNS=4 by default for usr.bin, except for:
awk bdes checknr compile_et error gss hxtool kgetcred kinit
klist ldd less lex locale login m4 man menuc mk_cmds
mklocale msgc openssl rpcgen rpcinfo sdiff spell ssh
string2key telnet tn3270 verify_krb5_conf xlint
 1.6 05-Oct-2007  lukem branches: 1.6.14;
Convert to raise_default_signal(3).
 1.5 08-Oct-2006  peter branches: 1.5.8;
WFORMAT is no more...
 1.4 11-Oct-2000  is More format string cleanup by sommerfeld.
 1.3 02-Sep-1995  jtc branches: 1.3.8; 1.3.16;
Sync with 4.4lite2
 1.2 31-Jul-1993  mycroft Add RCS indentifiers.
 1.1 09-Apr-1993  cgd branches: 1.1.1;
added, from net/2 (patch 119).
 1.1.1.1 02-Sep-1995  jtc imported from 44lite2
 1.3.16.1 18-Oct-2000  tv Pullup usr.bin string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.
 1.3.8.1 19-Oct-2000  he Pull up revision 1.4 (requested by he):
Format string cleanup.
 1.5.8.1 06-Nov-2007  matt sync with HEAD
 1.6.14.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.23 17-Dec-2023  rillig error.1: fix markup
 1.22 26-Aug-2023  rillig error: move comment above the main function to the manual page

While here, clean up the markup of the manual page, removing unnecessary
emphasis.
 1.21 26-Aug-2023  rillig error: fix typos
 1.20 03-Jul-2017  wiz Remove workaround for ancient HTML generation code.
 1.19 06-Jun-2016  abhinav Convert reference to f77(1) from .Xr to .Ic as we don't have it any more.
Ok from wiz@
 1.18 22-Jan-2012  apb Fix the csh(1) example ("make ... |& error ...", not "make ... | error ..."),
and add a sh(1) example ("make ... 2>&1 | error ...").
 1.17 20-May-2011  wiz branches: 1.17.4;
Fix macro name in SYNOPSIS.
 1.16 20-May-2011  wiz Sort options, merge single letter options in synopsis.
 1.15 19-May-2011  christos - use getopt
- use err
- add -p <filelevel> to chop levels like patch
- document all the options
 1.14 05-Apr-2010  joerg \\ -> \e
 1.13 24-Nov-2006  christos fix spelling of accidentally; from Zapher
 1.12 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.11 31-Mar-2003  perry users's -> user's (from Igor Sobrado in PR misc/19700)
 1.10 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.9 07-Feb-2002  ross Edit -mdoc usage.

* There is no -indent option to .Bd or .Bl, although you would
never know that from its frequent use in this tree. There is a
"-offset indent" combination that makes sense, and you can certainly
say "-width indent".

* Also, you can't markup the -width option argument, tho you CAN
use a callable macro. So "-width Ar filename" doesn't make sense,
but either "-width Ar" or "-width filename" does, as might something
like "-width xxfilename" for a little extra space.

* There are a lot of needlessly complex hanging tag macros in man4 used
to create simple item lists. Those should be simplified one of these
days before someone copies and edits yet another man4 page.
 1.8 01-Dec-2001  wiz Use standard headers, drop a .Pp.
 1.7 08-May-2001  wiz Replace some .Xr to non-existing man pages with .Ic (since we don't
even have the matching programs).
 1.6 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.5 18-Oct-1997  lukem WARNSify (big job!), fix .Nm usage
 1.4 11-Feb-1997  mikel fix typo; from Saitoh Masanobu in PR misc/3199.
 1.3 02-Sep-1995  jtc Sync with 4.4lite2
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 09-Apr-1993  cgd branches: 1.1.1;
added, from net/2 (patch 119).
 1.1.1.1 02-Sep-1995  jtc imported from 44lite2
 1.17.4.1 17-Apr-2012  yamt sync with head
 1.21 26-Aug-2023  rillig error: clean up comparison of word vectors

The function wordvcmp returned -1 when either of the word vectors was
short; this made the function asymmetric. Since the function is only
used to compare two word vectors for equality, restrict it to this
particular use case.
 1.20 26-Aug-2023  rillig error: enable lint's strict bool mode

This cleans up the inconsistencies between 'int', 'boolean' and 'bool'.
 1.19 29-Feb-2012  joerg Don't use non-literal format strings. Split it up depending on the
number of arguments used.
 1.18 17-Aug-2011  christos branches: 1.18.2; 1.18.4;
avoid "... dutch" being interpreted as a pascal continuation message, and
core-dumping.
 1.17 21-May-2011  christos remove unused.
 1.16 19-May-2011  christos - use getopt
- use err
- add -p <filelevel> to chop levels like patch
- document all the options
 1.15 13-Aug-2009  dholland Pass WARNS=4, not without some gross preprocessor hackery.
XXX: does this program actually do anything useful these days?
 1.14 13-Aug-2009  dholland Assorted minor cleanup:
- use stdbool.h (partly)
- move extern declarations of data to header files
- use right types for calloc() wrapper
- remove bogus casts on return values
- remove excessive Pascal-style parentheses in conditionals
- a couple const fixes
- fix some typos in comments
 1.13 13-Aug-2009  dholland Sprinkle const.
 1.12 13-Aug-2009  dholland Whitespace.
 1.11 13-Aug-2009  dholland sprinkle static
 1.10 19-Jul-2007  lukem branches: 1.10.16;
Support an explicit Q_error return from inquire(), which is returned
if there was an error on reading the reply.
Stops an infinite loop if you ^D the query.
 1.9 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.8 14-Jul-2003  itojun get rid of strsave(), use strdup directly
 1.7 26-May-2002  wiz Remove #ifndef'd __STDC__ code. ANSIfy.
 1.6 05-Feb-2001  christos fix redundant and nested decls
 1.5 08-Oct-1998  wsanchez Get rid of multiply defined common symbols
langauge should be language in error.h
 1.4 18-Oct-1997  lukem WARNSify (big job!), fix .Nm usage
 1.3 02-Sep-1995  jtc Sync with 4.4lite2
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 09-Apr-1993  cgd branches: 1.1.1;
added, from net/2 (patch 119).
 1.1.1.1 02-Sep-1995  jtc imported from 44lite2
 1.10.16.2 19-Jul-2007  lukem Support an explicit Q_error return from inquire(), which is returned
if there was an error on reading the reply.
Stops an infinite loop if you ^D the query.
 1.10.16.1 19-Jul-2007  lukem file error.h was added on branch matt-mips64 on 2007-07-19 05:43:24 +0000
 1.18.4.1 05-Mar-2012  sborrill Pull up the following revisions(s) (requested by joerg in ticket #75):
usr.sbin/cpuctl/arch/i386.c: revision 1.28
usr.bin/unifdef/unifdef.c: revision 1.21
usr.bin/ktruss/dump.c: revision 1.40
usr.bin/error/error.h: revision 1.19
usr.bin/error/touch.c: revision 1.27
libexec/httpd/dir-index-bozo.c: revision 1.14
games/dab/algor.cc: revision 1.5
games/dab/board.h: revision 1.4
dist/pf/sbin/pflogd/pflogd.c: revision 1.9
dist/pf/sbin/pflogd/pflogd.h: revision 1.5

Fix various format string mismatches
 1.18.2.1 17-Apr-2012  yamt sync with head
 1.20 26-Aug-2023  rillig error: use separate tokens for characters, integers and pointers

Assisted by lint's queries 10, 14, 15.

No binary change.
 1.19 26-Aug-2023  rillig error: remove redundant parentheses around return value

No binary change.
 1.18 30-May-2016  dholland Use this program's Strdup() instead of strdup() so it exits on failure
instead of dumping core.
 1.17 30-May-2016  dholland Use rewind() instead of freopen()'ing the same file for no reason. Also,
close the file when done instead of dropping it on the floor. Obsoletes
PR 50579.
 1.16 09-Aug-2015  shm Remove unnecessary fclose(3) call
 1.15 13-Aug-2009  dholland Assorted minor cleanup:
- use stdbool.h (partly)
- move extern declarations of data to header files
- use right types for calloc() wrapper
- remove bogus casts on return values
- remove excessive Pascal-style parentheses in conditionals
- a couple const fixes
- fix some typos in comments
 1.14 13-Aug-2009  dholland pass -Wshadow
 1.13 13-Aug-2009  dholland Sprinkle const.
 1.12 13-Aug-2009  dholland Whitespace.
 1.11 13-Aug-2009  dholland sprinkle static
 1.10 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.9 14-Jul-2003  itojun get rid of strsave(), use strdup directly
 1.8 26-May-2002  wiz Remove #ifndef'd __STDC__ code. ANSIfy.
 1.7 05-Feb-2001  christos fix redundant and nested decls
 1.6 14-Jan-2000  mjl Eliminate hard coded buffer sizes in fgets() statements, use
strlcpy() to avoid buffer overflows, increase filename buffer
to MAXPATHLEN. (from OpenBSD)
 1.5 06-Nov-1998  christos char -> unsigned char
 1.4 18-Oct-1997  lukem WARNSify (big job!), fix .Nm usage
 1.3 02-Sep-1995  jtc Sync with 4.4lite2
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 09-Apr-1993  cgd branches: 1.1.1;
added, from net/2 (patch 119).
 1.1.1.1 02-Sep-1995  jtc imported from 44lite2
 1.21 26-Aug-2023  rillig error: clean up comparison of word vectors

The function wordvcmp returned -1 when either of the word vectors was
short; this made the function asymmetric. Since the function is only
used to compare two word vectors for equality, restrict it to this
particular use case.
 1.20 26-Aug-2023  rillig error: enable lint's strict bool mode

This cleans up the inconsistencies between 'int', 'boolean' and 'bool'.
 1.19 26-Aug-2023  rillig error: remove redundant parentheses around return value

No binary change.
 1.18 10-Jan-2020  christos use getline(3)
 1.17 18-Jul-2011  christos branches: 1.17.42;
gcc 4.5 error support ("file:line:col: error" instead of "file:line: error")
 1.16 13-Aug-2009  dholland Pass WARNS=4, not without some gross preprocessor hackery.
XXX: does this program actually do anything useful these days?
 1.15 13-Aug-2009  dholland Assorted minor cleanup:
- use stdbool.h (partly)
- move extern declarations of data to header files
- use right types for calloc() wrapper
- remove bogus casts on return values
- remove excessive Pascal-style parentheses in conditionals
- a couple const fixes
- fix some typos in comments
 1.14 13-Aug-2009  dholland Sprinkle const.
 1.13 13-Aug-2009  dholland Whitespace.
 1.12 13-Aug-2009  dholland sprinkle static
 1.11 09-Apr-2006  christos Coverity CID 2331: Plug memory leak.
 1.10 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.9 26-May-2002  wiz Remove #ifndef'd __STDC__ code. ANSIfy.
 1.8 15-Nov-2000  christos fix a multitude of core dumps because most functions were not checking
the length of the word list.
 1.7 06-Nov-1998  christos char -> unsigned char
 1.6 08-Oct-1998  wsanchez Get rid of multiply defined common symbols
langauge should be language in error.h
 1.5 18-Oct-1997  lukem WARNSify (big job!), fix .Nm usage
 1.4 10-Sep-1995  christos Handle long lines without core-dumping.
 1.3 02-Sep-1995  jtc Sync with 4.4lite2
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 09-Apr-1993  cgd branches: 1.1.1;
added, from net/2 (patch 119).
 1.1.1.1 02-Sep-1995  jtc imported from 44lite2
 1.17.42.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.26 26-Aug-2023  rillig error: use separate tokens for characters, integers and pointers

Assisted by lint's queries 10, 14, 15.

No binary change.
 1.25 26-Aug-2023  rillig error: enable lint's strict bool mode

This cleans up the inconsistencies between 'int', 'boolean' and 'bool'.
 1.24 26-Aug-2023  rillig error: move comment above the main function to the manual page

While here, clean up the markup of the manual page, removing unnecessary
emphasis.
 1.23 26-Aug-2023  rillig error: fix typos
 1.22 12-Dec-2021  andvar fix various typos, mainly in comments.
 1.21 17-Aug-2011  christos avoid "... dutch" being interpreted as a pascal continuation message, and
core-dumping.
 1.20 21-May-2011  christos - KNF
- more static
- fix argument parsing.
 1.19 20-May-2011  wiz Sync usage with man page.
 1.18 19-May-2011  christos - use getopt
- use err
- add -p <filelevel> to chop levels like patch
- document all the options
 1.17 13-Aug-2009  dholland Pass WARNS=4, not without some gross preprocessor hackery.
XXX: does this program actually do anything useful these days?
 1.16 13-Aug-2009  dholland Assorted minor cleanup:
- use stdbool.h (partly)
- move extern declarations of data to header files
- use right types for calloc() wrapper
- remove bogus casts on return values
- remove excessive Pascal-style parentheses in conditionals
- a couple const fixes
- fix some typos in comments
 1.15 13-Aug-2009  dholland Sprinkle const.
 1.14 13-Aug-2009  dholland woops (doh!)
 1.13 13-Aug-2009  dholland Whitespace.
 1.12 13-Aug-2009  dholland sprinkle static
 1.11 21-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
 1.10 19-Jul-2007  lukem branches: 1.10.12; 1.10.14;
Support an explicit Q_error return from inquire(), which is returned
if there was an error on reading the reply.
Stops an infinite loop if you ^D the query.
 1.9 13-Feb-2004  wiz Spell the plural of suffix "suffixes", not "suffices".
Inspired by PR 24400 by Todd Vierling.
 1.8 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.7 26-May-2002  wiz Remove #ifndef'd __STDC__ code. ANSIfy.
 1.6 11-Jun-2001  wiz Fix various misspellings of compatible/compatibility.
 1.5 08-Oct-1998  wsanchez Get rid of multiply defined common symbols
langauge should be language in error.h
 1.4 18-Oct-1997  lukem WARNSify (big job!), fix .Nm usage
 1.3 02-Sep-1995  jtc Sync with 4.4lite2
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 09-Apr-1993  cgd branches: 1.1.1;
added, from net/2 (patch 119).
 1.1.1.1 02-Sep-1995  jtc imported from 44lite2
 1.10.14.2 19-Jul-2007  lukem Support an explicit Q_error return from inquire(), which is returned
if there was an error on reading the reply.
Stops an infinite loop if you ^D the query.
 1.10.14.1 19-Jul-2007  lukem file main.c was added on branch matt-mips64 on 2007-07-19 05:43:24 +0000
 1.10.12.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.6 13-Aug-2009  dholland Whitespace.
 1.5 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.4 06-Nov-1999  kleink For temporary files' pathnames, check $TMPDIR before falling back to _PATH_TMP.
 1.3 02-Sep-1995  jtc branches: 1.3.12;
Sync with 4.4lite2
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 09-Apr-1993  cgd branches: 1.1.1;
added, from net/2 (patch 119).
 1.1.1.1 02-Sep-1995  jtc imported from 44lite2
 1.3.12.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.25 11-Jul-2025  andvar Fix various typos, mainly in comments and log/error messages.
 1.24 26-Aug-2023  rillig branches: 1.24.2;
error: clean up comparison of word vectors

The function wordvcmp returned -1 when either of the word vectors was
short; this made the function asymmetric. Since the function is only
used to compare two word vectors for equality, restrict it to this
particular use case.
 1.23 26-Aug-2023  rillig error: use separate tokens for characters, integers and pointers

Assisted by lint's queries 10, 14, 15.

No binary change.
 1.22 26-Aug-2023  rillig error: enable lint's strict bool mode

This cleans up the inconsistencies between 'int', 'boolean' and 'bool'.
 1.21 26-Aug-2023  rillig error: remove redundant parentheses around return value

No binary change.
 1.20 04-Apr-2022  andvar fix various typos, mainly in comments.
 1.19 30-Jun-2016  dholland PR 51298 David Binderman: simplify redundant conditionals
 1.18 17-Aug-2011  christos avoid "... dutch" being interpreted as a pascal continuation message, and
core-dumping.
 1.17 13-Aug-2009  dholland Pass WARNS=4, not without some gross preprocessor hackery.
XXX: does this program actually do anything useful these days?
 1.16 13-Aug-2009  dholland Assorted minor cleanup:
- use stdbool.h (partly)
- move extern declarations of data to header files
- use right types for calloc() wrapper
- remove bogus casts on return values
- remove excessive Pascal-style parentheses in conditionals
- a couple const fixes
- fix some typos in comments
 1.15 13-Aug-2009  dholland Sprinkle const.
 1.14 13-Aug-2009  dholland Whitespace.
 1.13 13-Aug-2009  dholland sprinkle static
 1.12 09-Apr-2006  christos Coverity CID 2333: Fix memory leak.
 1.11 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.10 14-Jul-2003  itojun get rid of strsave(), use strdup directly
 1.9 26-May-2002  wiz Remove #ifndef'd __STDC__ code. ANSIfy.
 1.8 05-Feb-2001  christos fix redundant and nested decls
 1.7 14-Jan-2000  mjl Eliminate hard coded buffer sizes in fgets() statements, use
strlcpy() to avoid buffer overflows, increase filename buffer
to MAXPATHLEN. (from OpenBSD)
 1.6 06-Nov-1998  christos char -> unsigned char
 1.5 08-Oct-1998  wsanchez Get rid of multiply defined common symbols
langauge should be language in error.h
 1.4 18-Oct-1997  lukem WARNSify (big job!), fix .Nm usage
 1.3 02-Sep-1995  jtc Sync with 4.4lite2
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 09-Apr-1993  cgd branches: 1.1.1;
added, from net/2 (patch 119).
 1.1.1.1 02-Sep-1995  jtc imported from 44lite2
 1.24.2.1 02-Aug-2025  perseant Sync with HEAD
 1.26 26-Aug-2023  rillig error: clean up comparison of word vectors

The function wordvcmp returned -1 when either of the word vectors was
short; this made the function asymmetric. Since the function is only
used to compare two word vectors for equality, restrict it to this
particular use case.
 1.25 26-Aug-2023  rillig error: small cleanups
 1.24 26-Aug-2023  rillig error: use separate tokens for characters, integers and pointers

Assisted by lint's queries 10, 14, 15.

No binary change.
 1.23 26-Aug-2023  rillig error: enable lint's strict bool mode

This cleans up the inconsistencies between 'int', 'boolean' and 'bool'.
 1.22 26-Aug-2023  rillig error: remove redundant parentheses around return value

No binary change.
 1.21 26-Aug-2023  rillig error: fix lint warnings
 1.20 07-Apr-2022  andvar fix various typos in comments.
 1.19 13-Aug-2009  dholland Pass WARNS=4, not without some gross preprocessor hackery.
XXX: does this program actually do anything useful these days?
 1.18 13-Aug-2009  dholland Assorted minor cleanup:
- use stdbool.h (partly)
- move extern declarations of data to header files
- use right types for calloc() wrapper
- remove bogus casts on return values
- remove excessive Pascal-style parentheses in conditionals
- a couple const fixes
- fix some typos in comments
 1.17 13-Aug-2009  dholland Sprinkle const.
 1.16 13-Aug-2009  dholland Whitespace.
 1.15 13-Aug-2009  dholland sprinkle static
 1.14 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.13 14-Jul-2003  itojun get rid of strsave(), use strdup directly
 1.12 14-Jul-2003  itojun the function is equivalent to strdup.
 1.11 26-May-2002  wiz Remove #ifndef'd __STDC__ code. ANSIfy.
 1.10 15-Nov-2000  christos strcmp returns an int not a ptr so don't compare to NULL
 1.9 14-Jan-2000  mjl Eliminate hard coded buffer sizes in fgets() statements, use
strlcpy() to avoid buffer overflows, increase filename buffer
to MAXPATHLEN. (from OpenBSD)
 1.8 15-May-1999  christos Fix serious bug with string overruns that caused error to coredump randomly
on NetBSD, and each time on other OS's. Also 0 -> NULL or 0 -> '\0' where
appropriate.
 1.7 15-May-1999  sommerfeld Don't assume isspace(0) == 1
 1.6 06-Nov-1998  christos branches: 1.6.2;
char -> unsigned char
 1.5 18-Oct-1997  lukem WARNSify (big job!), fix .Nm usage
 1.4 10-Sep-1995  christos Handle long lines without core-dumping.
 1.3 02-Sep-1995  jtc Sync with 4.4lite2
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 09-Apr-1993  cgd branches: 1.1.1;
added, from net/2 (patch 119).
 1.1.1.1 02-Sep-1995  jtc imported from 44lite2
 1.6.2.1 21-Jun-1999  perry pullup 1.6->1.8 (christos): string overruns caused by incorrect bounds check
 1.32 26-Aug-2023  rillig error: use separate tokens for characters, integers and pointers

Assisted by lint's queries 10, 14, 15.

No binary change.
 1.31 26-Aug-2023  rillig error: enable lint's strict bool mode

This cleans up the inconsistencies between 'int', 'boolean' and 'bool'.
 1.30 26-Aug-2023  rillig error: remove redundant parentheses around return value

No binary change.
 1.29 26-Aug-2023  rillig error: fix lint warnings
 1.28 13-Oct-2019  christos can't happen, but gcc can't figure it out.
 1.27 29-Feb-2012  joerg branches: 1.27.32;
Don't use non-literal format strings. Split it up depending on the
number of arguments used.
 1.26 24-May-2011  joerg branches: 1.26.4; 1.26.6;
Simplify
 1.25 21-May-2011  christos use warn/err.
 1.24 20-May-2011  christos counting was off, and setting things to themselves does not work very welll.
 1.23 19-May-2011  christos - use getopt
- use err
- add -p <filelevel> to chop levels like patch
- document all the options
 1.22 13-Aug-2009  dholland Pass WARNS=4, not without some gross preprocessor hackery.
XXX: does this program actually do anything useful these days?
 1.21 13-Aug-2009  dholland Assorted minor cleanup:
- use stdbool.h (partly)
- move extern declarations of data to header files
- use right types for calloc() wrapper
- remove bogus casts on return values
- remove excessive Pascal-style parentheses in conditionals
- a couple const fixes
- fix some typos in comments
 1.20 13-Aug-2009  dholland pass -Wshadow
 1.19 13-Aug-2009  dholland Sprinkle const.
 1.18 13-Aug-2009  dholland Whitespace.
 1.17 13-Aug-2009  dholland sprinkle static
 1.16 05-Oct-2007  lukem Convert to raise_default_signal(3).
 1.15 19-Jul-2007  lukem branches: 1.15.4; 1.15.6;
Support an explicit Q_error return from inquire(), which is returned
if there was an error on reading the reply.
Stops an infinite loop if you ^D the query.
 1.14 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.13 26-May-2002  wiz Remove #ifndef'd __STDC__ code. ANSIfy.
 1.12 24-Sep-2001  wiz va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.
 1.11 05-Feb-2001  christos fix redundant and nested decls
 1.10 11-Oct-2000  is More format string cleanup by sommerfeld.
 1.9 06-Nov-1999  kleink branches: 1.9.4;
For temporary files' pathnames, check $TMPDIR before falling back to _PATH_TMP.
 1.8 30-Mar-1998  mrg branches: 1.8.2; 1.8.6;
remove unused extern.
 1.7 19-Oct-1997  mrg fix compile warnings on the alpha.
 1.6 18-Oct-1997  lukem WARNSify (big job!), fix .Nm usage
 1.5 17-May-1997  pk NULL => 0 (Arne Juul; PR#3629)
 1.4 22-Mar-1997  lukem use mkstemp() instead of mktemp()
 1.3 02-Sep-1995  jtc Sync with 4.4lite2
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 09-Apr-1993  cgd branches: 1.1.1;
added, from net/2 (patch 119).
 1.1.1.1 02-Sep-1995  jtc imported from 44lite2
 1.8.6.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.8.2.1 19-Oct-2000  he Pull up revision 1.10 (requested by he):
Format string cleanup.
 1.9.4.1 18-Oct-2000  tv Pullup usr.bin string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.
 1.15.6.2 19-Jul-2007  lukem Support an explicit Q_error return from inquire(), which is returned
if there was an error on reading the reply.
Stops an infinite loop if you ^D the query.
 1.15.6.1 19-Jul-2007  lukem file touch.c was added on branch matt-mips64 on 2007-07-19 05:43:24 +0000
 1.15.4.1 06-Nov-2007  matt sync with HEAD
 1.26.6.1 05-Mar-2012  sborrill Pull up the following revisions(s) (requested by joerg in ticket #75):
usr.sbin/cpuctl/arch/i386.c: revision 1.28
usr.bin/unifdef/unifdef.c: revision 1.21
usr.bin/ktruss/dump.c: revision 1.40
usr.bin/error/error.h: revision 1.19
usr.bin/error/touch.c: revision 1.27
libexec/httpd/dir-index-bozo.c: revision 1.14
games/dab/algor.cc: revision 1.5
games/dab/board.h: revision 1.4
dist/pf/sbin/pflogd/pflogd.c: revision 1.9
dist/pf/sbin/pflogd/pflogd.h: revision 1.5

Fix various format string mismatches
 1.26.4.1 17-Apr-2012  yamt sync with head
 1.27.32.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411

RSS XML Feed