Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

sys_util.h File Reference

System Utilities. More...

Go to the source code of this file.

Functions


Detailed Description

System Utilities.


Function Documentation

int sys_util_findGID const char *  group,
gid_t *  gid
 

Finds the group ID for a specified group name.

Parameters:
group Group name to look for.
gid pointer to a gid_t where the result is stored.
Returns:
  • 0 if group not found
  • 1 if group found

int sys_util_findHomeDir uid_t  uid,
char *  dest,
int  mxlen
 

Finds the home directory for a specified UID.

Parameters:
uid User ID
dest Pointer to result string buffer.
mxlen Length of dest

int sys_util_findUID const char *  user,
uid_t *  uid,
gid_t *  gid
 

Finds the user ID and group ID for a specified user name.

Parameters:
user User name to look for.
uid Pointer to store UID.
gid Pointer to store GID.
Returns:
  • 0 if user not found
  • 1 id user found


Generated on Fri Jan 20 10:12:18 2006 by  doxygen 1.4.2