| /onnv/onnv-gate/usr/src/lib/libbc/libc/gen/common/ |
| getlogin.c | 28 #include <pwd.h> 37 struct passwd *pwd; local 38 if ((pwd = (struct passwd *)_getpwuid(_getuid())) != NULL) 39 return (pwd->pw_name);
|
| /onnv/onnv-gate/usr/src/cmd/bnu/ |
| getpwinfo.c | 30 #include <pwd.h> 50 register struct passwd *pwd; local 55 pwd = getpwnam(login_name); 56 if (pwd != NULL && pwd->pw_uid == uid) 61 if ((pwd = getpwuid(uid)) == NULL) { 62 if ((pwd = getpwuid(UUCPUID)) == NULL) 68 (void) strcpy(name, pwd->pw_name); 86 register struct passwd *pwd; local 88 if ((pwd = getpwnam(name)) == NULL) [all...] |
| /onnv/onnv-gate/usr/src/tools/cscope-fast/ |
| mygetwd.c | 40 * if the ksh PWD environment variable matches the current 47 char *pwd; /* PWD environment variable value */ local 56 /* use $PWD if it matches this directory */ 57 if ((pwd = getenv("PWD")) != NULL && *pwd != '\0' && 58 stat(pwd, &tmp_sb) == 0 && 60 (void) strcpy(dir, pwd); 61 return (pwd); [all...] |
| /onnv/onnv-gate/usr/src/cmd/oamuser/user/ |
| uid.c | 36 #include <pwd.h> 60 struct passwd *pwd; local 64 for (pwd = getpwent(); pwd != NULL; pwd = getpwent()) { 65 if (isreserveduid(pwd->pw_uid)) /* Skip reserved IDs */ 67 if (pwd->pw_uid >= uid) { 68 if (pwd->pw_uid == MAXUID) { /* Overflow check */ 72 uid = pwd->pw_uid + 1;
|
| /onnv/onnv-gate/usr/src/cmd/tsol/updatehome/ |
| setupfiles.h | 36 #include <pwd.h> 49 extern int __setupfiles(const struct passwd *pwd, const bslabel_t *, int flags);
|
| updatehome.c | 78 #include <pwd.h> 103 struct passwd *pwd; /* current user's password file entry */ local 155 if ((pwd = getpwuid(uid)) == (struct passwd *)0) { 165 if (((userp = getusernam(pwd->pw_name)) == NULL) || 181 " %s.\n"), pwd->pw_name); 186 if (__setupfiles(pwd, min_sl, flags) != 0) {
|
| /onnv/onnv-gate/usr/src/lib/libtecla/common/ |
| homedir.c | 53 #include <pwd.h> 90 struct passwd pwd; /* The password entry of a user */ member in struct:HomeDir 255 struct passwd *ret; /* The returned pointer to pwd */ 261 status = getpwuid_r(geteuid(), &home->pwd, home->buffer, home->buflen, 264 status = getpwnam_r(user, &home->pwd, home->buffer, home->buflen, &ret); 273 home_dir = home->pwd.pw_dir; 280 struct passwd *pwd = login_user ? getpwuid(geteuid()) : getpwnam(user); local 281 if(!pwd) { 289 home_dir = pwd->pw_dir; 363 struct passwd *pwd; /* A pointer to pwd_buffer * local 390 struct passwd *pwd; \/* The pointer to the latest password entry *\/ local 420 const char *pwd = hd_getpwd(home); local 459 const char *pwd = getenv("PWD"); local [all...] |
| /onnv/onnv-gate/usr/src/cmd/mailx/ |
| temp.c | 44 #include <pwd.h> 63 struct passwd *pwd; local 73 pwd = getpwuid(uid = myruid); 74 if (!pwd) { 79 copy(pwd->pw_name, myname);
|
| /onnv/onnv-gate/usr/src/head/rpcsvc/ |
| yppasswd.h | 34 #include <pwd.h>
|
| /onnv/onnv-gate/usr/src/lib/libpkg/common/ |
| ncgrpw.c | 35 #include <pwd.h> 184 struct passwd *pwd; local 205 if ((pwd = clpwnam(nam)) != NULL || 206 (pwd = getpwnam(nam)) != NULL) { 208 if (dup_pw_ent(pwd)) 213 pwd = (struct passwd *)NULL; 236 (void) memmove(itemp->data, pwd, 246 return (pwd); 340 struct passwd *pwd; local 362 if ((pwd = clpwuid(uid)) != NULL | [all...] |
| /onnv/onnv-gate/usr/src/lib/passwdutil/ |
| nis_attr.c | 34 #include <pwd.h> 81 struct passwd *pwd; member in struct:__anon4384 110 nis_to_pwd(char *nis, struct passwd *pwd) 112 pwd->pw_name = strsep(&nis, ":"); 113 pwd->pw_passwd = strsep(&nis, ":"); 114 pwd->pw_uid = atoi(strsep(&nis, ":")); 115 pwd->pw_gid = atoi(strsep(&nis, ":")); 116 pwd->pw_gecos = strsep(&nis, ":"); 117 pwd->pw_dir = strsep(&nis, ":"); 118 pwd->pw_shell = nis [all...] |
| nss_attr.c | 31 #include <pwd.h> 68 struct passwd *pwd; member in struct:pwbuf 115 if (pwbuf->pwd == NULL) 116 pwbuf->pwd = (struct passwd *) 118 if (pwbuf->pwd == NULL) { 142 if (pwbuf->pwd) 143 free(pwbuf->pwd); 160 if (pwbuf->pwd) { 165 if (getpwnam_r(name, pwbuf->pwd, pwbuf->pwd_scratch, 186 struct passwd pwd; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/cmd-inet/common/ |
| store_forw_creds.c | 29 #include <pwd.h> 52 struct passwd *pwd; local 57 if (!(pwd = getpwnam(lusername))) 61 if (seteuid(pwd->pw_uid)) 65 pwd->pw_uid);
|
| /onnv/onnv-gate/usr/src/cmd/tip/ |
| log.c | 25 struct passwd *pwd; local 37 if ((pwd = getpwuid(uid)) == NOPWD) 40 user = pwd->pw_name;
|
| /onnv/onnv-gate/usr/src/lib/libc/port/stdio/ |
| cuserid.c | 36 #include <pwd.h> 48 struct passwd pwd; local 64 } else if ((pw = getpwuid_r(getuid(), &pwd, buffer, BUFSIZ)) != NULL) {
|
| /onnv/onnv-gate/usr/src/lib/libnisdb/yptol/ |
| shim_changepasswd.c | 59 #include <pwd.h> 378 proc_maps(char *domain, struct passwd_entry *pwd) 387 ans = proc_map_list(map_list, domain, pwd, FALSE); 407 ans = proc_map_list(map_list, domain, pwd, TRUE); 429 struct passwd_entry *pwd, bool_t adjunct_flag) 439 if ((adjunct_flag) && (!pwd->adjunct)) { 470 if (0 != (ans = update_single_map(map_name, pwd, adjunct_flag))) 531 update_single_map(char *map_name, struct passwd_entry *pwd, bool_t adjunct_flag) 539 data.dptr = pwd->adjunct_str; 541 data.dptr = pwd->pwd_str [all...] |
| /onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.sbin/in.ftpd/ |
| getpwnam.h | 12 #include <pwd.h>
|
| /onnv/onnv-gate/usr/src/cmd/idmap/idmapd/ |
| directory_provider_nsswitch.c | 32 #include <pwd.h> 51 directory_entry_rpc *pent, struct passwd *pwd, struct group *grp, 83 struct passwd *pwd = NULL; local 131 pwd = getpwuid(rid - LOCALRID_UID_MIN); 132 if (pwd == NULL) { 181 * pwd or grp. 191 pwd = getpwnam(name); 192 if (pwd == NULL && errno != 0) { 228 if (pwd == NULL && grp == NULL) 231 de = directory_provider_nsswitch_populate(&del[i], pwd, grp [all...] |
| /onnv/onnv-gate/usr/src/cmd/login/ |
| login_audit.c | 30 #include <pwd.h> 61 audit_success(uint_t event_id, struct passwd *pwd, char *optional_text) 67 assert(pwd != NULL); 73 if (adt_set_user(ah, pwd->pw_uid, pwd->pw_gid, 74 pwd->pw_uid, pwd->pw_gid, NULL, ADT_USER)) { 200 * If the user id is invalid, pwd is NULL. 203 audit_failure(uint_t event_id, int failure_code, struct passwd *pwd, 217 if (pwd != NULL) [all...] |
| /onnv/onnv-gate/usr/src/lib/pam_modules/authtok_get/ |
| authtok_get.c | 59 char *pwd; local 98 res = pam_get_item(pamh, PAM_AUTHTOK, (void **)&pwd); 101 if (pwd != NULL) { 113 dgettext(TEXT_DOMAIN, "New Password: "), &pwd); 118 if (pwd == NULL) { 127 (void) memset(pwd, 0, strlen(pwd)); 128 free(pwd); 151 char *pwd; local 167 "Re-enter new Password: "), &pwd); [all...] |
| /onnv/onnv-gate/usr/src/cmd/acct/ |
| accton.c | 41 #include <pwd.h> 46 struct passwd *pwd; variable in typeref:struct:passwd 56 if ((pwd = getpwnam("adm")) == NULL) { 59 admuid = pwd->pw_uid;
|
| /onnv/onnv-gate/usr/src/cmd/ssh/sshd/ |
| bsmaudit.h | 35 #include <pwd.h>
|
| /onnv/onnv-gate/usr/src/lib/pam_modules/rhosts_auth/ |
| rhosts_auth.c | 32 #include <pwd.h> 55 struct passwd pwd; local 89 if (getpwnam_r(lusername, &pwd, pwd_buffer, sizeof (pwd_buffer)) 93 if (pwd.pw_uid == 0)
|
| /onnv/onnv-gate/usr/src/lib/pam_modules/sample/ |
| sample_password.c | 36 #include <pwd.h>
|
| /onnv/onnv-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
| kuserok.c | 41 #include <pwd.h> 87 struct passwd *pwd) 163 "FILE:/tmp/krb5cc_%d", pwd->pw_uid); 188 "/tmp/krb5cc_%d", pwd->pw_uid); 189 if (safechown(ccache_name_buf, pwd->pw_uid, 190 pwd->pw_gid, -1) == -1) { 268 struct passwd *pwd; local 283 if (k5_getpwnam_r(luser, &pwx, pwbuf, sizeof(pwbuf), &pwd) != 0) 285 (void) strncpy(pbuf, pwd->pw_dir, sizeof(pbuf) - 1); 300 if (krb5_move_ccache(context, principal, pwd)) [all...] |