Implement getlogin_r and move out getlogin to getlogin.c
Implement fcloseall
Implement futimes and lutimes