- coalesce lots of duplicate code - avoid using errno as much as possible - fix bugs in some error handling cases
- For security reasons move some libc code to PFS. - Fix a few bugs in PFS. Contributed by Thomas Cort.