Move getlogin, getlogin_r, setlogin to login/ subdir.
Move ptsname_r_chk to login/ subdir.
Fix poll stub implementation.
Move getlogin_r_chk to login/ subdir.