Have tor-guts cover how to use OS functionality from Tor
This should cover all our compatibility layers, including compat*, address.c, and the relevant parts of util*
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information