#
1.33 |
|
04-Dec-2022 |
cheloha |
userspace: remove vestigial '?' cases from top-level getopt(3) loops
getopt(3) returns '?' when it encounters a flag not present in the in the optstring or if a flag is missing its option argument. We can handle this case with the "default" failure case with no loss of legibility. Hence, remove all the redundant "case '?':" lines.
Prompted by dlg@. With help from dlg@ and millert@.
Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2
ok naddy@ millert@ dlg@
|
Revision tags: OPENBSD_7_2_BASE
|
#
1.32 |
|
03-Aug-2022 |
cheloha |
dmesg(8): don't accept positional arguments
dmesg(8) doesn't use any positional arguments. If we see any, it's a usage error.
ok florian@, "Sure" deraadt@ millert@
|
Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
|
#
1.31 |
|
24-Dec-2019 |
bluhm |
dmesg(8) allocated a bit too much memory due to padding of struct msgbuf. Use the same size algorithm in kernel and userland. OK cheloha@ guenther@ deraadt@
|
Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
|
#
1.30 |
|
15-May-2018 |
cheloha |
drop unused <time.h>
ok kn@ mpi@
|
Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
|
#
1.29 |
|
01-Sep-2017 |
tom |
free() the memory we allocate in dmesg.c. While this memory would be released on process exit, otto@ points out that various checks happen on free(), so this helps detect memory management errors.
Based on a diff from Nan Xiao - thanks.
ok otto@
|
#
1.28 |
|
26-Aug-2017 |
tom |
Be more precise in the messages given by err() after calling sysctl() in dmesg.c.
Based on a diff from xiao_nan (at) dsi (dot) a-star (dot) edu (dot) sg - thanks.
ok otto@
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
|
#
1.27 |
|
09-Oct-2015 |
deraadt |
Change all tame callers to namechange to pledge(2).
|
#
1.26 |
|
04-Oct-2015 |
deraadt |
dmesg has two modes. The normal sysctl mode, and the -M/-N kvm searcher. In both cases once the relevant setup is done, it can drop to tame "stdio".
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.25 |
|
16-Jan-2015 |
deraadt |
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
|
#
1.24 |
|
13-Jan-2015 |
mpf |
Add dmesg -s support, to view the output of rc(8) system startup messages. Help and feedback by Theo and Miod. OK deraadt@, manpage-ok jmc@
|
Revision tags: OPENBSD_5_6_BASE
|
#
1.23 |
|
22-Apr-2014 |
tedu |
malloc/memset -> calloc. from peter malone
|
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 OPENBSD_5_4_BASE OPENBSD_5_5_BASE
|
#
1.22 |
|
02-Jul-2010 |
deraadt |
some data structures were still present when NOKVM was defined
|
Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
|
#
1.21 |
|
17-Oct-2008 |
deraadt |
init bufdata to NULL for when compiled without KVM support
|
Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
|
#
1.20 |
|
24-Dec-2006 |
djm |
zap incorrect comment
|
Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
|
#
1.19 |
|
28-Apr-2005 |
henning |
tiny doses of KNF, inspired by a diff for sth else from Brian <bwaichu@yahoo.com>
|
#
1.18 |
|
14-Apr-2005 |
henning |
shave off a few bytes, alpha floppies fit again now
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
|
#
1.17 |
|
02-Jun-2003 |
millert |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
|
#
1.16 |
|
03-Jul-2002 |
deraadt |
ansi
|
Revision tags: OPENBSD_3_1_BASE
|
#
1.15 |
|
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.14 |
|
05-Nov-2001 |
mpech |
kill more registers;
millert@ ok
|
Revision tags: OPENBSD_3_0_BASE
|
#
1.13 |
|
07-Jul-2001 |
deraadt |
major -Wall cleanup, almost complete
|
#
1.12 |
|
07-Jul-2001 |
millert |
#include <string.h> for memset() proto
|
#
1.11 |
|
22-Jun-2001 |
deraadt |
smaller dmesg
|
#
1.10 |
|
22-Jun-2001 |
mickey |
use sysctl to retreive msgbuf out of live system, keep the kvm iface, remove sgid
|
#
1.9 |
|
04-Jun-2001 |
mickey |
return from main() don't exit
|
Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE
|
#
1.8 |
|
22-Feb-2000 |
deraadt |
enlarge msgbuf, somewhat line netbsd did
|
Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
|
#
1.7 |
|
08-Jul-1998 |
deraadt |
whack kmem gid after kvm_openfiles()
|
#
1.6 |
|
05-Jul-1998 |
deraadt |
split KREAD() calls
|
Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE
|
#
1.5 |
|
29-Mar-1997 |
tholo |
Avoid infinite loops; from NetBSD PR 3285
|
#
1.4 |
|
15-Jan-1997 |
millert |
getopt(3) returns -1 when out of args, not EOF, whee!
|
#
1.3 |
|
22-Dec-1996 |
deraadt |
Deal with _POSIX_SAVED_IDS when relinquishing privileges
|
Revision tags: OPENBSD_2_0_BASE
|
#
1.2 |
|
23-Jun-1996 |
deraadt |
update rcsid
|
#
1.1 |
|
18-Oct-1995 |
deraadt |
branches: 1.1.1; Initial revision
|
#
1.32 |
|
03-Aug-2022 |
cheloha |
dmesg(8): don't accept positional arguments
dmesg(8) doesn't use any positional arguments. If we see any, it's a usage error.
ok florian@, "Sure" deraadt@ millert@
|
Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
|
#
1.31 |
|
24-Dec-2019 |
bluhm |
dmesg(8) allocated a bit too much memory due to padding of struct msgbuf. Use the same size algorithm in kernel and userland. OK cheloha@ guenther@ deraadt@
|
Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
|
#
1.30 |
|
15-May-2018 |
cheloha |
drop unused <time.h>
ok kn@ mpi@
|
Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
|
#
1.29 |
|
01-Sep-2017 |
tom |
free() the memory we allocate in dmesg.c. While this memory would be released on process exit, otto@ points out that various checks happen on free(), so this helps detect memory management errors.
Based on a diff from Nan Xiao - thanks.
ok otto@
|
#
1.28 |
|
26-Aug-2017 |
tom |
Be more precise in the messages given by err() after calling sysctl() in dmesg.c.
Based on a diff from xiao_nan (at) dsi (dot) a-star (dot) edu (dot) sg - thanks.
ok otto@
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
|
#
1.27 |
|
09-Oct-2015 |
deraadt |
Change all tame callers to namechange to pledge(2).
|
#
1.26 |
|
04-Oct-2015 |
deraadt |
dmesg has two modes. The normal sysctl mode, and the -M/-N kvm searcher. In both cases once the relevant setup is done, it can drop to tame "stdio".
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.25 |
|
16-Jan-2015 |
deraadt |
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
|
#
1.24 |
|
13-Jan-2015 |
mpf |
Add dmesg -s support, to view the output of rc(8) system startup messages. Help and feedback by Theo and Miod. OK deraadt@, manpage-ok jmc@
|
Revision tags: OPENBSD_5_6_BASE
|
#
1.23 |
|
22-Apr-2014 |
tedu |
malloc/memset -> calloc. from peter malone
|
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 OPENBSD_5_4_BASE OPENBSD_5_5_BASE
|
#
1.22 |
|
02-Jul-2010 |
deraadt |
some data structures were still present when NOKVM was defined
|
Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
|
#
1.21 |
|
17-Oct-2008 |
deraadt |
init bufdata to NULL for when compiled without KVM support
|
Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
|
#
1.20 |
|
24-Dec-2006 |
djm |
zap incorrect comment
|
Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
|
#
1.19 |
|
28-Apr-2005 |
henning |
tiny doses of KNF, inspired by a diff for sth else from Brian <bwaichu@yahoo.com>
|
#
1.18 |
|
14-Apr-2005 |
henning |
shave off a few bytes, alpha floppies fit again now
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
|
#
1.17 |
|
02-Jun-2003 |
millert |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
|
#
1.16 |
|
03-Jul-2002 |
deraadt |
ansi
|
Revision tags: OPENBSD_3_1_BASE
|
#
1.15 |
|
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.14 |
|
05-Nov-2001 |
mpech |
kill more registers;
millert@ ok
|
Revision tags: OPENBSD_3_0_BASE
|
#
1.13 |
|
07-Jul-2001 |
deraadt |
major -Wall cleanup, almost complete
|
#
1.12 |
|
07-Jul-2001 |
millert |
#include <string.h> for memset() proto
|
#
1.11 |
|
22-Jun-2001 |
deraadt |
smaller dmesg
|
#
1.10 |
|
22-Jun-2001 |
mickey |
use sysctl to retreive msgbuf out of live system, keep the kvm iface, remove sgid
|
#
1.9 |
|
04-Jun-2001 |
mickey |
return from main() don't exit
|
Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE
|
#
1.8 |
|
22-Feb-2000 |
deraadt |
enlarge msgbuf, somewhat line netbsd did
|
Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
|
#
1.7 |
|
08-Jul-1998 |
deraadt |
whack kmem gid after kvm_openfiles()
|
#
1.6 |
|
05-Jul-1998 |
deraadt |
split KREAD() calls
|
Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE
|
#
1.5 |
|
29-Mar-1997 |
tholo |
Avoid infinite loops; from NetBSD PR 3285
|
#
1.4 |
|
15-Jan-1997 |
millert |
getopt(3) returns -1 when out of args, not EOF, whee!
|
#
1.3 |
|
22-Dec-1996 |
deraadt |
Deal with _POSIX_SAVED_IDS when relinquishing privileges
|
Revision tags: OPENBSD_2_0_BASE
|
#
1.2 |
|
23-Jun-1996 |
deraadt |
update rcsid
|
#
1.1 |
|
18-Oct-1995 |
deraadt |
branches: 1.1.1; Initial revision
|
#
1.31 |
|
24-Dec-2019 |
bluhm |
dmesg(8) allocated a bit too much memory due to padding of struct msgbuf. Use the same size algorithm in kernel and userland. OK cheloha@ guenther@ deraadt@
|
Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
|
#
1.30 |
|
15-May-2018 |
cheloha |
drop unused <time.h>
ok kn@ mpi@
|
Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
|
#
1.29 |
|
01-Sep-2017 |
tom |
free() the memory we allocate in dmesg.c. While this memory would be released on process exit, otto@ points out that various checks happen on free(), so this helps detect memory management errors.
Based on a diff from Nan Xiao - thanks.
ok otto@
|
#
1.28 |
|
26-Aug-2017 |
tom |
Be more precise in the messages given by err() after calling sysctl() in dmesg.c.
Based on a diff from xiao_nan (at) dsi (dot) a-star (dot) edu (dot) sg - thanks.
ok otto@
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
|
#
1.27 |
|
09-Oct-2015 |
deraadt |
Change all tame callers to namechange to pledge(2).
|
#
1.26 |
|
04-Oct-2015 |
deraadt |
dmesg has two modes. The normal sysctl mode, and the -M/-N kvm searcher. In both cases once the relevant setup is done, it can drop to tame "stdio".
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.25 |
|
16-Jan-2015 |
deraadt |
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
|
#
1.24 |
|
13-Jan-2015 |
mpf |
Add dmesg -s support, to view the output of rc(8) system startup messages. Help and feedback by Theo and Miod. OK deraadt@, manpage-ok jmc@
|
Revision tags: OPENBSD_5_6_BASE
|
#
1.23 |
|
22-Apr-2014 |
tedu |
malloc/memset -> calloc. from peter malone
|
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 OPENBSD_5_4_BASE OPENBSD_5_5_BASE
|
#
1.22 |
|
02-Jul-2010 |
deraadt |
some data structures were still present when NOKVM was defined
|
Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
|
#
1.21 |
|
17-Oct-2008 |
deraadt |
init bufdata to NULL for when compiled without KVM support
|
Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
|
#
1.20 |
|
24-Dec-2006 |
djm |
zap incorrect comment
|
Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
|
#
1.19 |
|
28-Apr-2005 |
henning |
tiny doses of KNF, inspired by a diff for sth else from Brian <bwaichu@yahoo.com>
|
#
1.18 |
|
14-Apr-2005 |
henning |
shave off a few bytes, alpha floppies fit again now
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
|
#
1.17 |
|
02-Jun-2003 |
millert |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
|
#
1.16 |
|
03-Jul-2002 |
deraadt |
ansi
|
Revision tags: OPENBSD_3_1_BASE
|
#
1.15 |
|
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.14 |
|
05-Nov-2001 |
mpech |
kill more registers;
millert@ ok
|
Revision tags: OPENBSD_3_0_BASE
|
#
1.13 |
|
07-Jul-2001 |
deraadt |
major -Wall cleanup, almost complete
|
#
1.12 |
|
07-Jul-2001 |
millert |
#include <string.h> for memset() proto
|
#
1.11 |
|
22-Jun-2001 |
deraadt |
smaller dmesg
|
#
1.10 |
|
22-Jun-2001 |
mickey |
use sysctl to retreive msgbuf out of live system, keep the kvm iface, remove sgid
|
#
1.9 |
|
04-Jun-2001 |
mickey |
return from main() don't exit
|
Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE
|
#
1.8 |
|
22-Feb-2000 |
deraadt |
enlarge msgbuf, somewhat line netbsd did
|
Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
|
#
1.7 |
|
08-Jul-1998 |
deraadt |
whack kmem gid after kvm_openfiles()
|
#
1.6 |
|
05-Jul-1998 |
deraadt |
split KREAD() calls
|
Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE
|
#
1.5 |
|
29-Mar-1997 |
tholo |
Avoid infinite loops; from NetBSD PR 3285
|
#
1.4 |
|
15-Jan-1997 |
millert |
getopt(3) returns -1 when out of args, not EOF, whee!
|
#
1.3 |
|
22-Dec-1996 |
deraadt |
Deal with _POSIX_SAVED_IDS when relinquishing privileges
|
Revision tags: OPENBSD_2_0_BASE
|
#
1.2 |
|
23-Jun-1996 |
deraadt |
update rcsid
|
#
1.1 |
|
18-Oct-1995 |
deraadt |
branches: 1.1.1; Initial revision
|
#
1.30 |
|
15-May-2018 |
cheloha |
drop unused <time.h>
ok kn@ mpi@
|
Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
|
#
1.29 |
|
01-Sep-2017 |
tom |
free() the memory we allocate in dmesg.c. While this memory would be released on process exit, otto@ points out that various checks happen on free(), so this helps detect memory management errors.
Based on a diff from Nan Xiao - thanks.
ok otto@
|
#
1.28 |
|
26-Aug-2017 |
tom |
Be more precise in the messages given by err() after calling sysctl() in dmesg.c.
Based on a diff from xiao_nan (at) dsi (dot) a-star (dot) edu (dot) sg - thanks.
ok otto@
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
|
#
1.27 |
|
09-Oct-2015 |
deraadt |
Change all tame callers to namechange to pledge(2).
|
#
1.26 |
|
04-Oct-2015 |
deraadt |
dmesg has two modes. The normal sysctl mode, and the -M/-N kvm searcher. In both cases once the relevant setup is done, it can drop to tame "stdio".
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.25 |
|
16-Jan-2015 |
deraadt |
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
|
#
1.24 |
|
13-Jan-2015 |
mpf |
Add dmesg -s support, to view the output of rc(8) system startup messages. Help and feedback by Theo and Miod. OK deraadt@, manpage-ok jmc@
|
Revision tags: OPENBSD_5_6_BASE
|
#
1.23 |
|
22-Apr-2014 |
tedu |
malloc/memset -> calloc. from peter malone
|
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 OPENBSD_5_4_BASE OPENBSD_5_5_BASE
|
#
1.22 |
|
02-Jul-2010 |
deraadt |
some data structures were still present when NOKVM was defined
|
Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
|
#
1.21 |
|
17-Oct-2008 |
deraadt |
init bufdata to NULL for when compiled without KVM support
|
Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
|
#
1.20 |
|
24-Dec-2006 |
djm |
zap incorrect comment
|
Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
|
#
1.19 |
|
28-Apr-2005 |
henning |
tiny doses of KNF, inspired by a diff for sth else from Brian <bwaichu@yahoo.com>
|
#
1.18 |
|
14-Apr-2005 |
henning |
shave off a few bytes, alpha floppies fit again now
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
|
#
1.17 |
|
02-Jun-2003 |
millert |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
|
#
1.16 |
|
03-Jul-2002 |
deraadt |
ansi
|
Revision tags: OPENBSD_3_1_BASE
|
#
1.15 |
|
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.14 |
|
05-Nov-2001 |
mpech |
kill more registers;
millert@ ok
|
Revision tags: OPENBSD_3_0_BASE
|
#
1.13 |
|
07-Jul-2001 |
deraadt |
major -Wall cleanup, almost complete
|
#
1.12 |
|
07-Jul-2001 |
millert |
#include <string.h> for memset() proto
|
#
1.11 |
|
22-Jun-2001 |
deraadt |
smaller dmesg
|
#
1.10 |
|
22-Jun-2001 |
mickey |
use sysctl to retreive msgbuf out of live system, keep the kvm iface, remove sgid
|
#
1.9 |
|
04-Jun-2001 |
mickey |
return from main() don't exit
|
Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE
|
#
1.8 |
|
22-Feb-2000 |
deraadt |
enlarge msgbuf, somewhat line netbsd did
|
Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
|
#
1.7 |
|
08-Jul-1998 |
deraadt |
whack kmem gid after kvm_openfiles()
|
#
1.6 |
|
05-Jul-1998 |
deraadt |
split KREAD() calls
|
Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE
|
#
1.5 |
|
29-Mar-1997 |
tholo |
Avoid infinite loops; from NetBSD PR 3285
|
#
1.4 |
|
15-Jan-1997 |
millert |
getopt(3) returns -1 when out of args, not EOF, whee!
|
#
1.3 |
|
22-Dec-1996 |
deraadt |
Deal with _POSIX_SAVED_IDS when relinquishing privileges
|
Revision tags: OPENBSD_2_0_BASE
|
#
1.2 |
|
23-Jun-1996 |
deraadt |
update rcsid
|
#
1.1 |
|
18-Oct-1995 |
deraadt |
branches: 1.1.1; Initial revision
|
Revision tags: OPENBSD_6_2_BASE
|
#
1.29 |
|
01-Sep-2017 |
tom |
free() the memory we allocate in dmesg.c. While this memory would be released on process exit, otto@ points out that various checks happen on free(), so this helps detect memory management errors.
Based on a diff from Nan Xiao - thanks.
ok otto@
|
#
1.28 |
|
26-Aug-2017 |
tom |
Be more precise in the messages given by err() after calling sysctl() in dmesg.c.
Based on a diff from xiao_nan (at) dsi (dot) a-star (dot) edu (dot) sg - thanks.
ok otto@
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
|
#
1.27 |
|
09-Oct-2015 |
deraadt |
Change all tame callers to namechange to pledge(2).
|
#
1.26 |
|
04-Oct-2015 |
deraadt |
dmesg has two modes. The normal sysctl mode, and the -M/-N kvm searcher. In both cases once the relevant setup is done, it can drop to tame "stdio".
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.25 |
|
16-Jan-2015 |
deraadt |
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
|
#
1.24 |
|
13-Jan-2015 |
mpf |
Add dmesg -s support, to view the output of rc(8) system startup messages. Help and feedback by Theo and Miod. OK deraadt@, manpage-ok jmc@
|
Revision tags: OPENBSD_5_6_BASE
|
#
1.23 |
|
22-Apr-2014 |
tedu |
malloc/memset -> calloc. from peter malone
|
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 OPENBSD_5_4_BASE OPENBSD_5_5_BASE
|
#
1.22 |
|
02-Jul-2010 |
deraadt |
some data structures were still present when NOKVM was defined
|
Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
|
#
1.21 |
|
17-Oct-2008 |
deraadt |
init bufdata to NULL for when compiled without KVM support
|
Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
|
#
1.20 |
|
24-Dec-2006 |
djm |
zap incorrect comment
|
Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
|
#
1.19 |
|
28-Apr-2005 |
henning |
tiny doses of KNF, inspired by a diff for sth else from Brian <bwaichu@yahoo.com>
|
#
1.18 |
|
14-Apr-2005 |
henning |
shave off a few bytes, alpha floppies fit again now
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
|
#
1.17 |
|
02-Jun-2003 |
millert |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
|
#
1.16 |
|
03-Jul-2002 |
deraadt |
ansi
|
Revision tags: OPENBSD_3_1_BASE
|
#
1.15 |
|
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.14 |
|
05-Nov-2001 |
mpech |
kill more registers;
millert@ ok
|
Revision tags: OPENBSD_3_0_BASE
|
#
1.13 |
|
07-Jul-2001 |
deraadt |
major -Wall cleanup, almost complete
|
#
1.12 |
|
07-Jul-2001 |
millert |
#include <string.h> for memset() proto
|
#
1.11 |
|
22-Jun-2001 |
deraadt |
smaller dmesg
|
#
1.10 |
|
22-Jun-2001 |
mickey |
use sysctl to retreive msgbuf out of live system, keep the kvm iface, remove sgid
|
#
1.9 |
|
04-Jun-2001 |
mickey |
return from main() don't exit
|
Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE
|
#
1.8 |
|
22-Feb-2000 |
deraadt |
enlarge msgbuf, somewhat line netbsd did
|
Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
|
#
1.7 |
|
08-Jul-1998 |
deraadt |
whack kmem gid after kvm_openfiles()
|
#
1.6 |
|
05-Jul-1998 |
deraadt |
split KREAD() calls
|
Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE
|
#
1.5 |
|
29-Mar-1997 |
tholo |
Avoid infinite loops; from NetBSD PR 3285
|
#
1.4 |
|
15-Jan-1997 |
millert |
getopt(3) returns -1 when out of args, not EOF, whee!
|
#
1.3 |
|
22-Dec-1996 |
deraadt |
Deal with _POSIX_SAVED_IDS when relinquishing privileges
|
Revision tags: OPENBSD_2_0_BASE
|
#
1.2 |
|
23-Jun-1996 |
deraadt |
update rcsid
|
#
1.1 |
|
18-Oct-1995 |
deraadt |
branches: 1.1.1; Initial revision
|