hesiod_getpwuid(3) - Linux man page
Name
hesiod_getpwnam, hesiod_getpwuid, hesiod_free_passwd - Hesiod functions for retrieving passwd informationSynopsis
#include <hesiod.h>struct passwd *hesiod_getpwnam(void *context, const char *name)struct passwd *hesiod_getpwuid(void *context, uid_t uid)void hesiod_free_passwd(void *context, struct passwd *pw) cc file.c -lhesiod
Description
Hesiod queries for passwd information are made using the ''passwd'' or ''uid'' Hesiod type, using either the username or the decimal representation of the uid as the Hesiod name. The corresponding records should be a colon-separated list of fields giving the username, encrypted password, uid, gid, GECOS information, home directory, and shell of the user.