Use more markup. Fix a typo.

This commit is contained in:
wiz 2014-01-06 13:03:33 +00:00
parent a760028eaf
commit 3181678dad
3 changed files with 55 additions and 23 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: core.9lua,v 1.1 2013/10/29 08:34:07 mbalmer Exp $
.\" $NetBSD: core.9lua,v 1.2 2014/01/06 13:03:33 wiz Exp $
.\"
.\" Copyright (c) 2013 Marc Balmer <mbalmer@NetBSD.org>. All rights reserved.
.\"
@ -65,7 +65,11 @@ Send
to the console.
.Pp
.It Dv core.print_nolog(msg)
The core.print_nolog() function is identical to the core.print() function,
The
.Fn core.print_nolog
function is identical to the
.Fn core.print
function,
except is does not send
.Ar msg
to lthe system og.
@ -78,37 +82,53 @@ to the current process's controlling tty.
.It Dv core.aprint_normal(msg)
Send
.Ar msg
to the console unless AB_QUIET is set.
to the console unless
.Dv AB_QUIET
is set.
Always sends to the log.
.Pp
.It Dv core.aprint_naive(msg)
Send
.Ar msg
to the console only if AB_QUIET is set.
to the console only if
.Dv AB_QUIET
is set.
Never sends to the log.
.Pp
.It Dv core.aprint_verbose(msg)
Send
.Ar msg
to the console only if AB_VERBOSE is set.
to the console only if
.Dv AB_VERBOSE
is set.
Always sends to the log.
.Pp
.It Dv core.aprint_debug(msg)
Send
.Ar msg
to the console and the log only if AB_DEBUG is set.
to the console and the log only if
.Dv AB_DEBUG
is set.
.Pp
.It Dv core.aprint_error(msg)
Like core.aprint_normal(), but also keeps track of the number of times called.
Like
.Fn core.aprint_normal ,
but also keeps track of the number of times called.
This allows a subsystem to report the number of errors that occurred during a
quiet or silent initialization phase.
.Pp
.It Dv count = core.aprint_get_error_count()
The core.aprint_get_error_count() function reports the number of errors and
The
.Fn core.aprint_get_error_count
function reports the number of errors and
resets the counter to 0.
.Pp
.It Dv core.panic(msg)
The core.panic() function terminates the NetBSD system.
The
.Fn core.panic
function terminates the
.Nx
system.
The message
.Ar msg
is printed to the console and saved in the variable
@ -119,7 +139,7 @@ A newline character is added at the end automatically.
.Sh VARIABLES
Upon initialisation, the
.Nm
module sets the following variables with the values of the correspondig kernel
module sets the following variables with the values of the corresponding kernel
variable:
.Pp
.Bl -tag -width XXXX -compact
@ -136,8 +156,8 @@ variable:
.Sh SEE ALSO
.Xr lua 1 ,
.Xr luac 1 ,
.Xr intro 9lua ,
.Xr lua 4
.Xr lua 4 ,
.Xr intro 9lua
.Sh HISTORY
An
.Nm

View File

@ -1,4 +1,4 @@
.\" $NetBSD: pmf.9lua,v 1.1 2013/10/29 09:40:44 mbalmer Exp $
.\" $NetBSD: pmf.9lua,v 1.2 2014/01/06 13:03:33 wiz Exp $
.\"
.\" Copyright (c) 2013 Marc Balmer <mbalmer@NetBSD.org>. All rights reserved.
.\"
@ -83,9 +83,9 @@ Returns nil if the key is not present.
.Sh SEE ALSO
.Xr lua 1 ,
.Xr luac 1 ,
.Xr intro 9lua ,
.Xr lua 4 ,
.Xr pmf 9
.Xr pmf 9 ,
.Xr intro 9lua
.Sh HISTORY
An
.Nm

View File

@ -1,4 +1,4 @@
.\" $NetBSD: systm.9lua,v 1.1 2013/12/16 23:54:26 lneto Exp $
.\" $NetBSD: systm.9lua,v 1.2 2014/01/06 13:03:33 wiz Exp $
.\"
.\" Copyright (c) 2013 Marc Balmer <mbalmer@NetBSD.org>. All rights reserved.
.\"
@ -65,7 +65,11 @@ Send
to the console.
.Pp
.It Dv systm.print_nolog(msg)
The systm.print_nolog() function is identical to the systm.print() function,
The
.Fn systm.print_nolog
function is identical to the
.Fn systm.print
function,
except is does not send
.Ar msg
to the system log.
@ -99,16 +103,24 @@ Send
to the console and the log only if AB_DEBUG is set.
.Pp
.It Dv systm.aprint_error(msg)
Like systm.aprint_normal(), but also keeps track of the number of times called.
Like
.Fn systm.aprint_normal ,
but also keeps track of the number of times called.
This allows a subsystem to report the number of errors that occurred during a
quiet or silent initialization phase.
.Pp
.It Dv count = systm.aprint_get_error_count()
The systm.aprint_get_error_count() function reports the number of errors and
The
.Fn systm.aprint_get_error_count
function reports the number of errors and
resets the counter to 0.
.Pp
.It Dv systm.panic(msg)
The systm.panic() function terminates the NetBSD system.
The
.Fn systm.panic
function terminates the
.Nx
system.
The message
.Ar msg
is printed to the console and saved in the variable
@ -119,7 +131,7 @@ A newline character is added at the end automatically.
.Sh VARIABLES
Upon initialisation, the
.Nm
module sets the following variables with the values of the correspondig kernel
module sets the following variables with the values of the corresponding kernel
variable:
.Pp
.Bl -tag -width XXXX -compact
@ -136,8 +148,8 @@ variable:
.Sh SEE ALSO
.Xr lua 1 ,
.Xr luac 1 ,
.Xr intro 9lua ,
.Xr lua 4
.Xr lua 4 ,
.Xr intro 9lua
.Sh HISTORY
An
.Nm