Go to the first, previous, next, last section, table of contents.

Posix System Databases

groupName    :: GroupEntry -> String
groupID      :: GroupEntry -> GroupID
groupMembers :: GroupEntry -> [String]

getGroupEntryForID :: GroupID -> IO GroupEntry
`getGroupEntryForID gid' calls `getgrgid' to obtain the `GroupEntry' information associated with `GroupID' `gid'. The operation may fail with:
getGroupEntryForName :: String -> IO GroupEntry
`getGroupEntryForName name' calls `getgrnam' to obtain the `GroupEntry' information associated with the group called `name'. The operation may fail with:
userName      :: UserEntry -> String
userID        :: UserEntry -> UserID
userGroupID   :: UserEntry -> GroupID
homeDirectory :: UserEntry -> String
userShell     :: UserEntry -> String

getUserEntryForID :: UserID -> IO UserEntry
`getUserEntryForID gid' calls `getpwuid' to obtain the `UserEntry' information associated with `UserID' `uid'. The operation may fail with:
getUserEntryForName :: String -> IO UserEntry
`getUserEntryForName name' calls `getpwnam' to obtain the `UserEntry' information associated with the user login `name'. The operation may fail with:
Go to the first, previous, next, last section, table of contents.