Home | History | Annotate | only in /src/usr.sbin/mopd/common
History log of /src/usr.sbin/mopd/common
RevisionDateAuthorComments
 1.25 24-Sep-2025  mrg alpha-gcc14 triggers an ICE in file.c:

mopd/common/file.c:296:1: internal compiler error: in gen_rtx_SUBREG, at emit-rtl.cc:1032
296 | }
| ^
 1.24 03-Jun-2023  lukem bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.23 31-Oct-2021  christos Put the NOAOUT in one place
 1.22 31-Oct-2021  christos USE CPPFLAGS instead of CFLAGS for -D !
 1.21 13-Oct-2019  mrg introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
 1.20 27-Jul-2014  dholland branches: 1.20.24;
Fix broken snprintf usage; noted in PR 47976 from Henning Petersen.
As a bonus, this removes the nonliteral format arguments.
 1.19 10-Aug-2012  joerg branches: 1.19.2; 1.19.8;
Remove many HAVE_GCC || HAVE_PCC conditionals as the options also apply
to Clang. Add a few cases of HAVE_LLVM for -fno-strict-aliasing.
 1.18 25-Aug-2011  joerg branches: 1.18.2;
Use of non-literal format strings
 1.17 16-Aug-2011  christos gcc-4.5 is picky about potential negative indexes. appease it.
 1.16 22-Jun-2011  mrg apply some -Wno-error and/or -fno-strict-aliasing.


all of this should be looked at closer, but some of them are not
very trivial.
 1.15 20-Jun-2011  mrg remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
 1.14 20-Aug-2009  he branches: 1.14.4;
Define NOAOUT if we're building for mips.
 1.13 25-Oct-2008  apb Use ${TOOL_SED} instead if plain sed in Makefiles.
 1.12 29-Aug-2008  gmcgarry Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.
 1.11 03-May-2008  lukem branches: 1.11.2;
Rename MKPRIVATELIB to LIBISPRIVATE, to make it clearer that this is
a variable that is used by in-tree Makefiles to control behaviour.
(MKsomevar variables are generally intended to be controlled by the end-user)
 1.10 12-May-2006  mrg branches: 1.10.18;
use -Wno-pointer-sign with GCC4.
 1.9 23-May-2004  lukem Use MKPRIVATELIB=yes instead of providing an empty libinstall:: target and
setting NOLINT, NOPIC, NOPROFILE (etc)
 1.8 21-Oct-2003  lukem Rework how MAKEVERBOSE operates:

* Don't bother prefixing commands with a line of ${_MKCMD}\
and instead rely upon "make -s". This is less intrusive on
all the Makefiles than the former. Idea from David Laight.

* Rename the variables use to print messages. The scheme now is:
_MKMSG_FOO Run _MKMSG 'foo'
_MKTARGET_FOO Run _MKMSG_FOO ${.TARGET}
From discussion with Alistair Crooks.
 1.7 19-Oct-2003  lukem support MAKEVERBOSE
 1.6 20-Apr-2003  christos PR/3343: Jonathan Stone: Errors and warnings to stderr if interactive
 1.5 18-Sep-2002  lukem minor makefile delint
 1.4 12-Dec-2001  tv MKfoo=no -> NOfoo
 1.3 13-Mar-1999  lukem set MKLINT=no. noted by NAKAJIMA Yoshihiro <nakayosh@kcn.ne.jp>
 1.2 13-Feb-1999  lukem convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.1 16-Oct-1997  lukem - compile common code once (into libcommon.a), and link that in.
cut's compilation time by half!
- build a common version.c in libcommon.a
- don't build version.h - nothing uses it
- comment out the ifdef INFO and -DINFO stuff - it's always compiled in
- XXX: don't compile mopprobe with -DNODL (which actually changes the
compilation of stuff in common/*). nothing else does this, and it
meant that mopprobe would have had different behaviour. if this behaviour
is desired, a workaround can be put in place
 1.10.18.1 18-May-2008  yamt sync with head.
 1.11.2.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.14.4.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.18.2.1 30-Oct-2012  yamt sync with head
 1.19.8.1 10-Aug-2014  tls Rebase.
 1.19.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.20.24.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.1 08-Jun-2016  christos Quick+Dirty port to linux
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.7 03-Dec-2024  kalvisd usr.sbin/mopd: When building the vax-mopcopy host tool,
preferentially include "nbtool_config.h" over "port.h"

OK rin@
 1.6 08-Jun-2016  christos branches: 1.6.28;
Quick+Dirty port to linux
 1.5 17-Nov-2009  drochner ANSIfy, sprinkle "const"
 1.4 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.3 16-Oct-1997  lukem - WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.6.28.1 02-Aug-2025  perseant Sync with HEAD
 1.7 30-Aug-2011  joerg ANSIfy + __printflike + __dead
 1.6 17-Nov-2009  drochner ANSIfy, sprinkle "const"
 1.5 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.4 16-Jan-2001  cgd comment or delete text after CPP directives.
 1.3 16-Oct-1997  lukem - WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.10 02-Aug-2021  andvar fix various typos in comments and log messages.
 1.9 30-Aug-2011  joerg ANSIfy + __printflike + __dead
 1.8 17-Nov-2009  drochner ANSIfy, sprinkle "const"
 1.7 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.6 06-Jun-2002  thorpej Add Elf32 support to mopa.out (which is now quite inappropriately
named; a future commit will rename it).

Thanks to uwe@netbsd.org for testing the resulting MOP image for me.

Fixes port-vax/16867.
 1.5 18-Feb-2002  thorpej branches: 1.5.2;
Add support for converting Elf32 images on-the-fly into MOP images.
(This involved some infrastructure changes to the various mopd
support programs/libraries.)
 1.4 07-Feb-1998  cgd lint
 1.3 16-Oct-1997  lukem - WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.5.2.1 07-Jun-2002  thorpej pullup-1-6 ticket #198:

basesrc/usr.sbin/mopd/common/common.h 1.6
basesrc/usr.sbin/mopd/common/file.c 1.9
basesrc/usr.sbin/mopd/common/file.h 1.5
basesrc/usr.sbin/mopd/mopa.out/mopa.out.c 1.9

Original log message:

Add Elf32 support to mopa.out (which is now quite inappropriately
named; a future commit will rename it).

Thanks to uwe@netbsd.org for testing the resulting MOP image for me.

Fixes port-vax/16867.
 1.14 03-Dec-2024  kalvisd mopd/common/device.c: initialise local variable before use, to
appease GCC 12.

Fix contributed by Jan-Benedict Glaw.
 1.13 08-Jun-2016  christos branches: 1.13.28;
Quick+Dirty port to linux
 1.12 30-Aug-2011  joerg ANSIfy + __printflike + __dead
 1.11 17-Nov-2009  drochner ANSIfy, sprinkle "const"
 1.10 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.9 10-Nov-2003  wiz Spell address with two d's. Inspired by similar changes in OpenBSD,
originating from Jonathon Gray and forwarded by jmc@openbsd.
 1.8 18-Aug-2003  itojun SIOCGIFCONF -> getifaddrs conversion
 1.7 14-Jul-2003  itojun use bounded string op
 1.6 20-Apr-2003  christos PR/3343: Jonathan Stone: Errors and warnings to stderr if interactive
 1.5 22-Aug-2002  itojun string manipulation fixes. from openbsd
 1.4 13-Jul-2002  itojun use snprintf. inspired by openbsd change
 1.3 16-Oct-1997  lukem - WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.13.28.1 02-Aug-2025  perseant Sync with HEAD
 1.7 30-Aug-2011  joerg ANSIfy + __printflike + __dead
 1.6 17-Nov-2009  drochner ANSIfy, sprinkle "const"
 1.5 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.4 16-Jan-2001  cgd comment or delete text after CPP directives.
 1.3 16-Oct-1997  lukem - WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.9 08-Jun-2016  christos Quick+Dirty port to linux
 1.8 24-May-2011  joerg Kill redundant ()
 1.7 17-Nov-2009  drochner ANSIfy, sprinkle "const"
 1.6 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.5 17-Apr-2009  lukem Fix WARNS=4 issues (many -Wshadow, -Wcast-qual)
 1.4 17-Aug-1999  simonb branches: 1.4.50;
In a program request packet during the second and third stage of an
Ultrix/mips MOP boot, the "software" packet is 256 bytes - bump the
size of the program array (maximum for the VAX must only be 16 bytes).
 1.3 16-Oct-1997  lukem branches: 1.3.4;
- WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.3.4.1 27-Sep-1999  cgd pull up rev 1.4 from trunk (requested by simonb):
In a program request packet during the second and third stage of an
Ultrix/mips MOP boot, the "software" packet is 256 bytes - bump the
size of the program array (maximum for the VAX must only be 16 bytes).
 1.4.50.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.7 30-Aug-2011  joerg ANSIfy + __printflike + __dead
 1.6 17-Nov-2009  drochner ANSIfy, sprinkle "const"
 1.5 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.4 16-Jan-2001  cgd comment or delete text after CPP directives.
 1.3 16-Oct-1997  lukem - WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.20 03-Dec-2024  kalvisd usr.sbin/mopd: When building the vax-mopcopy host tool,
preferentially include "nbtool_config.h" over "port.h"

OK rin@
 1.19 23-Oct-2024  kalvisd Add mopcopy as a build tool for the VAX port.

OK rin@
 1.18 21-Oct-2024  kalvisd mopd/common: when reading sections from an ELF image, signal end-of-image
if the current section index is advanced past the last section to process

This should address PR bin/19248

OK rin@
 1.17 27-Oct-2020  abs branches: 1.17.8;
Update mopd for 4k VAX page size and support 1k page a.out binaries

From dreamlayers
 1.16 08-Jun-2016  christos Quick+Dirty port to linux
 1.15 31-Aug-2011  nakayama Fix build on mips (NOAOUT case).
 1.14 30-Aug-2011  joerg ANSIfy + __printflike + __dead
 1.13 16-Aug-2011  christos gcc-4.5 is picky about potential negative indexes. appease it.
 1.12 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.11 17-Apr-2009  lukem Fix WARNS=4 issues (many -Wshadow, -Wcast-qual)
 1.10 05-Nov-2002  thorpej branches: 1.10.40;
For ELF, set d->loadaddr to 0, as we do for a.out.

On both my 4000/60 and SIMH, a boot program NOT loaded at 0 consistently
is loaded +0x5200 too high in memory, which which causes a fatal trap back
into the console even before the self-relocating code can run. "wHATEver."
 1.9 06-Jun-2002  thorpej Add Elf32 support to mopa.out (which is now quite inappropriately
named; a future commit will rename it).

Thanks to uwe@netbsd.org for testing the resulting MOP image for me.

Fixes port-vax/16867.
 1.8 18-Feb-2002  thorpej branches: 1.8.2;
Add support for converting Elf32 images on-the-fly into MOP images.
(This involved some infrastructure changes to the various mopd
support programs/libraries.)
 1.7 16-Jan-2001  cgd comment or delete text after CPP directives.
 1.6 25-Jul-1998  mycroft SPARC uses 8k virtual pages for linking.
 1.5 07-Feb-1998  cgd lint
 1.4 16-Oct-1997  lukem - WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.3 16-Oct-1997  lukem - compile common code once (into libcommon.a), and link that in.
cut's compilation time by half!
- build a common version.c in libcommon.a
- don't build version.h - nothing uses it
- comment out the ifdef INFO and -DINFO stuff - it's always compiled in
- XXX: don't compile mopprobe with -DNODL (which actually changes the
compilation of stuff in common/*). nothing else does this, and it
meant that mopprobe would have had different behaviour. if this behaviour
is desired, a workaround can be put in place
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.8.2.2 11-Dec-2002  he Pull up revision 1.10 (requested by thorpej in ticket #962):
For ELF, set d->loadaddr to 0, as we do for a.out. Fixes
a problem which causes the program to load 0x5200 too high
in memory, causing a fatal trap before self-relocation.
 1.8.2.1 07-Jun-2002  thorpej pullup-1-6 ticket #198:

basesrc/usr.sbin/mopd/common/common.h 1.6
basesrc/usr.sbin/mopd/common/file.c 1.9
basesrc/usr.sbin/mopd/common/file.h 1.5
basesrc/usr.sbin/mopd/mopa.out/mopa.out.c 1.9

Original log message:

Add Elf32 support to mopa.out (which is now quite inappropriately
named; a future commit will rename it).

Thanks to uwe@netbsd.org for testing the resulting MOP image for me.

Fixes port-vax/16867.
 1.10.40.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.17.8.1 02-Aug-2025  perseant Sync with HEAD
 1.6 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.5 06-Jun-2002  thorpej Add Elf32 support to mopa.out (which is now quite inappropriately
named; a future commit will rename it).

Thanks to uwe@netbsd.org for testing the resulting MOP image for me.

Fixes port-vax/16867.
 1.4 18-Feb-2002  thorpej branches: 1.4.2;
Add support for converting Elf32 images on-the-fly into MOP images.
(This involved some infrastructure changes to the various mopd
support programs/libraries.)
 1.3 16-Oct-1997  lukem - WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.4.2.1 07-Jun-2002  thorpej pullup-1-6 ticket #198:

basesrc/usr.sbin/mopd/common/common.h 1.6
basesrc/usr.sbin/mopd/common/file.c 1.9
basesrc/usr.sbin/mopd/common/file.h 1.5
basesrc/usr.sbin/mopd/mopa.out/mopa.out.c 1.9

Original log message:

Add Elf32 support to mopa.out (which is now quite inappropriately
named; a future commit will rename it).

Thanks to uwe@netbsd.org for testing the resulting MOP image for me.

Fixes port-vax/16867.
 1.8 03-Dec-2024  kalvisd usr.sbin/mopd: When building the vax-mopcopy host tool,
preferentially include "nbtool_config.h" over "port.h"

OK rin@
 1.7 08-Jun-2016  christos branches: 1.7.28;
Quick+Dirty port to linux
 1.6 17-Nov-2009  drochner ANSIfy, sprinkle "const"
 1.5 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.4 17-Apr-2009  lukem Fix WARNS=4 issues (many -Wshadow, -Wcast-qual)
 1.3 16-Oct-1997  lukem branches: 1.3.54;
- WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.3.54.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.7.28.1 02-Aug-2025  perseant Sync with HEAD
 1.6 30-Aug-2011  joerg ANSIfy + __printflike + __dead
 1.5 17-Nov-2009  drochner ANSIfy, sprinkle "const"
 1.4 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.3 16-Oct-1997  lukem - WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.5 03-Dec-2024  kalvisd usr.sbin/mopd: When building the vax-mopcopy host tool,
preferentially include "nbtool_config.h" over "port.h"

OK rin@
 1.4 08-Jun-2016  christos branches: 1.4.28;
Quick+Dirty port to linux
 1.3 27-Jul-2014  dholland Fix broken snprintf usage; noted in PR 47976 from Henning Petersen.
As a bonus, this removes the nonliteral format arguments.
 1.2 28-Apr-2008  martin branches: 1.2.26; 1.2.38;
Remove clause 3 and 4 from TNF licenses
 1.1 20-Apr-2003  christos branches: 1.1.30;
new logging files.
 1.1.30.1 18-May-2008  yamt sync with head.
 1.2.38.1 10-Aug-2014  tls Rebase.
 1.2.26.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.28.1 02-Aug-2025  perseant Sync with HEAD
 1.3 30-Aug-2011  joerg ANSIfy + __printflike + __dead
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 20-Apr-2003  christos branches: 1.1.30;
new logging files.
 1.1.30.1 18-May-2008  yamt sync with head.
 1.13 22-Apr-2020  joerg Let loop.c own iflist
 1.12 08-Jun-2016  christos Quick+Dirty port to linux
 1.11 30-Aug-2011  joerg ANSIfy + __printflike + __dead
 1.10 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.9 07-Oct-2006  elad PR/18906: roskens at elfin dot net: misc. select() to poll() updates.

Adapted to -current by myself, thanks for the patch!
 1.8 25-May-2006  christos Coverity CID 2524: Return error instead of trying to allocate random bytes
from the stack.
 1.7 20-Apr-2003  christos PR/3343: Jonathan Stone: Errors and warnings to stderr if interactive
 1.6 20-Sep-2002  mycroft select() -> poll()
 1.5 11-Jan-1999  kleink In userland, pull in <errno.h> instead of <sys/errno.h> for the declaration
of errno.
 1.4 03-Feb-1998  perry change #ifdef around include to fix compiler warning
 1.3 16-Oct-1997  lukem - WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.3 22-Apr-2020  joerg Let loop.c own iflist
 1.2 07-Dec-2019  christos Drop the advertising clause to match the other files.
 1.1 08-Jun-2016  christos branches: 1.1.16;
Quick+Dirty port to linux
 1.1.16.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.7 03-Dec-2024  kalvisd usr.sbin/mopd: When building the vax-mopcopy host tool,
preferentially include "nbtool_config.h" over "port.h"

OK rin@
 1.6 08-Jun-2016  christos branches: 1.6.28;
Quick+Dirty port to linux
 1.5 30-Aug-2011  joerg ANSIfy + __printflike + __dead
 1.4 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.3 16-Oct-1997  lukem - WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.6.28.1 02-Aug-2025  perseant Sync with HEAD
 1.4 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.3 16-Jan-2001  cgd comment or delete text after CPP directives.
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.8 03-Dec-2024  kalvisd usr.sbin/mopd: When building the vax-mopcopy host tool,
preferentially include "nbtool_config.h" over "port.h"

OK rin@
 1.7 08-Jun-2016  christos branches: 1.7.28;
Quick+Dirty port to linux
 1.6 30-Aug-2011  joerg ANSIfy + __printflike + __dead
 1.5 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.4 17-Apr-2009  lukem Fix WARNS=4 issues (many -Wshadow, -Wcast-qual)
 1.3 16-Oct-1997  lukem branches: 1.3.54;
- WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.3.54.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.7.28.1 02-Aug-2025  perseant Sync with HEAD
 1.7 30-Aug-2011  joerg ANSIfy + __printflike + __dead
 1.6 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.5 17-Apr-2009  lukem Fix WARNS=4 issues (many -Wshadow, -Wcast-qual)
 1.4 16-Jan-2001  cgd branches: 1.4.42;
comment or delete text after CPP directives.
 1.3 16-Oct-1997  lukem - WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.4.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.4 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.3 31-Dec-2001  thorpej Add comment delimiters around the token after an #endif
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.7 08-Jun-2016  christos Quick+Dirty port to linux
 1.6 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.5 18-Aug-2003  itojun SIOCGIFCONF -> getifaddrs conversion
 1.4 16-Jan-2001  cgd comment or delete text after CPP directives.
 1.3 16-Oct-1997  lukem - WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.2 27-Oct-2020  abs Fix Linux pfInit() parameter order for mopd

From dreamlayers
 1.1 08-Jun-2016  christos Quick+Dirty port to linux
 1.13 08-Jun-2016  christos Quick+Dirty port to linux
 1.12 17-Nov-2009  drochner ANSIfy, sprinkle "const"
 1.11 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.10 01-Dec-2004  christos Use cloning bpf.
 1.9 10-Apr-2004  darrenr With recent changes to BPF, pushing the default buffer size to 1MB, running
a bunch of small daemons that seem small packet flows can easily chew up
significant kernel memory (each BPF device opened takes 2*buffersize of
wired memory.) In each of these applications, add code to set the buffer
size to 32k before setting the interface.
 1.8 20-Apr-2003  christos branches: 1.8.2;
PR/3343: Jonathan Stone: Errors and warnings to stderr if interactive
 1.7 22-Aug-2002  itojun string manipulation fixes. from openbsd
 1.6 13-Jul-2002  itojun use snprintf. inspired by openbsd change
 1.5 24-May-1998  thorpej Display a more meaningful error message if the bpf open fails.
 1.4 16-Oct-1997  lukem - WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.3 25-Mar-1997  thorpej RCS id police.
 1.2 17-Mar-1997  veego s/if_ether.h/if_inarp.h/
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.8.2.1 21-Apr-2004  jmc Pullup rev 1.9 (requested by darrenr in ticket #167)

Reduce bpf buffer to 32k from 1M to reduce kernel memory usage from userland
binaries.
Fix bpf so that select will return for a timeout.
Fix the behaviour of BIOCIMMEDIATE.
In bpf_mtap(), optimise the calling of bpf_filter() and catchpacket()
based on whether or not the entire packet is in one mbuf.
Various other bpf fixes, including PR#8674, PR#12170
 1.7 30-Aug-2011  joerg ANSIfy + __printflike + __dead
 1.6 17-Nov-2009  drochner ANSIfy, sprinkle "const"
 1.5 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.4 16-Jan-2001  cgd comment or delete text after CPP directives.
 1.3 16-Oct-1997  lukem - WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.3 25-Nov-2024  gutteridge mopd/common/port.h: apply minor KNF
 1.2 25-Nov-2024  gutteridge mopd/common/port.h: fix vax tools build failure on recent Linux

This header provided a definition of strlcpy(3) that doesn't align
with the common/expected return type (char * here vs. size_t normally).
glibc 2.38 and later provide strlcpy(3), which causes this to break the
vax tools build on recent Linux distros like Fedora 40.

As an immediate fix, simply comment this out. This shouldn't be needed
on any Linux host tools build, as strlcpy(3) is provided by compat
anyway. Build tested on Fedora 40 and Debian 12 (which has glibc 2.36,
without the function).

(The getprogname(3) definition still seems to be needed on Fedora 40.)

Issue reported by Jan-Benedict Glaw.
 1.1 08-Jun-2016  christos branches: 1.1.28;
portability macros.
 1.1.28.1 02-Aug-2025  perseant Sync with HEAD
 1.10 21-Aug-2021  andvar fix mainly same typos as in my previous commit but outside sys/dev/dm.
 1.9 02-Aug-2021  andvar fix various typos in comments and log messages.
 1.8 08-Jun-2016  christos Quick+Dirty port to linux
 1.7 24-May-2011  joerg Kill redundant ()
 1.6 17-Nov-2009  drochner ANSIfy, sprinkle "const"
 1.5 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.4 17-Apr-2009  lukem Fix WARNS=4 issues (many -Wshadow, -Wcast-qual)
 1.3 16-Oct-1997  lukem branches: 1.3.54;
- WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.3.54.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.7 30-Aug-2011  joerg ANSIfy + __printflike + __dead
 1.6 17-Nov-2009  drochner ANSIfy, sprinkle "const"
 1.5 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.4 16-Jan-2001  cgd comment or delete text after CPP directives.
 1.3 16-Oct-1997  lukem - WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.8 08-Jun-2016  christos Quick+Dirty port to linux
 1.7 24-May-2011  joerg Kill redundant ()
 1.6 17-Nov-2009  drochner ANSIfy, sprinkle "const"
 1.5 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.4 17-Apr-2009  lukem Fix WARNS=4 issues (many -Wshadow, -Wcast-qual)
 1.3 16-Oct-1997  lukem branches: 1.3.54;
- WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.3.54.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.7 30-Aug-2011  joerg ANSIfy + __printflike + __dead
 1.6 17-Nov-2009  drochner ANSIfy, sprinkle "const"
 1.5 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.4 17-Apr-2009  lukem Fix WARNS=4 issues (many -Wshadow, -Wcast-qual)
 1.3 16-Oct-1997  lukem branches: 1.3.54;
- WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.3.54.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.8 08-Jun-2016  christos Quick+Dirty port to linux
 1.7 24-May-2011  joerg Kill redundant ()
 1.6 17-Nov-2009  drochner ANSIfy, sprinkle "const"
 1.5 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.4 17-Apr-2009  lukem Fix WARNS=4 issues (many -Wshadow, -Wcast-qual)
 1.3 16-Oct-1997  lukem branches: 1.3.54;
- WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.3.54.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.7 30-Aug-2011  joerg ANSIfy + __printflike + __dead
 1.6 17-Nov-2009  drochner ANSIfy, sprinkle "const"
 1.5 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.4 16-Jan-2001  cgd comment or delete text after CPP directives.
 1.3 16-Oct-1997  lukem - WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.2 25-Mar-1997  thorpej RCS id police.
 1.1 16-Mar-1997  cjs branches: 1.1.1;
Initial revision
 1.1.1.1 16-Mar-1997  cjs Import of Mats O Jansson's MOP boot program for DEC machines.
 1.2 08-Jun-2016  christos delete generated file
 1.1 08-Jun-2016  christos Quick+Dirty port to linux

RSS XML Feed