groff 1.23.0 added .MR to its -man macro package. The NEWS file states
that the inclusion of the macro "was prompted by its introduction to
Plan 9 from User Space's troff in August 2020." From d32deab it seems
that the name for Plan 9 from User Space's implementation was suggested
by groff maintainer G. Brandon Robinson.
Not sure if the intention was to make these definitions compatible, but
it would be nice if they were.
Currently, Plan 9 from User Space's .MR expects its second argument to
be parenthesized. groff's .MR does not. This results in extra
parentheses appearing in manual references when viewing Plan 9 from User
Space's manual pages on a system using groff.
40 lines
663 B
Groff
40 lines
663 B
Groff
.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
|
|
.MR 9pserve 4
|
|
to post a new 9P service in the current
|
|
``name space''
|
|
(see
|
|
.MR 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
|
|
.MR 9pfuse 4 .
|
|
.SH "SEE ALSO
|
|
.MR intro 4 ,
|
|
.MR 9pfuse 4 ,
|
|
.MR 9pserve 4
|
|
.SH SOURCE
|
|
.B \*9/src/lib9/post9p.c
|