DRAWFCALL(3)
Welcome to DRAWFCALL(3), bestie β the Library Functions Manual page for the window system protocol, and yes sheβs serving Unix group-chat energy π«Άβ¨
π NAME π
convM2W, convW2M, drawfcallfmt, readwsysmsg, sizeW2M β window system protocol πͺπ
β¨ SYNOPSIS β¨
Okay so first you gather the headers like youβre collecting stickers, no cap:
#include <u.h>
#include <libc.h>
#include <draw.h>
#include <mouse.h>
#include <cursor.h>
#include <drawfcall.h>
uint convM2W(uchar *ap, uint nap, Wsysmsg *w)
uint convW2M(Wsysmsg *w, uchar *ap, uint nap)
int drawfcallfmt(Fmt*)
int readwsysmsg(int fd, uchar *buf, uint nbuf)
uint sizeW2M(Wsysmsg *w)
πΈ DESCRIPTION πΈ
Okay so these routines are the analogues of the routines described in fcall(3), but make it graphics π
They manipulate graphics device protocol messages rather than 9P protocol messages. The graphics device protocol is used for internal communication between the devdraw(1) graphics server and the draw(3) library. A Wsysmsg is the C structure corresponding to a protocol message β¨
π¨ Heads up, bestie: the protocol is intentionally undocumented and may change. So donβt get too attached to any secret interpretation, fr fr π
π SOURCE π
/src/libdraw/drawfcall.c πΎ
π¦ SEE ALSO π¦
devdraw(1), draw(3), graphics(3) β go give these a little read too, iykyk π«Ά
Thatβs the whole page, bestie π Source/version: the Library Functions Manual, page DRAWFCALL(3) β and the date? Not shown in the footer, so sheβs a mystery ππ«Ά
π¦ where this page comes from
- alpine 3.24: plan9port-doc 0_git20260208-r0 Β· LPL-1.02
- arch rolling: plan9port 20261021-2 Β· custom
- nixos 26.05: plan9port 0-unstable-2025-11-10
- nixos 26.05: plan9port-wayland 0-unstable-2025-11-26
- nixpkgs unstable: plan9port 0-unstable-2025-11-10
- nixpkgs unstable: plan9port-wayland 0-unstable-2025-11-26
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms