summaryrefslogtreecommitdiff
path: root/man/4/export
blob: ea2fdf391e9661e2320f7ab0c4c7703bb85c5511 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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)