Home | History | Annotate | only in /src/usr.sbin/mopd
History log of /src/usr.sbin/mopd
RevisionDateAuthorComments
 1.6 06-Jun-2002  thorpej Rename mopa.out to mopcopy, since it handles more than a.out these days.
 1.5 09-Jan-2001  lukem branches: 1.5.2;
convert to using .WAIT
 1.4 17-Oct-1997  lukem fix race condition when building libcommon.a with make -j, use ../Makefile.inc
 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.5.2.1 07-Jun-2002  thorpej pullup-1-6 ticket #199:

basesrc/usr.sbin/mopd/Makefile 1.6
basesrc/usr.sbin/mopd/mopa.out/Makefile delete
basesrc/usr.sbin/mopd/mopa.out/mopa.out.1 delete
basesrc/usr.sbin/mopd/mopa.out/mopa.out.c delete
basesrc/usr.sbin/mopd/mopcopy/Makefile 1.1
basesrc/usr.sbin/mopd/mopcopy/mopcopy.1 1.1
basesrc/usr.sbin/mopd/mopcopy/mopcopy.c 1.1

Original log message:

Rename mopa.out to mopcopy, since it handles more than a.out these days.
 1.13 23-Oct-2024  kalvisd Add mopcopy as a build tool for the VAX port.

OK rin@
 1.12 31-Oct-2021  christos branches: 1.12.4;
Put the NOAOUT in one place
 1.11 30-May-2014  joerg No need for libkvm here.
 1.10 28-May-2007  tls branches: 1.10.40; 1.10.52;
Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
 1.9 07-Jan-2001  enami Use PRINTOBJDIR.
 1.8 25-Oct-1997  lukem use CPPFLAGS instead of CFLAGS
 1.7 18-Oct-1997  lukem branches: 1.7.2;
enable WARNS=1 by default, but disable in unclean 3rd party code
 1.6 17-Oct-1997  lukem fix race condition when building libcommon.a with make -j, use ../Makefile.inc
 1.5 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.4 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.3 17-Apr-1997  christos - Move common definitions to Makefile.inc
- Revert change common/os.h -> os.h. From Mats O Jansson.
 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.2.1 08-Nov-1997  lukem sync with trunk (approved by thorpej)
 1.10.52.1 10-Aug-2014  tls Rebase.
 1.10.40.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.12.4.1 02-Aug-2025  perseant Sync with HEAD
 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
 1.7 31-Oct-2021  christos Put the NOAOUT in one place
 1.6 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.5 17-Apr-1997  christos - Move common definitions to Makefile.inc
- Revert change common/os.h -> os.h. From Mats O Jansson.
 1.4 16-Apr-1997  christos Don't need to .PATH: .. or -I${.CURDIR}/common and -I${.CURDIR}; it will
actually break things in the future.
 1.3 25-Mar-1997  thorpej RCS id police.
 1.2 24-Mar-1997  christos Makefile cleanups
 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.1 08-Jun-2016  christos compile on linux
 1.11 18-Mar-2014  riastradh Merge riastradh-drm2 to HEAD.
 1.10 20-Jul-2013  wiz Use Mt for email addresses.
 1.9 20-Oct-2009  snj branches: 1.9.6; 1.9.12; 1.9.16;
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.8 11-Mar-2009  joerg Fix preamble
 1.7 07-Jun-2002  wiz branches: 1.7.40;
Xref mopcopy instead of mopa.out.
 1.6 19-Jan-2002  wiz branches: 1.6.2;
Sort sections, mark up AUTHORS section.
 1.5 08-Oct-1999  msaitoh s/ the the / the /
 1.4 30-Sep-1998  briggs branches: 1.4.4;
-v shows the version of the mopd suite, not of mopprobe, specifically.
 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.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.6.2.1 07-Jun-2002  thorpej pullup-1-6 ticket #204:

basesrc/usr.sbin/mopd/mopchk/mopchk.1 1.7

Original log message:

Xref mopcopy instead of mopa.out.
 1.7.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.9.16.1 23-Jul-2013  riastradh sync with HEAD
 1.9.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.9.6.1 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.16 28-May-2022  andvar fix various typos in comments, mainly origional->original,
extened->extended, incomming->incoming.
 1.15 22-Apr-2020  joerg loop.c owns iflist
 1.14 08-Jun-2016  christos compile on linux
 1.13 30-Aug-2011  joerg ANSIfy + __printflike + __dead
 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 20-Apr-2003  christos branches: 1.10.40;
interactive errors.
 1.9 18-Feb-2002  thorpej 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.8 19-Feb-2001  cgd convert to use getprogname()
 1.7 11-Jan-2001  lukem when calling openlog():
- don't use LOG_CONS
- use explicit name rather than __progname
 1.6 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.5 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.4 17-Apr-1997  christos - Move common definitions to Makefile.inc
- Revert change common/os.h -> os.h. From Mats O Jansson.
 1.3 16-Apr-1997  christos Don't include "os.h", include "common/os.h" like it does for the other
includes.
 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.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.3 31-Oct-2021  christos Put the NOAOUT in one place
 1.2 20-Aug-2009  he Use NOAOUT so that this builds without a.out support, and enable
that define if we're building for mips.
 1.1 06-Jun-2002  thorpej branches: 1.1.2;
Rename mopa.out to mopcopy, since it handles more than a.out these days.
 1.1.2.2 07-Jun-2002  thorpej pullup-1-6 ticket #199:

basesrc/usr.sbin/mopd/Makefile 1.6
basesrc/usr.sbin/mopd/mopa.out/Makefile delete
basesrc/usr.sbin/mopd/mopa.out/mopa.out.1 delete
basesrc/usr.sbin/mopd/mopa.out/mopa.out.c delete
basesrc/usr.sbin/mopd/mopcopy/Makefile 1.1
basesrc/usr.sbin/mopd/mopcopy/mopcopy.1 1.1
basesrc/usr.sbin/mopd/mopcopy/mopcopy.c 1.1

Original log message:

Rename mopa.out to mopcopy, since it handles more than a.out these days.
 1.1.2.1 06-Jun-2002  thorpej file Makefile was added on branch netbsd-1-6 on 2002-06-07 18:47:18 +0000
 1.1 08-Jun-2016  christos Port to linux
 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 11-Mar-2009  joerg Fix preamble
 1.2 07-Jun-2002  wiz branches: 1.2.2; 1.2.42;
Xref elf(5).
 1.1 06-Jun-2002  thorpej Rename mopa.out to mopcopy, since it handles more than a.out these days.
 1.2.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.2.2.3 07-Jun-2002  thorpej pullup-1-6 ticket #205:

basesrc/usr.sbin/mopd/mopcopy/mopcopy.1 1.2

Original log message:

Xref elf(5).
 1.2.2.2 07-Jun-2002  thorpej pullup-1-6 ticket #199:

basesrc/usr.sbin/mopd/Makefile 1.6
basesrc/usr.sbin/mopd/mopa.out/Makefile delete
basesrc/usr.sbin/mopd/mopa.out/mopa.out.1 delete
basesrc/usr.sbin/mopd/mopa.out/mopa.out.c delete
basesrc/usr.sbin/mopd/mopcopy/Makefile 1.1
basesrc/usr.sbin/mopd/mopcopy/mopcopy.1 1.1
basesrc/usr.sbin/mopd/mopcopy/mopcopy.c 1.1

Original log message:

Rename mopa.out to mopcopy, since it handles more than a.out these days.
 1.2.2.1 07-Jun-2002  thorpej file mopcopy.1 was added on branch netbsd-1-6 on 2002-06-07 18:47:18 +0000
 1.14 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.13 23-Oct-2024  kalvisd Add mopcopy as a build tool for the VAX port.

OK rin@
 1.12 24-May-2022  andvar branches: 1.12.4;
fix various typos in comments, docs and log messages.
 1.11 10-Apr-2022  andvar fix various typos in comments and output/log messages.
 1.10 13-Feb-2022  andvar s/mahine/machine/
 1.9 29-Oct-2020  martin Fix obvious copy&pasto
 1.8 27-Oct-2020  abs Update mopd for 4k VAX page size and support 1k page a.out binaries

From dreamlayers
 1.7 27-Dec-2019  msaitoh s/transfered/transferred/
 1.6 08-Jun-2016  christos branches: 1.6.16;
Port to linux
 1.5 30-Aug-2011  joerg ANSIfy + __printflike + __dead
 1.4 20-Aug-2009  he Use NOAOUT so that this builds without a.out support, and enable
that define if we're building for mips.
 1.3 05-Nov-2002  thorpej Make sure to fill in the load address in the dest. MOP header.
 1.2 05-Nov-2002  thorpej Show the load address in hex.
 1.1 06-Jun-2002  thorpej branches: 1.1.2;
Rename mopa.out to mopcopy, since it handles more than a.out these days.
 1.1.2.4 11-Dec-2002  he Pull up revision 1.3 (requested by thorpej in ticket #961):
Make sure to fill in the load address in the destination
MOP header.
 1.1.2.3 11-Dec-2002  he Pull up revision 1.2 (requested by thorpej in ticket #960):
Show the load address in hex.
 1.1.2.2 07-Jun-2002  thorpej pullup-1-6 ticket #199:

basesrc/usr.sbin/mopd/Makefile 1.6
basesrc/usr.sbin/mopd/mopa.out/Makefile delete
basesrc/usr.sbin/mopd/mopa.out/mopa.out.1 delete
basesrc/usr.sbin/mopd/mopa.out/mopa.out.c delete
basesrc/usr.sbin/mopd/mopcopy/Makefile 1.1
basesrc/usr.sbin/mopd/mopcopy/mopcopy.1 1.1
basesrc/usr.sbin/mopd/mopcopy/mopcopy.c 1.1

Original log message:

Rename mopa.out to mopcopy, since it handles more than a.out these days.
 1.1.2.1 06-Jun-2002  thorpej file mopcopy.c was added on branch netbsd-1-6 on 2002-06-07 18:47:18 +0000
 1.6.16.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.12.4.1 02-Aug-2025  perseant Sync with HEAD
 1.15 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.14 31-Oct-2021  christos Put the NOAOUT in one place
 1.13 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.12 10-Aug-2012  joerg branches: 1.12.32;
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.11 20-Jun-2011  mrg branches: 1.11.2;
remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
 1.10 29-Aug-2008  gmcgarry branches: 1.10.18;
Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.
 1.9 12-May-2006  mrg branches: 1.9.20;
use -Wno-pointer-sign with GCC4.
 1.8 06-Jun-1999  thorpej Use pidfile(3).
 1.7 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.6 17-Apr-1997  christos - Move common definitions to Makefile.inc
- Revert change common/os.h -> os.h. From Mats O Jansson.
 1.5 16-Apr-1997  christos Tyop oplice.
 1.4 16-Apr-1997  christos Don't need to .PATH: .. or -I${.CURDIR}/common and -I${.CURDIR}; it will
actually break things in the future.
 1.3 25-Mar-1997  thorpej RCS id police.
 1.2 24-Mar-1997  christos Makefile cleanups
 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.20.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.10.18.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.11.2.1 30-Oct-2012  yamt sync with head
 1.12.32.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.17 26-Nov-2024  gutteridge mopd.8: fix some grammar and style
 1.16 18-Mar-2014  riastradh branches: 1.16.38;
Merge riastradh-drm2 to HEAD.
 1.15 20-Jul-2013  wiz Use Mt for email addresses.
 1.14 20-Oct-2009  snj branches: 1.14.6; 1.14.12; 1.14.16;
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.13 04-Oct-2009  joerg Fix markup. Handle the DECnet documentation like a journal.
 1.12 11-Mar-2009  joerg Fix preamble
 1.11 23-Apr-2004  simonb branches: 1.11.34;
s/the the/the/ (only in sources that aren't regularly imported from
elsewhere).
 1.10 23-Jan-2004  wiz Remove trailing whitespace.
 1.9 23-Jan-2004  fair Commit patch from PR 22539 to document adding ".SYS" to filenames.
New sentence, new line. Change date. Expand "MOP" as Maintenance
Operations Protocol for permuted index.
 1.8 05-Nov-2002  thorpej Allow more than one interface to be specified on the command line.
 1.7 19-Jul-2002  wiz Fix a typo.
 1.6 19-Jul-2002  mrg add a "-s <mopdir>" argument to mopd so that it doesn't require one place
files in /tftpboot/mop.
 1.5 07-Jun-2002  wiz Xref mopcopy instead of mopa.out. Mark up AUTHORS section.
 1.4 19-Jan-2002  wiz branches: 1.4.2;
Whitespace nits, sort SEE ALSO.
 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.2 11-Dec-2002  he Pull up revision 1.8 (requested by thorpej in ticket #965):
Allow more than one interface to be specified on the command
line.
 1.4.2.1 07-Jun-2002  thorpej pullup-1-6 ticket #206:

basesrc/usr.sbin/mopd/mopd/mopd.8 1.5
basesrc/usr.sbin/mopd/mopprobe/mopprobe.1 1.5
basesrc/usr.sbin/mopd/moptrace/moptrace.1 1.7

Orignal log message:

Xref mopcopy instead of mopa.out. Mark up AUTHORS section.
 1.11.34.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.14.16.1 23-Jul-2013  riastradh sync with HEAD
 1.14.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.14.6.1 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.16.38.1 02-Aug-2025  perseant Sync with HEAD
 1.17 28-May-2022  andvar fix various typos in comments, mainly origional->original,
extened->extended, incomming->incoming.
 1.16 22-Apr-2020  joerg loop.c owns iflist
 1.15 08-Jun-2016  christos Quick+Dirty port to linux
 1.14 30-Aug-2011  joerg ANSIfy + __printflike + __dead
 1.13 17-Nov-2009  drochner ANSIfy, sprinkle "const"
 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;
Allow more than one interface to be specified on the command line.
 1.9 19-Jul-2002  mrg add a "-s <mopdir>" argument to mopd so that it doesn't require one place
files in /tftpboot/mop.
 1.8 19-Feb-2001  cgd branches: 1.8.2;
convert to use getprogname()
 1.7 11-Jan-2001  lukem when calling openlog():
- don't use LOG_CONS
- use explicit name rather than __progname
 1.6 06-Jun-1999  thorpej Use pidfile(3).
 1.5 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.4 17-Apr-1997  christos - Move common definitions to Makefile.inc
- Revert change common/os.h -> os.h. From Mats O Jansson.
 1.3 16-Apr-1997  christos Don't include "os.h", include "common/os.h" like it does for the other
includes.
 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.1 11-Dec-2002  he Pull up revision 1.10 (via patch, requested by thorpej in ticket #965):
Allow more than one interface to be specified on the command
line.
 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.21 08-Jun-2016  christos Quick+Dirty port to linux
 1.20 18-Oct-2014  snj src is too big these days to tolerate superfluous apostrophes. It's
"its", people!
 1.19 19-Oct-2013  christos fix unused variable warnings.
 1.18 24-May-2011  joerg branches: 1.18.4; 1.18.10;
Kill redundant ()
 1.17 17-Nov-2009  drochner ANSIfy, sprinkle "const"
 1.16 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.15 17-Apr-2009  lukem Fix WARNS=4 issues (many -Wshadow, -Wcast-qual)
 1.14 12-May-2006  mrg branches: 1.14.28;
remove a couple of extra externs
 1.13 19-Jul-2002  mrg add a "-s <mopdir>" argument to mopd so that it doesn't require one place
files in /tftpboot/mop.
 1.12 13-Jul-2002  itojun use snprintf. inspired by openbsd change
 1.11 18-Feb-2002  thorpej 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.10 19-Nov-2000  bouyer Fix bin/11253: seg-fault in mopd
Once we found the correct slot, make sure dle points to it. dle was left
pointing out of the array by the for(;;) loop.
Fix from Ken Wellsch <kwellsch@tampabay.rr.com>
 1.9 11-Aug-2000  matt A little cleanup. Deal with lost packets
 1.8 21-Jul-2000  mjl Increase buffer size to maximum allowed by spec (filename may be
up to 128 chars long).
Ignore filenames longer than this.
Use syslog with %s as format, just in case.
The above changes come from OpenBSD.

Also use #define instead of magic constants.
 1.7 27-Jun-2000  ragge Need special tweaking for VAX8200 etc...
 1.6 10-Jan-2000  abs branches: 1.6.4;
fix bug that caused first load to fail - from jkunz@unixag-kl.fh-kl.de
 1.5 16-Oct-1997  lukem branches: 1.5.4;
- WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
 1.4 17-Apr-1997  christos - Move common definitions to Makefile.inc
- Revert change common/os.h -> os.h. From Mats O Jansson.
 1.3 16-Apr-1997  christos Don't include "os.h", include "common/os.h" like it does for the other
includes.
 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.4.3 04-Oct-2000  he Pull up revisions 1.8-1.9 (requested by sommerfeld):
Close buffer overrun, format string problems.
 1.5.4.2 29-Jun-2000  he Pull up revision 1.6 (requested by ragge):
Fix bug which caused first load to fail.
 1.5.4.1 28-Jun-2000  he Pull up revision 1.7 (requested by ragge):
Allow "big" VAXes to be mop-booted.
 1.6.4.4 15-Dec-2000  he Pull up revision 1.10 (requested by bouyer):
Make sure dle points to the correct slot. Fixes PR#11253.
 1.6.4.3 30-Sep-2000  sommerfeld Pull up 1.9: "A little cleanup. Deal with lost packets"
approved by jhawk
 1.6.4.2 27-Jul-2000  mjl Pull up 1.8, approved by thorpej, jhawk:
Increase buffer size to maximum allowed by spec (filename may be
up to 128 chars long).
Ignore filenames longer than this.
 1.6.4.1 28-Jun-2000  ragge Pull up revision 1.7 (requested by ragge):
Tweak to allow "big" VAXen to net-boot.
 1.14.28.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.18.10.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.18.4.1 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.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.11 31-Oct-2021  christos Put the NOAOUT in one place
 1.10 10-Aug-2012  joerg 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.9 20-Jun-2011  mrg branches: 1.9.2;
remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
 1.8 29-Aug-2008  gmcgarry branches: 1.8.18;
Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.
 1.7 12-May-2006  mrg branches: 1.7.20;
use -Wno-pointer-sign with GCC4.
 1.6 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.5 17-Apr-1997  christos - Move common definitions to Makefile.inc
- Revert change common/os.h -> os.h. From Mats O Jansson.
 1.4 16-Apr-1997  christos Don't need to .PATH: .. or -I${.CURDIR}/common and -I${.CURDIR}; it will
actually break things in the future.
 1.3 25-Mar-1997  thorpej RCS id police.
 1.2 24-Mar-1997  christos Makefile cleanups
 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.20.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.8.18.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.9.2.1 30-Oct-2012  yamt sync with head
 1.1 08-Jun-2016  christos port to linux
 1.11 04-May-2025  rillig mopprobe: remove undocumented and unimplemented options
 1.10 18-Mar-2014  riastradh branches: 1.10.38;
Merge riastradh-drm2 to HEAD.
 1.9 20-Jul-2013  wiz Use Mt for email addresses.
 1.8 20-Oct-2009  snj branches: 1.8.6; 1.8.12; 1.8.16;
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.7 11-Mar-2009  joerg Fix preamble
 1.6 25-Feb-2003  wiz branches: 1.6.40;
.Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.5 07-Jun-2002  wiz Xref mopcopy instead of mopa.out. Mark up AUTHORS section.
 1.4 05-Apr-2001  wiz branches: 1.4.2;
moptrace(1), not (8). Whitespace fixes.
 1.3 16-Oct-1997  lukem branches: 1.3.12;
- 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.12.1 26-Apr-2001  he Pull up revision 1.4 (requested by wiz):
Correct moptrace(1) reference, and whitespace fixes.
 1.4.2.1 07-Jun-2002  thorpej pullup-1-6 ticket #206:

basesrc/usr.sbin/mopd/mopd/mopd.8 1.5
basesrc/usr.sbin/mopd/mopprobe/mopprobe.1 1.5
basesrc/usr.sbin/mopd/moptrace/moptrace.1 1.7

Orignal log message:

Xref mopcopy instead of mopa.out. Mark up AUTHORS section.
 1.6.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.8.16.1 23-Jul-2013  riastradh sync with HEAD
 1.8.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.8.6.1 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.10.38.1 02-Aug-2025  perseant Sync with HEAD
 1.17 04-May-2025  rillig mopprobe: remove undocumented and unimplemented options
 1.16 04-May-2025  rillig mopprobe: remove no-op code

The variable 'device' was only ever assigned but never read.

No binary change.
 1.15 28-May-2022  andvar branches: 1.15.4;
fix various typos in comments, mainly origional->original,
extened->extended, incomming->incoming.
 1.14 22-Apr-2020  joerg loop.c owns iflist
 1.13 08-Jun-2016  christos port to linux
 1.12 19-Oct-2013  christos fix unused variable warnings.
 1.11 30-Aug-2011  joerg branches: 1.11.2; 1.11.8;
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 17-Apr-2009  lukem Fix WARNS=4 issues (many -Wshadow, -Wcast-qual)
 1.8 20-Apr-2003  christos branches: 1.8.40;
interactive error output.
 1.7 19-Feb-2001  cgd convert to use getprogname()
 1.6 11-Jan-2001  lukem when calling openlog():
- don't use LOG_CONS
- use explicit name rather than __progname
 1.5 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.4 17-Apr-1997  christos - Move common definitions to Makefile.inc
- Revert change common/os.h -> os.h. From Mats O Jansson.
 1.3 16-Apr-1997  christos Don't include "os.h", include "common/os.h" like it does for the other
includes.
 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.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.11.8.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.11.2.1 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.15.4.1 02-Aug-2025  perseant Sync with HEAD
 1.7 31-Oct-2021  christos Put the NOAOUT in one place
 1.6 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.5 17-Apr-1997  christos - Move common definitions to Makefile.inc
- Revert change common/os.h -> os.h. From Mats O Jansson.
 1.4 16-Apr-1997  christos Don't need to .PATH: .. or -I${.CURDIR}/common and -I${.CURDIR}; it will
actually break things in the future.
 1.3 25-Mar-1997  thorpej RCS id police.
 1.2 24-Mar-1997  christos Makefile cleanups
 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.1 08-Jun-2016  christos Port to linux
 1.13 18-Mar-2014  riastradh Merge riastradh-drm2 to HEAD.
 1.12 20-Jul-2013  wiz Use Mt for email addresses.
 1.11 20-Oct-2009  snj branches: 1.11.6; 1.11.12; 1.11.16;
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 04-Oct-2009  joerg Fix markup. Handle the DECnet documentation like a journal.
 1.9 11-Mar-2009  joerg Fix preamble
 1.8 25-Feb-2003  wiz branches: 1.8.40;
.Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.7 07-Jun-2002  wiz Xref mopcopy instead of mopa.out. Mark up AUTHORS section.
 1.6 19-Jan-2002  wiz branches: 1.6.2;
Whitespace nits, sort SEE ALSO.
 1.5 30-Sep-1998  briggs s/contence/contents/
 1.4 18-Oct-1997  lukem rcsid fascism
 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.2.1 07-Jun-2002  thorpej pullup-1-6 ticket #206:

basesrc/usr.sbin/mopd/mopd/mopd.8 1.5
basesrc/usr.sbin/mopd/mopprobe/mopprobe.1 1.5
basesrc/usr.sbin/mopd/moptrace/moptrace.1 1.7

Orignal log message:

Xref mopcopy instead of mopa.out. Mark up AUTHORS section.
 1.8.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.11.16.1 23-Jul-2013  riastradh sync with HEAD
 1.11.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.11.6.1 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.13 22-Apr-2020  joerg loop.c owns iflist
 1.12 08-Jun-2016  christos 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 20-Apr-2003  christos interactive errors.
 1.8 20-Apr-2003  christos Interactive logs
 1.7 19-Feb-2001  cgd convert to use getprogname()
 1.6 11-Jan-2001  lukem when calling openlog():
- don't use LOG_CONS
- use explicit name rather than __progname
 1.5 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.4 17-Apr-1997  christos - Move common definitions to Makefile.inc
- Revert change common/os.h -> os.h. From Mats O Jansson.
 1.3 16-Apr-1997  christos Don't include "os.h", include "common/os.h" like it does for the other
includes.
 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.

RSS XML Feed