|  | Qore Programming Language Reference Manual
    0.9.3.2
    | 
| Functions | |
| *hash | Qore::getgrgid (softint gid) | 
| Returns a group information hash representing the group information for the group ID passed, or, if the group ID does not exist NOTHING is returned.  More... | |
| hash | Qore::getgrgid2 (softint gid) | 
| Returns a group information hash representing the group information for the group ID passed, or, if the group ID does not exist, a GETGRGID2-ERRORexception is thrown.  More... | |
| *hash | Qore::getgrnam (string name) | 
| Returns a group information hash representing the group information for the group name passed, or, if the group does not exist NOTHING is returned.  More... | |
| hash | Qore::getgrnam2 (string name) | 
| Returns a group information hash representing the group information for the group name passed, or, if the group does not exist, a GETGRNAM2-ERRORexception is thrown.  More... | |
| hash | Qore::getpwnam (string name) | 
| Returns a password information hash representing the user information for the user name passed, or, if the user does not exist NOTHING is returned.  More... | |
| hash | Qore::getpwnam2 (string name) | 
| Returns a password information hash representing the user information for the user name passed, or, if the user does not exist, a GETPWNAM2-ERRORexception is thrown.  More... | |
| nothing | Qore::getpwuid () | 
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.  More... | |
| *hash | Qore::getpwuid (softint uid) | 
| Returns a password information hash representing the user information for the user ID passed, or, if the user ID does not exist NOTHING is returned.  More... | |
| hash | Qore::getpwuid2 (softint uid) | 
| Returns a password information hash representing the user information for the user ID passed, or, if the user ID does not exist, a GETPWUID2-ERRORexception is thrown.  More... | |
UNIX user and group functions
| Key | Type | Description | 
| gr_name | string | The name of the group | 
| gr_passwd | string | The encrypted password for the group | 
| gr_gid | int | The group id | 
| gr_mem | list | List of strings giving the usernames of members of the group | 
| Key | Type | Description | 
| pw_name | string | The username of the user | 
| pw_passwd | string | The encrypted password for the user | 
| pw_gecos | string | The real name or description of the user | 
| pw_dir | string | The user's home directory | 
| pw_shell | string | The user's login shell | 
| pw_uid | int | The user's userid | 
| pw_gid | int | The group id of the user's primary group | 
| *hash Qore::getgrgid | ( | softint | gid | ) | 
Returns a group information hash representing the group information for the group ID passed, or, if the group ID does not exist NOTHING is returned.
| gid | the group ID to look up | 
| hash Qore::getgrgid2 | ( | softint | gid | ) | 
Returns a group information hash representing the group information for the group ID passed, or, if the group ID does not exist, a GETGRGID2-ERROR exception is thrown. 
| gid | the group ID to look up | 
GETGRGID2-ERROR exception is thrown| GETGRGID2-ERROR | invalid gid or error reading group information | 
Returns a group information hash representing the group information for the group name passed, or, if the group does not exist NOTHING is returned.
| name | the group name to look up | 
Returns a group information hash representing the group information for the group name passed, or, if the group does not exist, a GETGRNAM2-ERROR exception is thrown. 
| name | the group name to look up | 
GETGRNAM2-ERROR exception is thrown| GETGRNAM2-ERROR | invalid group or error reading group information | 
Returns a password information hash representing the user information for the user name passed, or, if the user does not exist NOTHING is returned.
| name | the user name to look up | 
Returns a password information hash representing the user information for the user name passed, or, if the user does not exist, a GETPWNAM2-ERROR exception is thrown. 
| name | the user name to look up | 
GETPWNAM2-ERROR exception is thrown| GETPWNAM2-ERROR | invalid user or error reading user information | 
| nothing Qore::getpwuid | ( | ) | 
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
| *hash Qore::getpwuid | ( | softint | uid | ) | 
Returns a password information hash representing the user information for the user ID passed, or, if the user ID does not exist NOTHING is returned.
| uid | the user ID to look up | 
| hash Qore::getpwuid2 | ( | softint | uid | ) | 
Returns a password information hash representing the user information for the user ID passed, or, if the user ID does not exist, a GETPWUID2-ERROR exception is thrown. 
| uid | the user ID to look up | 
GETPWUID2-ERROR exception is thrown| GETPWUID2-ERROR | invalid uid or error reading user information |