version 1.3, 2001/07/27 17:04:06 |
version 1.4, 2001/11/19 19:02:17 |
|
|
|
|
char *username(uid) |
char *username(uid) |
|
|
register uid_t uid; |
uid_t uid; |
|
|
{ |
{ |
register int hashindex; |
int hashindex; |
|
|
hashindex = hashit(uid); |
hashindex = hashit(uid); |
if (is_empty_hash(hashindex) || (hash_table[hashindex].uid != uid)) |
if (is_empty_hash(hashindex) || (hash_table[hashindex].uid != uid)) |
|
|
|
|
static int enter_user(uid, name, wecare) |
static int enter_user(uid, name, wecare) |
|
|
register uid_t uid; |
uid_t uid; |
register char *name; |
char *name; |
int wecare; /* 1 = enter it always, 0 = nice to have */ |
int wecare; /* 1 = enter it always, 0 = nice to have */ |
|
|
{ |
{ |
register int hashindex; |
int hashindex; |
|
|
#ifdef DEBUG |
#ifdef DEBUG |
fprintf(stderr, "enter_hash(%d, %s, %d)\n", uid, name, wecare); |
fprintf(stderr, "enter_hash(%d, %s, %d)\n", uid, name, wecare); |
|
|
|
|
static int get_user(uid) |
static int get_user(uid) |
|
|
register uid_t uid; |
uid_t uid; |
|
|
{ |
{ |
struct passwd *pwd; |
struct passwd *pwd; |