http://glfwtfwhlsm2u5pw3b7crist7bt7fwepj2wgv3n3b64unj22v5435tyd.onion/blog/2019/08/09/Simplyfile.html
Anyways, simplyfile comes with convenience functions for all file types it wraps and should allow for a significant decrease in boilerplate file descriptor related code and the certainty of not leaking resources.
Two wrappers for file descriptors proved to be especially useful as well as having the greatest impact in code reduction.