Information from System Files
passwd
Returns ($name, $passwd, $uid, $gid, $quota, $comment, $gcos, $dir, $shell).
endpwent- Ends lookup processing.
getpwent- Gets next user information.
getpwnamname- Gets information by name.
getpwuiduid- Gets information by user ID.
setpwent- Resets lookup processing.
group
Returns ($name, $passwd, $gid, $members).
endgrent- Ends lookup processing.
getgrgidgid- Gets information by group ID.
getgrnamname- Gets information by name.
getgrent- Gets next information.
setgrent- Resets lookup processing.
hosts
Returns ($name, $aliases, $addrtype, $length, @addrs).
endhostent- Ends lookup processing.
gethostbyaddraddr, addrtype- Gets information by IP address.
gethostbynamename- Gets information by hostname.
gethostent- Gets next host information.
sethostentstayopen- Resets lookup processing.
networks
Returns ($name, $aliases, $addrtype, $net).
endnetent- Ends lookup processing.
getnetbyaddraddr, type- Gets information by address and type.
getnetbynamename- Gets information by network name.
getnetent- Gets next network information.
setnetentstayopen- Resets lookup processing.
services
Returns ($name, $aliases, $port, $proto).
endservent- Ends lookup processing.
getservbynamename,proto- Gets information by service name.
getservbyportport,proto- Gets information by service port.
getservent- Gets next service information.
setserventstayopen- Resets lookup processing.
protocols
Returns ($name, $aliases, $proto).
endprotoent- Ends lookup processing.
getprotobynamename- Gets information by protocol name.
getprotobynumbernumber- Gets information by protocol number.
getprotoent- Gets next protocol information.
setprotoentstayopen- Resets lookup processing.