Home | History | Annotate | only in /src/usr.bin/msgc
History log of /src/usr.bin/msgc
RevisionDateAuthorComments
 1.18 29-Oct-2009  christos option noinput
 1.17 20-Apr-2009  drochner define YY_NO_INPUT where appropriate, from Kurt J. Lidl per PR misc/41160
 1.16 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.15 25-Sep-2003  dsl branches: 1.15.42;
Add a msg_row() function that returns the current screen row.
Allows sysinst to place menus below any header text.
Remove msg_*.1 man pages for all the functions (they are in the wrong place
are a fair waste of directory space).
 1.14 04-Jun-2003  dsl Add msg_prompt_win() that will prompt in the specified window (instead of
the default one), and with a box around the window if >= 3 lines.
Stop the char delete from killingthe RHS of any box.
Make msg_string a noop for invalid strings (might be quoted text).
 1.13 18-May-2003  lukem Now that <bsd.prog.mk> DTRT if HOSTPROG is defined (i.e, it is a no-op),
there's no need to special-case .include-ing it.
 1.12 19-Sep-2002  lukem use NETBSDSRCDIR as appropriate
 1.11 31-Jan-2002  tv Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
 1.10 12-Nov-2001  tv Formatting cleanup.
 1.9 05-Oct-2001  jmc Add appropriate ifdefs so tools reachovers build clean
 1.8 06-Jul-2000  jhawk Add msg_*() functions to NAME (they are already in SYNOPSIS), and
add MLINKS for them. Perhaps later on they should be broken out into
a section other than 1? At least now they are findable via "man -k" etc.
 1.7 13-Feb-1999  lukem convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.6 27-Sep-1998  lukem don't install in /usr/share if NOSHARE is defined
 1.5 09-Apr-1998  tv .y.c <sys.mk> rule fixes. Don't create a y.tab.h file unless asked for,
and use smarter creation of the header file.
 1.4 22-Oct-1997  lukem use CPPFLAGS instead of CFLAGS
 1.3 19-Oct-1997  lukem branches: 1.3.2;
don't define WARNS=1 here
 1.2 11-Oct-1997  mycroft Clean up this garbage.
 1.1 26-Sep-1997  phil branches: 1.1.1;
Initial revision
 1.1.1.1 26-Sep-1997  phil Import a simple message system with 'compiled' messages. Used by
the net system install program.
 1.3.2.1 08-Nov-1997  lukem sync with trunk (approved by thorpej)
 1.15.42.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.6 18-Oct-2013  christos avoid redefinitions
 1.5 06-Mar-2012  mbalmer branches: 1.5.2;
Remove the advertising clause with the explicit ok from Perry E. Metzger.
 1.4 27-Oct-2003  lukem branches: 1.4.56;
Overhaul how `build.sh tools' are used:

* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h

* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
 1.3 14-Jul-2003  itojun use bounded string op
 1.2 29-Jan-2002  tv Make almost all tools compile and run properly on non-NetBSD hosts. (In
particular, most tools now run correctly on Solaris 7.)
 1.1 26-Sep-1997  phil branches: 1.1.1;
Initial revision
 1.1.1.1 26-Sep-1997  phil Import a simple message system with 'compiled' messages. Used by
the net system install program.
 1.4.56.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.4.56.1 17-Apr-2012  yamt sync with head
 1.5.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.48 16-Nov-2019  martin msg_table_add(): fix mishap in the format safety changes in r1.45
 1.47 25-Jun-2019  joerg branches: 1.47.2;
Do the fmtcheck for both message lookups to satisfy format string
literal checks.
 1.46 20-Jun-2019  martin Re-add msg_clear() accidently dropped in previous.
 1.45 20-Jun-2019  christos Introduce _fmt_ flavors of the menu functions that take a formatting string
so we can use fmtcheck(3) to check the formats of the messages strings.
 1.44 01-Mar-2019  martin msg_prompt_win: allow automatic window height calculation (by passing
height = -1).
 1.43 22-Jan-2019  martin Support redrawing all windows when in a msg prompt via Ctrl-l.
 1.42 21-Jan-2019  martin msg_prompt_win: if the default string fits, show it separately even
in fixed size windows. Previously it would only show up when auto-sizing
prompts figured it would fit (probably an oversight).
 1.41 06-Mar-2012  mbalmer branches: 1.41.30; 1.41.32;
Remove the advertising clause with the explicit ok from Perry E. Metzger.
 1.40 02-Mar-2012  mbalmer Add msg_printf(fmt, ...), a function to display raw messages without
going through the message catalog.
 1.39 02-Mar-2012  mbalmer Removing trailing whitespace.
 1.38 02-Jan-2010  dsl branches: 1.38.6;
Remove some sign compare warnings.
 1.37 03-Dec-2006  christos eliminate an alloca use.
 1.36 06-Sep-2006  dsl branches: 1.36.2;
Fix requests for msg input with a NULL target buffer (or zero length one)
to core dumps from sysinsts mbr code (and others) that use message boxes
for 'press enter to continue' actions.
Fixes PR/34206
 1.35 06-Sep-2006  dsl Rename 'max_chars' to 'val_buf_len' to make it clearer that it has to include
the trailing NUL.
 1.34 12-May-2006  he branches: 1.34.4;
Sorry, fix syntax error in previous.
 1.33 12-May-2006  he Appease gcc 3.3.3 -Wuninitialized warning; fixes build problem for
a multitude of archtectures (prep, alpha, i386, acorn32 and probably
more).
To be documented in doc/HACKS.
 1.32 09-Apr-2005  dsl If the user removed the default string (after we had put it into the buffer
area - rather than in []), then don't reinstate it on exit
 1.31 05-Nov-2004  dsl branches: 1.31.2;
Add (unsigned char) cast to ctype functions
Fixes problems displaying German 'sharp-s', see PR install/27281
 1.30 16-Oct-2004  dsl Remove _erase_ch() it isn't used any more
 1.29 14-Aug-2004  dsl NetBSD curses gives the wrong data when you read curscr, need to
add a doupdate() so we save from the correct screen image.
 1.28 13-Aug-2004  dsl Save and restore screen underneath prompt boxes
 1.27 05-Jun-2004  dsl Improve editing of input fields:
<- and -> move within the field
-> will pull default string into empty buffer
^H (etc) will delete default string from buffer (first press)
Put default string into display buffer if long and input in box.
Scroll input text if longer than space on line.
 1.26 25-Sep-2003  dsl branches: 1.26.2;
Add a msg_row() function that returns the current screen row.
Allows sysinst to place menus below any header text.
Remove msg_*.1 man pages for all the functions (they are in the wrong place
are a fair waste of directory space).
 1.25 28-Jul-2003  dsl No need for wrefresh() in msg_clear(), screen will be updated later.
Stops obvious redraw of header of some menus.
 1.24 25-Jul-2003  dsl Change variable name to compiles with WARNS=3
 1.23 14-Jul-2003  itojun use bounded string op
 1.22 07-Jul-2003  dsl Change 'Magic number' of menu text files.
Correct calculation of window width in msg_prompt_win().
 1.21 27-Jun-2003  dsl Add support for reading messages from a text file - msg_file() and msg_string().
Use subwin() in msg_prompt_win() now libcurses is fixed.
Some KNF changes I seem to have forgotten to commit on their own :-(
 1.20 10-Jun-2003  dsl Change msg_window() to return old window (temp buffer size isn't too important)
Change msg_promt_win() to create the window.
Number MSG_xxx from 1 (because 0 is NULL)
 1.19 04-Jun-2003  dsl Add msg_prompt_win() that will prompt in the specified window (instead of
the default one), and with a box around the window if >= 3 lines.
Stop the char delete from killingthe RHS of any box.
Make msg_string a noop for invalid strings (might be quoted text).
 1.18 10-Jan-2003  christos produce lint free code.
 1.17 04-Jul-1999  cgd nuke msg_printf() and msg_printf_add().
 1.16 04-Jul-1999  cgd const-ify strings as appropriate, and convert message 'numbers' from
ints to 'msg's. 'msg' is currently typedef'd as 'const char *', but it'll
become more complex eventually.
 1.15 04-Jul-1999  cgd oops, forgot an _
 1.14 04-Jul-1999  cgd privatize msg_beep
 1.13 04-Jul-1999  cgd nuke msg_{,no}echo, add msg_prompt_noecho
 1.12 04-Jul-1999  cgd nuke msg_prompt_str, msg_prompt_addstr, and msg_table (unused), and make
msg_vprintf private.
 1.11 04-Jul-1999  cgd turn on automatic text layout for the printf and display fns
 1.10 04-Jul-1999  cgd provide APIs (currently mostly undocumented) to print pre-formatted
(table) text.
 1.9 23-Jun-1999  cgd implement word kill with control-W
 1.8 23-Jun-1999  cgd add code to do dynamic message text layout, currently completely disabled.
 1.7 23-Jun-1999  cgd replace lots of wclear()/wmove() calls with calls to msg_clear(). wmove()
to 0,0 was unnecessary because wclear() is documented to do that. also,
the immediate wrefresh() done by msg_clear() means that if we can take
advantage of full screen clear sequence, we will.
 1.6 22-Jun-1999  cgd don't bother calculated up MAXSTR, especially since the value calculated
is _bogus_ in the face of printf-like message formatting! Instead,
calcuate the max size to format when the message window is set. We know
that we'll never want to format more characters than can fit in the window.
 1.5 19-Jun-1999  cgd don't dereference NULL when thinking about copying the default
 1.4 19-Jun-1999  cgd teach the message prompting code to use control-U as line kill character.
(not really the right thing, but it already hard-codes backspace and
delete rather than using the terminal settings...)
 1.3 19-Jun-1999  cgd fix an off-by-one error (it would put up to max_chars plus NUL into the string,
which is one too many). Also, msgc manual page says that 'def' and 'val'
can be the same string, but the way input was done (characters typed
went directly into val) meant that the contents of 'def' would be corrupted.
If the user backspaced to the beginning of the line and hit return (to accept
the default), they'd get a combination of the old default string and the
new characters they typed. alloca() a buffer an put new input there to
avoid this problem.
 1.2 25-Apr-1999  veego It was a bad idea to call a function 'beep'.
Rename it to msg_beep to avoid conflicts with the new curses.h.
 1.1 26-Sep-1997  phil branches: 1.1.1;
Initial revision
 1.1.1.1 26-Sep-1997  phil branches: 1.1.1.1.4;
Import a simple message system with 'compiled' messages. Used by
the net system install program.
 1.1.1.1.4.1 24-Jun-1999  cgd pull up rev(s) 1.2-1.9 from trunk. (cgd)
 1.26.2.1 07-Jun-2004  tron branches: 1.26.2.1.2;
Pull up revision 1.27 (requested by dsl in ticket #452):
Improve editing of input fields:
<- and -> move within the field
-> will pull default string into empty buffer
^H (etc) will delete default string from buffer (first press)
Put default string into display buffer if long and input in box.
Scroll input text if longer than space on line.
 1.26.2.1.2.5 23-Jul-2005  snj Pull up revision 1.32 (requested by riz in ticket #5514):
If the user removed the default string (after we had put it into the buffer
area - rather than in []), then don't reinstate it on exit
 1.26.2.1.2.4 23-Jul-2005  snj Pull up revision 1.31 (requested by riz in ticket #5514):
Add (unsigned char) cast to ctype functions
Fixes problems displaying German 'sharp-s', see PR install/27281
 1.26.2.1.2.3 23-Jul-2005  snj Pull up revision 1.30 (requested by riz in ticket #5514):
Remove _erase_ch() it isn't used any more
 1.26.2.1.2.2 23-Jul-2005  snj Pull up revision 1.29 (requested by riz in ticket #5514):
NetBSD curses gives the wrong data when you read curscr, need to
add a doupdate() so we save from the correct screen image.
 1.26.2.1.2.1 23-Jul-2005  snj Pull up revision 1.28 (requested by riz in ticket #5514):
Save and restore screen underneath prompt boxes
 1.31.2.1 16-Sep-2006  ghen Pull up following revision(s) (requested by dsl in ticket #1513):
usr.bin/msgc/msg_sys.def: revision 1.32
If the user removed the default string (after we had put it into the buffer
area - rather than in []), then don't reinstate it on exit
 1.34.4.1 14-Sep-2006  riz Pull up following revision(s) (requested by dsl in ticket #155):
usr.bin/msgc/msg_sys.def: revision 1.35
usr.bin/msgc/msg_sys.def: revision 1.36
Rename 'max_chars' to 'val_buf_len' to make it clearer that it has to include
the trailing NUL.
Fix requests for msg input with a NULL target buffer (or zero length one)
to core dumps from sysinsts mbr code (and others) that use message boxes
for 'press enter to continue' actions.
Fixes PR/34206
 1.36.2.1 03-Dec-2006  tron Pull up following revision(s) (requested by tls in ticket #243):
usr.bin/msgc/msg_sys.def: revision 1.37
eliminate an alloca use.
 1.38.6.1 17-Apr-2012  yamt sync with head
 1.41.32.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.41.32.1 10-Jun-2019  christos Sync with HEAD
 1.41.30.1 26-Jan-2019  pgoyette Sync with HEAD
 1.47.2.1 17-Nov-2019  msaitoh Pull up following revision(s) (requested by martin in ticket #433):
usr.bin/msgc/msg_sys.def: revision 1.48
msg_table_add(): fix mishap in the format safety changes in r1.45
 1.27 11-Oct-2021  rillig msgc.1: fix typos
 1.26 06-Mar-2012  mbalmer Remove the advertising clause with the explicit ok from Perry E. Metzger.
 1.25 02-Mar-2012  wiz Use mdoc macros only.
 1.24 02-Mar-2012  mbalmer Add msg_printf(fmt, ...), a function to display raw messages without
going through the message catalog.
 1.23 11-Jan-2012  riz MENU_name -> MSG_name
 1.22 14-May-2010  joerg branches: 1.22.6;
Simplify markup.
 1.21 09-Mar-2009  joerg Fix preamble to match order set out by mdoc(7). Discussed with wiz.
 1.20 15-Oct-2003  wiz branches: 1.20.42;
Bump date for previous.
 1.19 25-Sep-2003  dsl Add a msg_row() function that returns the current screen row.
Allows sysinst to place menus below any header text.
Remove msg_*.1 man pages for all the functions (they are in the wrong place
are a fair waste of directory space).
 1.18 04-Jun-2003  dsl Add msg_prompt_win() that will prompt in the specified window (instead of
the default one), and with a box around the window if >= 3 lines.
Stop the char delete from killingthe RHS of any box.
Make msg_string a noop for invalid strings (might be quoted text).
 1.17 26-Sep-2002  wiz Begin new sentences on new lines. Minor mdoc improvements.
 1.16 01-Dec-2001  wiz Use standard headers.
 1.15 01-Dec-2001  wiz Whitespace cleanup.
 1.14 04-Dec-2000  wiz Fix typos and wording.
 1.13 06-Jul-2000  jhawk Document paragraph-filling behavior of msg_display{,_add}(), and
document function of msg_table_add(). What a whacko api.
 1.12 06-Jul-2000  jhawk Add msg_*() functions to NAME (they are already in SYNOPSIS), and
add MLINKS for them. Perhaps later on they should be broken out into
a section other than 1? At least now they are findable via "man -k" etc.
 1.11 31-Dec-1999  garbled Add FILES and EVIRONMENT sections detailing what files these programs use,
where they live, and how to modify that behavior.
 1.10 04-Jul-1999  cgd nuke msg_printf() and msg_printf_add().
 1.9 04-Jul-1999  cgd const-ify strings as appropriate, and convert message 'numbers' from
ints to 'msg's. 'msg' is currently typedef'd as 'const char *', but it'll
become more complex eventually.
 1.8 04-Jul-1999  cgd privatize msg_beep
 1.7 04-Jul-1999  cgd nuke msg_{,no}echo, add msg_prompt_noecho
 1.6 04-Jul-1999  cgd nuke msg_prompt_str, msg_prompt_addstr, and msg_table (unused), and make
msg_vprintf private.
 1.5 04-Jul-1999  cgd provide APIs (currently mostly undocumented) to print pre-formatted
(table) text.
 1.4 25-Apr-1999  veego It was a bad idea to call a function 'beep'.
Rename it to msg_beep to avoid conflicts with the new curses.h.
 1.3 22-Mar-1999  garbled branches: 1.3.2;
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.2 19-Oct-1997  lukem fix up .Nm usage, getopt returns -1 not EOF
 1.1 26-Sep-1997  phil branches: 1.1.1;
Initial revision
 1.1.1.1 26-Sep-1997  phil Import a simple message system with 'compiled' messages. Used by
the net system install program.
 1.3.2.1 24-Jun-1999  cgd pull up rev(s) 1.4 from trunk. (cgd)
 1.20.42.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.22.6.1 17-Apr-2012  yamt sync with head
 1.24 20-Jun-2019  christos Introduce _fmt_ flavors of the menu functions that take a formatting string
so we can use fmtcheck(3) to check the formats of the messages strings.
 1.23 06-Mar-2012  mbalmer branches: 1.23.32;
Remove the advertising clause with the explicit ok from Perry E. Metzger.
 1.22 02-Mar-2012  mbalmer Add msg_printf(fmt, ...), a function to display raw messages without
going through the message catalog.
 1.21 02-Mar-2012  mbalmer Removing trailing whitespace.
 1.20 20-Jun-2004  jmc branches: 1.20.50;
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944
 1.19 25-Sep-2003  dsl branches: 1.19.2;
Add a msg_row() function that returns the current screen row.
Allows sysinst to place menus below any header text.
Remove msg_*.1 man pages for all the functions (they are in the wrong place
are a fair waste of directory space).
 1.18 17-Jul-2003  lukem only use __RCSID() if it is #defined
 1.17 27-Jun-2003  dsl Add support for reading messages from a text file - msg_file() and msg_string().
Use subwin() in msg_prompt_win() now libcurses is fixed.
Some KNF changes I seem to have forgotten to commit on their own :-(
 1.16 23-Jun-2003  agc Add NetBSD RCS Ids.
 1.15 10-Jun-2003  dsl Change msg_window() to return old window (temp buffer size isn't too important)
Change msg_promt_win() to create the window.
Number MSG_xxx from 1 (because 0 is NULL)
 1.14 04-Jun-2003  dsl Add msg_prompt_win() that will prompt in the specified window (instead of
the default one), and with a box around the window if >= 3 lines.
Stop the char delete from killingthe RHS of any box.
Make msg_string a noop for invalid strings (might be quoted text).
 1.13 10-Jan-2003  christos produce lint free code.
 1.12 15-Oct-2001  bjh21 Move the default path definition from msgdb.c to a new pathnames.h, as
required by KNF. This will also be required to allow msgc to be installed
into ${TOOLDIR} properly.
 1.11 04-Jul-1999  cgd nuke msg_printf() and msg_printf_add().
 1.10 04-Jul-1999  cgd const-ify strings as appropriate, and convert message 'numbers' from
ints to 'msg's. 'msg' is currently typedef'd as 'const char *', but it'll
become more complex eventually.
 1.9 04-Jul-1999  cgd privatize msg_beep
 1.8 04-Jul-1999  cgd nuke msg_{,no}echo, add msg_prompt_noecho
 1.7 04-Jul-1999  cgd nuke msg_prompt_str, msg_prompt_addstr, and msg_table (unused), and make
msg_vprintf private.
 1.6 04-Jul-1999  cgd provide APIs (currently mostly undocumented) to print pre-formatted
(table) text.
 1.5 22-Jun-1999  cgd don't bother calculated up MAXSTR, especially since the value calculated
is _bogus_ in the face of printf-like message formatting! Instead,
calcuate the max size to format when the message window is set. We know
that we'll never want to format more characters than can fit in the window.
 1.4 19-Jun-1999  cgd the skeleton now also needs stdlib.h
 1.3 25-Apr-1999  veego It was a bad idea to call a function 'beep'.
Rename it to msg_beep to avoid conflicts with the new curses.h.
 1.2 03-Oct-1997  enami branches: 1.2.4;
- Include <string.h> to import the proto type of strlen().
- Add an empty line before inclusion of local header.
 1.1 26-Sep-1997  phil branches: 1.1.1;
Initial revision
 1.1.1.1 26-Sep-1997  phil Import a simple message system with 'compiled' messages. Used by
the net system install program.
 1.2.4.1 24-Jun-1999  cgd pull up rev(s) 1.3-1.5 from trunk. (cgd)
 1.19.2.1 22-Jun-2004  tron Pull up revision 1.20 (requested by jmc in ticket #527):
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
 1.20.50.1 17-Apr-2012  yamt sync with head
 1.23.32.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.3 06-Mar-2012  mbalmer Remove the advertising clause with the explicit ok from Perry E. Metzger.
 1.2 02-Mar-2012  mbalmer Removing trailing whitespace.
 1.1 26-Sep-1997  phil branches: 1.1.1;
Initial revision
 1.1.1.1 26-Sep-1997  phil branches: 1.1.1.1.70;
Import a simple message system with 'compiled' messages. Used by
the net system install program.
 1.1.1.1.70.1 17-Apr-2012  yamt sync with head
 1.9 06-Mar-2012  mbalmer Remove the advertising clause with the explicit ok from Perry E. Metzger.
 1.8 02-Mar-2012  mbalmer Removing trailing whitespace.
 1.7 20-Jun-2004  jmc branches: 1.7.50;
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944
 1.6 17-Jul-2003  lukem branches: 1.6.2;
only use __RCSID() if it is #defined
 1.5 23-Jun-2003  agc Add NetBSD RCS Ids.
 1.4 03-Jul-2000  matt Make gcc 2.96 (and maybe earlier) happier. Include <stdlib.h>,<string.>,
etc. as appropriate to get exit,srncmp,abs,abort,etc.
Add -I${.CURDIR} to a few Makefiles
 1.3 03-Feb-1998  perry <stdlib.h> -> <unistd.h> to fix compiler warning
 1.2 19-Oct-1997  lukem fix up .Nm usage, getopt returns -1 not EOF
 1.1 26-Sep-1997  phil branches: 1.1.1;
Initial revision
 1.1.1.1 26-Sep-1997  phil Import a simple message system with 'compiled' messages. Used by
the net system install program.
 1.6.2.1 22-Jun-2004  tron Pull up revision 1.7 (requested by jmc in ticket #527):
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
 1.7.50.1 17-Apr-2012  yamt sync with head
 1.5 06-Mar-2012  mbalmer Remove the advertising clause with the explicit ok from Perry E. Metzger.
 1.4 02-Mar-2012  mbalmer Removing trailing whitespace.
 1.3 17-Jul-2003  lukem branches: 1.3.56;
only use __RCSID() if it is #defined
 1.2 23-Jun-2003  agc Add NetBSD RCS Ids.
 1.1 26-Sep-1997  phil branches: 1.1.1;
Initial revision
 1.1.1.1 26-Sep-1997  phil Import a simple message system with 'compiled' messages. Used by
the net system install program.
 1.3.56.1 17-Apr-2012  yamt sync with head
 1.7 06-Mar-2012  mbalmer Remove the advertising clause with the explicit ok from Perry E. Metzger.
 1.6 02-Mar-2012  mbalmer Removing trailing whitespace.
 1.5 29-Oct-2009  christos branches: 1.5.6;
option noinput
 1.4 17-Jul-2003  lukem only use __RCSID() if it is #defined
 1.3 23-Jun-2003  agc Add NetBSD RCS Ids.
 1.2 09-Apr-1998  tv .y.c <sys.mk> rule fixes. Don't create a y.tab.h file unless asked for,
and use smarter creation of the header file.
 1.1 26-Sep-1997  phil branches: 1.1.1;
Initial revision
 1.1.1.1 26-Sep-1997  phil Import a simple message system with 'compiled' messages. Used by
the net system install program.
 1.5.6.1 17-Apr-2012  yamt sync with head
 1.1 15-Oct-2001  bjh21 Move the default path definition from msgdb.c to a new pathnames.h, as
required by KNF. This will also be required to allow msgc to be installed
into ${TOOLDIR} properly.

RSS XML Feed