MFC r236360,r236361:

- Add missing system calls.
- Remove rmdirat system call which doesn't exist.