HP-UX Reference (11i v1 05/09) - 3 Library Functions A-M (vol 6)
g
getspent(3C) getspent(3C)
The fgetspent() routine is available only if libsec patch PHCO_27038 or later is installed. Unlike the
other functions above, it does not use /etc/nsswitch.conf
, and does not access NIS or NIS+. It
returns a pointer to the next
spwd structure in the standard I/O stream. The I/O stream should be open
for reading and its contents should match the format of
/etc/shadow .
Programs using these routines must be compiled with
-lsec.
ERRORS
getspent() , getspnam() , getspnam_r() and fgetspent()
return a null pointer on EOF or
error.
FILES
/etc/passwd System Password file
/etc/shadow Shadow Password file (requires the
ShadowPassword
bundle)
/tcb/files/auth/*/*
Protected password database, for trusted systems
SEE ALSO
getpwent(3C), getprpwent(3), passwd(4), shadow(4).
STANDARDS CONFORMANCE
getspent : SVID3
HP-UX 11i Version 1: September 2005 − 2 − Hewlett-Packard Company Section 3−−381