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.
46 lines
739 B
Groff
46 lines
739 B
Groff
.TH POSTNOTE 3
|
|
.SH NAME
|
|
postnote \- send a note to a process or process group
|
|
.SH SYNOPSIS
|
|
.B #include <u.h>
|
|
.br
|
|
.B #include <libc.h>
|
|
.PP
|
|
.nf
|
|
.B
|
|
int postnote(int who, int pid, char *note)
|
|
.fi
|
|
.SH DESCRIPTION
|
|
.I Postnote
|
|
sends a note to a process or process group.
|
|
If
|
|
.I who
|
|
is
|
|
.BR PNPROC ,
|
|
then
|
|
.I note
|
|
is sent to the process with id
|
|
.IR pid .
|
|
If
|
|
.I who
|
|
is
|
|
.BI PNGROUP ,
|
|
the note is delivered to the
|
|
process group containing the process with id
|
|
.IR pid .
|
|
For
|
|
.B PNGROUP
|
|
only, if the calling process is in the target group, the note is
|
|
.I not
|
|
delivered to that process.
|
|
.PP
|
|
Returns zero if the write succeeds, otherwise \-1.
|
|
.SH SOURCE
|
|
.B \*9/src/lib9/postnote.c
|
|
.SH "SEE ALSO"
|
|
.MR notify 3 ,
|
|
.MR intro 3
|
|
.SH DIAGNOSTICS
|
|
Sets
|
|
.IR errstr .
|