POSTNOTE(3)

πŸ“¦ version 0_git20260208, in alpine 3.24, arch rolling, nixos 26.05, nixpkgs unstable

πŸŽ€ POSTNOTE(3) πŸŽ€

okay bestie, welcome to the postnote page from the Library Functions Manual β€” it's literally about sending a note to a process or a process group, and the vibe is immaculate πŸ’Œ

✨ NAME ✨

postnote β€” send a note to a process or process group πŸ’…

🌸 SYNOPSIS 🌸

#include <u.h>
#include <libc.h>

int  postnote(int who, int pid, char *note)

πŸ¦‹ DESCRIPTION πŸ¦‹

postnote sends a note to a process or process group. here's the group-chat breakdown, no cap:

  • if who is PNPROC, then note is sent to the process with id pid πŸ’–
  • if who is PNGROUP, the note is delivered to the process group containing the process with id pid πŸ‘‘
🫢 special-case tea: for PNGROUP only, if the calling process is in the target group, the note is not delivered to that process. periodt.

it returns zero if the write succeeds, otherwise -1. that's the whole mood πŸ”₯

πŸ”₯ SOURCE πŸ”₯

/src/lib9/postnote.c

🌈 SEE ALSO 🌈

πŸ’œ DIAGNOSTICS πŸ’œ

sets errstr. yes bestie, that's the diagnostic behaviour β€” it sets errstr 🫢


xoxo, the Library Functions Manual πŸ’– β€” footer vibes: POSTNOTE(3), source at /src/lib9/postnote.c; this copy doesn't show extra date/version tea beyond that 🌸