implement: getgrent, getgrnam, gethostbyname