hesiod_free_passwd man page on YellowDog

Man page or keyword search:  
man Server   18644 pages
apropos Keyword Search (all sections)
Output format
YellowDog logo
[printable version]

HESIOD(3)							     HESIOD(3)

NAME
       hesiod_getpwnam, hesiod_getpwuid, hesiod_free_passwd - Hesiod functions
       for retrieving passwd information

SYNOPSIS
       #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
       This family of functions allows you to retrieve passwd database	infor‐
       mation  using Hesiod.  To perform lookups, you need an initialized Hes‐
       iod context; see hesiod(3) for details.	You may look up passwd	infor‐
       mation by name or by uid; information is returned in the same format as
       by getpwnam or getpwuid.	 It is the  caller's  responsibility  to  call
       hesiod_free_passwd with the returned passwd entry to free the resources
       used by the passwd entry.

       Hesiod queries for passwd information are made using the ``passwd''  or
       ``uid'' Hesiod type, using either the username or the decimal represen‐
       tation 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.

RETURN VALUES
       On failure, hesiod_getpwnam and hesiod_getpwuid return NULL and set the
       global variable errno to indicate the error.

ERRORS
       These calls may fail for any of the reasons the routine	hesiod_resolve
       may fail.

SEE ALSO
       hesiod(3)

			       30 November 1996			     HESIOD(3)
[top]

List of man pages available for YellowDog

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net