summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authortom <tom@openbsd.org>2004-03-11 14:43:44 +0000
committertom <tom@openbsd.org>2004-03-11 14:43:44 +0000
commitac8ad87d9e1223c121dd1882a398b33daeae2d96 (patch)
tree5a802726a4a88987597bb6f1a4f8b3528e43c02c /lib/libc
parentShutdown the RDE cleanly on exit. Plug some memleaks. OK henning@ (diff)
downloadwireguard-openbsd-ac8ad87d9e1223c121dd1882a398b33daeae2d96.tar.xz
wireguard-openbsd-ac8ad87d9e1223c121dd1882a398b33daeae2d96.zip
Document RB_USERREQ
ok beck@, jmc@, deraadt@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/reboot.222
1 files changed, 20 insertions, 2 deletions
diff --git a/lib/libc/sys/reboot.2 b/lib/libc/sys/reboot.2
index 6d26fef7bd5..d830f850372 100644
--- a/lib/libc/sys/reboot.2
+++ b/lib/libc/sys/reboot.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: reboot.2,v 1.11 2004/01/23 23:08:46 jmc Exp $
+.\" $OpenBSD: reboot.2,v 1.12 2004/03/11 14:43:44 tom Exp $
.\" $NetBSD: reboot.2,v 1.5 1995/02/27 12:36:02 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -84,6 +84,22 @@ If used in conjunction with
.Dv RB_HALT ,
and if the system hardware supports the function, the system will be
powered off.
+.It Dv RB_USERREQ
+By default, the system will halt if
+.Fn reboot
+is called during startup (before the system has finished autoconfiguration),
+even if
+.Dv RB_HALT
+is not specified.
+This is because
+.Xr panic 9 s
+during startup will probably just repeat on the next boot.
+Use of this option implies that the user has requested the action
+specified (for example, using the
+.Xr ddb 4
+.Ic boot reboot
+command),
+so the system will reboot if a halt is not explicitly requested.
.It Dv RB_INITNAME
An option allowing the specification of an init program (see
.Xr init 8 )
@@ -147,7 +163,9 @@ The caller is not the superuser.
.Xr halt 8 ,
.Xr init 8 ,
.Xr reboot 8 ,
-.Xr savecore 8
+.Xr savecore 8 ,
+.Xr boot 9 ,
+.Xr panic 9
.Sh HISTORY
The
.Fn reboot