aboutsummaryrefslogtreecommitdiff
path: root/man/man3/post9pservice.3
blob: c3b69d71c679dfe335d2b91913b88518f1577d24 (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
.TH POST9PSERVICE 3
.SH NAME
post9pservice \- post 9P service for use by clients
.SH SYNOPSIS
.B #include <u.h>
.br
.B #include <libc.h>
.PP
.B
int post9pservice(int fd, char *name, char *mtpt)
.SH DESCRIPTION
.I Post9pservice
invokes
.IR 9pserve (4)
to post a new 9P service in the current 
``name space''
(see
.IR intro (4))
named
.IR name .
Clients connecting to the posted service
are multiplexed onto a single 9P conversation with the server
on file descriptor
.IR fd .
.PP
If
.I mtpt
is non-nil,
.I post9pservice
mounts the service on
.IR mtpt ,
using
.IR 9pfuse (4).
.SH "SEE ALSO
.IR intro (4),
.IR 9pfuse (4),
.IR 9pserve (4)
.SH SOURCE
.B \*9/src/lib9/post9p.c