Searched refs:pwent (Results 1 – 9 of 9) sorted by relevance
/titanic_41/usr/src/cmd/logins/ |
H A D | logins.c | 427 adddisp(struct passwd *pwent) in adddisp() argument 440 if ((compare = strcmp(current->loginID, pwent->pw_name)) >= 0) { in adddisp() 450 new->loginID = strdup(pwent->pw_name); in adddisp() 451 if (pwent->pw_comment && pwent->pw_comment[0] != '\0') { in adddisp() 452 new->freefield = strdup(pwent->pw_comment); in adddisp() 454 new->freefield = strdup(pwent->pw_gecos); in adddisp() 456 if (!pwent->pw_shell || !(*pwent->pw_shell)) { in adddisp() 459 new->shell = strdup(pwent->pw_shell); in adddisp() 461 new->iwd = strdup(pwent->pw_dir); in adddisp() 462 new->userID = pwent->pw_uid; in adddisp() [all …]
|
/titanic_41/usr/src/cmd/users/ |
H A D | users.c | 534 adddisp(struct passwd *pwent) in adddisp() argument 549 if ((compare = strcmp(current->loginID, pwent->pw_name)) >= 0) in adddisp() 565 strcpy(allocstr((unsigned int)strlen(pwent->pw_name)+1), in adddisp() 566 pwent->pw_name); in adddisp() 567 if (pwent->pw_comment && pwent->pw_comment[0] != '\0') in adddisp() 570 (unsigned int)strlen(pwent->pw_comment)+1), in adddisp() 571 pwent->pw_comment); in adddisp() 575 (unsigned int)strlen(pwent->pw_gecos)+1), in adddisp() 576 pwent->pw_gecos); in adddisp() 652 struct passwd *pwent; /* Ptr to an /etc/passwd entry */ in main() local [all …]
|
/titanic_41/usr/src/cmd/pgrep/ |
H A D | pgrep.c | 365 struct passwd *pwent; in parse_uids() local 378 if ((pwent = getpwnam(ptr)) != NULL) in parse_uids() 379 idtab_append(idt, pwent->pw_uid); in parse_uids()
|
/titanic_41/usr/src/cmd/zlogin/ |
H A D | zlogin.c | 996 zone_get_user_pw(const char *user_cmd, struct passwd *pwent, char *pwbuf, in zone_get_user_pw() argument 1023 if (str2passwd(pwline, sizeof (pwline), pwent, pwbuf, pwbuflen) == 0) in zone_get_user_pw() 1024 return (pwent); in zone_get_user_pw() 1249 struct passwd pwent; in prep_env_noninteractive() local 1261 pw = zone_get_user_pw(user_cmd, &pwent, pwbuf, sizeof (pwbuf)); in prep_env_noninteractive()
|
/titanic_41/usr/src/cmd/fs.d/ufs/ff/ |
H A D | ff.c | 726 struct passwd *pwent; in user_name() local 738 if ((pwent = getpwuid(uid)) == NULL) { in user_name() 741 hp->name_string = (char *)strdup(pwent->pw_name); in user_name()
|
/titanic_41/usr/src/cmd/make/bin/ |
H A D | main.cc | 1552 struct passwd *pwent; in setup_for_projectdir() local 1556 pwent = getpwuid(uid); in setup_for_projectdir() 1557 if (pwent == NULL) { in setup_for_projectdir() 1560 if ((pwent = getpwnam(sccs_dir_path)) == NULL) { in setup_for_projectdir() 1564 (void) sprintf(path, "%s/src", pwent->pw_dir); in setup_for_projectdir() 1569 (void) sprintf(path, "%s/source", pwent->pw_dir); in setup_for_projectdir()
|
/titanic_41/usr/src/cmd/sqlite/ |
H A D | shell.c | 1101 struct passwd *pwent; in find_home_dir() local 1103 if( (pwent=getpwuid(uid)) != NULL) { in find_home_dir() 1104 home_dir = pwent->pw_dir; in find_home_dir()
|
/titanic_41/usr/src/cmd/ls/ |
H A D | ls.c | 2231 struct passwd *pwent; in getname() local 2239 if ((pwent = getpwuid(uid)) != NULL) { in getname() 2240 SCPYN(&c->name[0], pwent->pw_name); in getname()
|
/titanic_41/usr/src/cmd/tar/ |
H A D | tar.c | 6274 struct passwd *pwent = getpwuid(uid); in getname() local 6275 c = hash_insert(uids, pwent ? pwent->pw_name : NULL, uid); in getname() 6298 struct passwd *pwent = getpwnam(name); in getuidbyname() local 6299 c = hash_insert(names, name, pwent ? (int)pwent->pw_uid : -1); in getuidbyname()
|