Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/luactl More markup, typo fixes, update date and NetBSD ...
details: https://anonhg.NetBSD.org/src/rev/7d9e1b7254e7
branches: trunk
changeset: 790547:7d9e1b7254e7
user: wiz <wiz%NetBSD.org@localhost>
date: Thu Oct 17 08:21:03 2013 +0000
description:
More markup, typo fixes, update date and NetBSD version for import.
diffstat:
sbin/luactl/luactl.8 | 52 ++++++++++++++++++++++++++--------------------------
1 files changed, 26 insertions(+), 26 deletions(-)
diffs (136 lines):
diff -r 061f1ef7906b -r 7d9e1b7254e7 sbin/luactl/luactl.8
--- a/sbin/luactl/luactl.8 Thu Oct 17 08:07:54 2013 +0000
+++ b/sbin/luactl/luactl.8 Thu Oct 17 08:21:03 2013 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: luactl.8,v 1.1 2013/10/16 19:48:21 mbalmer Exp $
+.\" $NetBSD: luactl.8,v 1.2 2013/10/17 08:21:03 wiz Exp $
.\"
.\" Copyright (c) 2011 Marc Balmer <marc%msys.ch@localhost>
.\"
@@ -14,52 +14,52 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd August 26, 2011
+.Dd October 17, 2013
.Dt LUACTL 8
.Os
.Sh NAME
.Nm luactl
.Nd control kernel Lua states
.Sh SYNOPSIS
-.Nm luactl
+.Nm
.Op Fl cq
-.Nm luactl
+.Nm
.Op Fl cq
-create
+.Cm create
.Ar name
.Op desc
-.Nm luactl
+.Nm
.Op Fl cq
-destroy
+.Cm destroy
.Ar name
-.Nm luactl
+.Nm
.Op Fl cq
-require
+.Cm require
.Ar name module
-.Nm luactl
+.Nm
.Op Fl cq
-load
+.Cm load
.Ar name path
.Sh DESCRIPTION
The
.Nm
program allows the manipulation of Lua states in the kernel.
Lua states are created using the
-.Sq create
+.Dq Cm create
command (see below),
Lua bindings are provided as modules.
To make a Lua binding available to a state, it must be
-.Sq required .
+.Dq required .
If a kernel subsystem is to use a Lua state, a state has to be
-.Sq assigned
+.Dq assigned
to it.
Once a module has been
-.Sq required
+.Dq required
by a state, it can not be unloaded from memory using the
.Xr modunload 8
command until the state using it has been destroyed.
.Pp
-Lua code can be loaded from the filesystem into a state at anytime, please
+Lua code can be loaded from the file system into a state at anytime, please
note that code loaded into a state is immediately executed.
.Pp
When executed without a command,
@@ -72,22 +72,22 @@
.Bl -tag -width Ds
.It Fl c
Create a Lua state before executing the command.
-This flag is used for the require, assing, and, load commands only, it
+This flag is used for the require, assign, and, load commands only, it
is ignored for all other commands.
.It Fl q
Operate quietly i.e. nothing is printed to stdout.
.El
.Sh COMMANDS
.Bl -tag -width Ds
-.It create Ar name Op Ar desc
+.It Cm create Ar name Op Ar desc
Create a Lua state with name
.Ar name
and optional description
.Ar desc .
-.It destroy Ar name
+.It Cm destroy Ar name
Destroy the Lua state
.Ar name .
-.It require Ar name module
+.It Cm require Ar name module
Let the Lua state
.Ar name
use the bindings provided in module
@@ -95,7 +95,7 @@
This is the equivalent of userland Lua code calling the
.Sq require
function.
-.It load Ar name Pa path
+.It Cm load Ar name Pa path
Load Lua code in file
.Pa path
into the Lua state
@@ -110,17 +110,17 @@
.El
.Sh SEE ALSO
.Xr lua 4 ,
-.Xr lua 9 ,
+.Xr module 7 ,
.Xr modload 8 ,
-.Xr module 7 ,
-.Xr modunload 8
+.Xr modunload 8 ,
+.Xr lua 9
.Sh HISTORY
The
.Nm
command first appeared in
-.Nx 6.0 .
+.Nx 7.0 .
.Sh AUTHORS
The
.Nm
program was written by
-.An Marc Balmer Aq marc%msys.ch@localhost .
+.An Marc Balmer Aq Mt marc%msys.ch@localhost .
Home |
Main Index |
Thread Index |
Old Index