Plan 9 from Bell Labs’s /n/sources/patch/applied/ape-chmod-dirbit/files
/sys/src/ape/lib/ap/plan9/chmod.c chmod.c