ref: 55a366e766eca4252ab8549212f59dcae6827d7c dir: /sys/src/cmd/unix/drawterm/libc/fmtlock.c/
#include <u.h> #include <libc.h> static Lock fmtl; void __fmtlock(void) { lock(&fmtl); } void __fmtunlock(void) { unlock(&fmtl); }