The Cosmo API documentation page is pretty good now https://justine.lol/cosmopolitan/documentation.html
This change also pays off some of the remaining technical debt with stdio, file descriptors, and memory managemnt polyfills.