user: implement some more user functions

I am interested in the "getlogin" symbol, but for completeness I am implementing
the whole family.

Signed-off-by: Glauber Costa <glommer@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>