ref: 361febde1cb39a9df4ff8955d35b4bcccb5e1a8d 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); }