plan9port/man/man3/postnote.3

46 lines
743 B
Groff
Raw Normal View History

2004-04-10 18:53:55 +00:00
.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
2005-01-03 06:40:20 +00:00
is sent to the process with id
.IR pid .
2004-04-10 18:53:55 +00:00
If
.I who
is
.BI PNGROUP ,
the note is delivered to the
2008-07-21 17:26:08 +00:00
process group containing the process with id
.IR pid .
2004-04-10 18:53:55 +00:00
For
.B PNGROUP
only, if the calling process is in the target group, the note is
.I not
delivered to that process.
.PP
2008-07-21 17:26:08 +00:00
Returns zero if the write succeeds, otherwise \-1.
2004-04-10 18:53:55 +00:00
.SH SOURCE
2005-01-11 17:37:33 +00:00
.B \*9/src/lib9/postnote.c
2004-04-10 18:53:55 +00:00
.SH "SEE ALSO"
.MR notify (3) ,
.MR intro (3)
2004-04-10 18:53:55 +00:00
.SH DIAGNOSTICS
Sets
.IR errstr .