Plan 9 from Bell Labs’s /n/sources/patch/applied/ape-ftruncate/readme
minimal implementation of ftruncate.