Add attributes to `core.sys.posix`.

Finishes #878 job.