plan9port/man/man3/post9pservice.3

40 lines
675 B
Groff
Raw Normal View History

2005-01-03 06:40:20 +00:00
.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
2008-06-14 18:06:16 +00:00
int post9pservice(int fd, char *name, char *mtpt)
2005-01-03 06:40:20 +00:00
.SH DESCRIPTION
.I Post9pservice
invokes
.MR 9pserve (4)
2005-01-03 06:40:20 +00:00
to post a new 9P service in the current
``name space''
(see
.MR intro (4) )
2005-01-03 06:40:20 +00:00
named
.IR name .
Clients connecting to the posted service
are multiplexed onto a single 9P conversation with the server
on file descriptor
.IR fd .
2008-06-14 18:06:16 +00:00
.PP
If
.I mtpt
is non-nil,
.I post9pservice
mounts the service on
.IR mtpt ,
using
.MR 9pfuse (4) .
2005-01-03 06:40:20 +00:00
.SH "SEE ALSO
.MR intro (4) ,
.MR 9pfuse (4) ,
.MR 9pserve (4)
2005-01-03 06:40:20 +00:00
.SH SOURCE
2005-01-11 17:37:33 +00:00
.B \*9/src/lib9/post9p.c