From 46439007cf417cbd9ac8049bb4122c890097a0fa Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Fri, 22 Dec 2006 20:52:35 +0000 Subject: 20060303-partial --- man/4/export | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 man/4/export (limited to 'man/4/export') diff --git a/man/4/export b/man/4/export new file mode 100644 index 00000000..ea2fdf39 --- /dev/null +++ b/man/4/export @@ -0,0 +1,69 @@ +.TH EXPORT 4 +.SH NAME +export \- export name space on a connection +.SH SYNOPSIS +.B export +[ +.B \-a +] [ +.B \-n +] +.I dir +[ +.I file +] +.SH DESCRIPTION +.I Export +calls +.B Sys->export +(see +.IR sys-dial (2)) +to serve a name space rooted at +.I dir +over a connection to a Styx client. +.I Export +opens the connection on the given +.IR file , +or uses the standard input by default. +It returns when the client closes the connection. +If the +.B \-a +option is given, however, +.I export +starts an Inferno kernel process +to serve the name space and returns immediately. +.PP +Normally, +.I export +forks the current name space, and makes +.I dir +the root of its copy. +Changes subsequently made to the current name space will +not be visible to clients of +.IR export . +If the +.B \-n +option is given, however, and +.I dir +is the root +.RB (` / '), +.I export +serves the current name space without forking it; changes made to it +will be visible to clients. +.PP +.I Export +starts serving Styx immediately; it assumes that the connection +has been authenticated if required. +.SH EXAMPLE +Start a background process to serve the name space on the serial port. +.IP +.B "export / /dev/eia0 &" +.PP +Although useful when bootstrapping a system, this is unsafe +unless a transport protocol is run on the connection. +.SH SOURCE +.B /appl/cmd/export.b +.SH SEE ALSO +.IR cpu (1), +.IR sys-dial (2), +.IR intro (5) -- cgit v1.2.3