History log of /openbsd-current/usr.sbin/mopd/mopchk/mopchk.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.21 06-Sep-2023 jsg

use ansi function decls


Revision tags: OPENBSD_7_3_BASE
# 1.20 08-Mar-2023 guenther

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@


Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.19 24-Oct-2021 deraadt

For open/openat, if the flags parameter does not contain O_CREAT, the
3rd (variadic) mode_t parameter is irrelevant. Many developers in the past
have passed mode_t (0, 044, 0644, or such), which might lead future people
to copy this broken idiom, and perhaps even believe this parameter has some
meaning or implication or application. Delete them all.
This comes out of a conversation where tb@ noticed that a strange (but
intentional) pledge behaviour is to always knock-out high-bits from
mode_t on a number of system calls as a safety factor, and his bewilderment
that this appeared to be happening against valid modes (at least visually),
but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef.
ok millert


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.18 09-Feb-2015 deraadt

clean up flags++ instances around getopt()
ok florian


# 1.17 13-Dec-2014 miod

Give the mop suite the ability to process alpha Elf64 files and create mop
alpha images of them.


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.16 05-Jul-2013 miod

Teach mopd and mopa.out about ELF files, and allow forthcoming VAX ELF boot
blocks to be converted to working mop binaries. From NetBSD.


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.15 01-May-2010 mk

incomming -> incoming

The ones found in gnu/ left out by intention.

ok jmc


Revision tags: OPENBSD_4_7_BASE
# 1.14 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


# 1.13 11-Jul-2009 sobrado

synchronize the synopsis and usage of mopa.out(1); mopchk(1) can handle
more than one filename at a time; add a description for -3 and -4
in mopd(8), and document -v; remove a duplicate flag in mopprobe(1);
use a better style for synopses; sort flags and arguments.

written with help by jmc@

ok jmc@


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.12 29-Apr-2006 maja

Change the compile time option -DINFO into a runtime option to get ride
of some lint warnings. -moj


# 1.11 17-Apr-2006 maja

Only show a interface once. Some cleanup and silence lint. -moj


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.10 01-Dec-2003 avsm

-Wall cleanup: trim unused vars, right format strings, constify rcsids,
braces where needed, add missing prototypes.

tested and ok maja@


Revision tags: OPENBSD_3_4_BASE
# 1.9 02-Jun-2003 maja

remove clause 3 and 4. -moj


# 1.8 19-Apr-2003 avsm

format string typo in usage (%d -> %s for program name)


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.7 10-Jun-2002 maja

Remove NO__P since __P has been removed. Found by hin@ -moj


Revision tags: OPENBSD_3_1_BASE
# 1.6 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


# 1.5 16-Nov-2001 miod

Close comment.


Revision tags: MOPD254 OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.4 04-Mar-1998 deraadt

Wall


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE
# 1.3 15-Jan-1997 millert

getopt(3) returns -1 when out of args, not EOF, whee!


Revision tags: OPENBSD_2_0_BASE
# 1.2 21-Sep-1996 maja

Replace $Id with $OpenBSD, 3:rd try. -moj


# 1.1 21-Sep-1996 maja

branches: 1.1.1;
Initial revision


# 1.20 08-Mar-2023 guenther

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@


Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.19 24-Oct-2021 deraadt

For open/openat, if the flags parameter does not contain O_CREAT, the
3rd (variadic) mode_t parameter is irrelevant. Many developers in the past
have passed mode_t (0, 044, 0644, or such), which might lead future people
to copy this broken idiom, and perhaps even believe this parameter has some
meaning or implication or application. Delete them all.
This comes out of a conversation where tb@ noticed that a strange (but
intentional) pledge behaviour is to always knock-out high-bits from
mode_t on a number of system calls as a safety factor, and his bewilderment
that this appeared to be happening against valid modes (at least visually),
but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef.
ok millert


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.18 09-Feb-2015 deraadt

clean up flags++ instances around getopt()
ok florian


# 1.17 13-Dec-2014 miod

Give the mop suite the ability to process alpha Elf64 files and create mop
alpha images of them.


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.16 05-Jul-2013 miod

Teach mopd and mopa.out about ELF files, and allow forthcoming VAX ELF boot
blocks to be converted to working mop binaries. From NetBSD.


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.15 01-May-2010 mk

incomming -> incoming

The ones found in gnu/ left out by intention.

ok jmc


Revision tags: OPENBSD_4_7_BASE
# 1.14 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


# 1.13 11-Jul-2009 sobrado

synchronize the synopsis and usage of mopa.out(1); mopchk(1) can handle
more than one filename at a time; add a description for -3 and -4
in mopd(8), and document -v; remove a duplicate flag in mopprobe(1);
use a better style for synopses; sort flags and arguments.

written with help by jmc@

ok jmc@


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.12 29-Apr-2006 maja

Change the compile time option -DINFO into a runtime option to get ride
of some lint warnings. -moj


# 1.11 17-Apr-2006 maja

Only show a interface once. Some cleanup and silence lint. -moj


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.10 01-Dec-2003 avsm

-Wall cleanup: trim unused vars, right format strings, constify rcsids,
braces where needed, add missing prototypes.

tested and ok maja@


Revision tags: OPENBSD_3_4_BASE
# 1.9 02-Jun-2003 maja

remove clause 3 and 4. -moj


# 1.8 19-Apr-2003 avsm

format string typo in usage (%d -> %s for program name)


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.7 10-Jun-2002 maja

Remove NO__P since __P has been removed. Found by hin@ -moj


Revision tags: OPENBSD_3_1_BASE
# 1.6 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


# 1.5 16-Nov-2001 miod

Close comment.


Revision tags: MOPD254 OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.4 04-Mar-1998 deraadt

Wall


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE
# 1.3 15-Jan-1997 millert

getopt(3) returns -1 when out of args, not EOF, whee!


Revision tags: OPENBSD_2_0_BASE
# 1.2 21-Sep-1996 maja

Replace $Id with $OpenBSD, 3:rd try. -moj


# 1.1 21-Sep-1996 maja

branches: 1.1.1;
Initial revision


# 1.19 24-Oct-2021 deraadt

For open/openat, if the flags parameter does not contain O_CREAT, the
3rd (variadic) mode_t parameter is irrelevant. Many developers in the past
have passed mode_t (0, 044, 0644, or such), which might lead future people
to copy this broken idiom, and perhaps even believe this parameter has some
meaning or implication or application. Delete them all.
This comes out of a conversation where tb@ noticed that a strange (but
intentional) pledge behaviour is to always knock-out high-bits from
mode_t on a number of system calls as a safety factor, and his bewilderment
that this appeared to be happening against valid modes (at least visually),
but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef.
ok millert


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.18 09-Feb-2015 deraadt

clean up flags++ instances around getopt()
ok florian


# 1.17 13-Dec-2014 miod

Give the mop suite the ability to process alpha Elf64 files and create mop
alpha images of them.


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.16 05-Jul-2013 miod

Teach mopd and mopa.out about ELF files, and allow forthcoming VAX ELF boot
blocks to be converted to working mop binaries. From NetBSD.


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.15 01-May-2010 mk

incomming -> incoming

The ones found in gnu/ left out by intention.

ok jmc


Revision tags: OPENBSD_4_7_BASE
# 1.14 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


# 1.13 11-Jul-2009 sobrado

synchronize the synopsis and usage of mopa.out(1); mopchk(1) can handle
more than one filename at a time; add a description for -3 and -4
in mopd(8), and document -v; remove a duplicate flag in mopprobe(1);
use a better style for synopses; sort flags and arguments.

written with help by jmc@

ok jmc@


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.12 29-Apr-2006 maja

Change the compile time option -DINFO into a runtime option to get ride
of some lint warnings. -moj


# 1.11 17-Apr-2006 maja

Only show a interface once. Some cleanup and silence lint. -moj


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.10 01-Dec-2003 avsm

-Wall cleanup: trim unused vars, right format strings, constify rcsids,
braces where needed, add missing prototypes.

tested and ok maja@


Revision tags: OPENBSD_3_4_BASE
# 1.9 02-Jun-2003 maja

remove clause 3 and 4. -moj


# 1.8 19-Apr-2003 avsm

format string typo in usage (%d -> %s for program name)


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.7 10-Jun-2002 maja

Remove NO__P since __P has been removed. Found by hin@ -moj


Revision tags: OPENBSD_3_1_BASE
# 1.6 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


# 1.5 16-Nov-2001 miod

Close comment.


Revision tags: MOPD254 OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.4 04-Mar-1998 deraadt

Wall


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE
# 1.3 15-Jan-1997 millert

getopt(3) returns -1 when out of args, not EOF, whee!


Revision tags: OPENBSD_2_0_BASE
# 1.2 21-Sep-1996 maja

Replace $Id with $OpenBSD, 3:rd try. -moj


# 1.1 21-Sep-1996 maja

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.18 09-Feb-2015 deraadt

clean up flags++ instances around getopt()
ok florian


# 1.17 13-Dec-2014 miod

Give the mop suite the ability to process alpha Elf64 files and create mop
alpha images of them.


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.16 05-Jul-2013 miod

Teach mopd and mopa.out about ELF files, and allow forthcoming VAX ELF boot
blocks to be converted to working mop binaries. From NetBSD.


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.15 01-May-2010 mk

incomming -> incoming

The ones found in gnu/ left out by intention.

ok jmc


Revision tags: OPENBSD_4_7_BASE
# 1.14 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


# 1.13 11-Jul-2009 sobrado

synchronize the synopsis and usage of mopa.out(1); mopchk(1) can handle
more than one filename at a time; add a description for -3 and -4
in mopd(8), and document -v; remove a duplicate flag in mopprobe(1);
use a better style for synopses; sort flags and arguments.

written with help by jmc@

ok jmc@


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.12 29-Apr-2006 maja

Change the compile time option -DINFO into a runtime option to get ride
of some lint warnings. -moj


# 1.11 17-Apr-2006 maja

Only show a interface once. Some cleanup and silence lint. -moj


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.10 01-Dec-2003 avsm

-Wall cleanup: trim unused vars, right format strings, constify rcsids,
braces where needed, add missing prototypes.

tested and ok maja@


Revision tags: OPENBSD_3_4_BASE
# 1.9 02-Jun-2003 maja

remove clause 3 and 4. -moj


# 1.8 19-Apr-2003 avsm

format string typo in usage (%d -> %s for program name)


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.7 10-Jun-2002 maja

Remove NO__P since __P has been removed. Found by hin@ -moj


Revision tags: OPENBSD_3_1_BASE
# 1.6 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


# 1.5 16-Nov-2001 miod

Close comment.


Revision tags: MOPD254 OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.4 04-Mar-1998 deraadt

Wall


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE
# 1.3 15-Jan-1997 millert

getopt(3) returns -1 when out of args, not EOF, whee!


Revision tags: OPENBSD_2_0_BASE
# 1.2 21-Sep-1996 maja

Replace $Id with $OpenBSD, 3:rd try. -moj


# 1.1 21-Sep-1996 maja

branches: 1.1.1;
Initial revision