Blob
1 .TH POSTNOTE 32 .SH NAME3 postnote \- send a note to a process or process group4 .SH SYNOPSIS5 .B #include <u.h>6 .br7 .B #include <libc.h>8 .PP9 .nf10 .B11 int postnote(int who, int pid, char *note)12 .fi13 .SH DESCRIPTION14 .I Postnote15 sends a note to a process or process group.16 If17 .I who18 is19 .BR PNPROC ,20 then21 .I note22 is written to23 .BI /proc/ pid /note\f1.24 If25 .I who26 is27 .BI PNGROUP ,28 the note is delivered to the29 process group by writing30 .I note31 to32 .BI /proc/ pid /notepg\f1.33 For34 .B PNGROUP35 only, if the calling process is in the target group, the note is36 .I not37 delivered to that process.38 .PP39 If the write is successful, zero is returned.40 Otherwise \-1 is returned.41 .SH SOURCE42 .B /usr/local/plan9/src/libc/9sys/postnote.c43 .SH "SEE ALSO"44 .IR notify (3),45 .IR intro (3),46 .IR proc (3)47 .SH DIAGNOSTICS48 Sets49 .IR errstr .