atuser(3) | AtFS Toolkit Library | atuser(3) |
atUserValid, atScanUser, atUserName, atUserUid - user handling
#include <atfs.h>
#include <atfstk.h>
void atScanUser (char *userName; Af_user *resultUser);
char* atUserName (Af_user *user);
Uid_t atUserUid (Af_user *user);
int atUserValid (Af_user *user);
atScanUser scans the given string userName and tries to derive an AtFS user identification (resultUser) from it. It does not verify the existence of a corresponding UNIX (/etc/passwd) user entry. Use atUserUid to test that. atScanUser understands the following formats:
atUserName returns a string of the form user@domain generated from the given user structure. If no domain name is given in the structure, it returns user@host instead. With no host and no domain name, just user is returned. The result string resides in static memory and will be overwritten on subsequent calls.
atUserUid tries to map the given user structure to a UNIX user identification. It returns the uid on success, -1 otherwise.
atUserValid checks the given user structure for plausibility. It returns FALSE on fauilure, a non null value on success.
Fri Jun 25 16:39:50 1993 | AtFStk-1.12 |