/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | getlogin.c | 28 #include <pwd.h> 37 struct passwd *pwd; local 38 if ((pwd = (struct passwd *)_getpwuid(_getuid())) != NULL) 39 return (pwd->pw_name);
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | 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 [all...] |
/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | mygetwd.c | 47 char *pwd; /* PWD environment variable value */ local 57 if ((pwd = getenv("PWD")) != NULL && *pwd != '\0' && 58 stat(pwd, &tmp_sb) == 0 && 60 (void) strcpy(dir, pwd); 61 return (pwd);
|
/illumos-gate/usr/src/lib/libcmdutils/common/ |
H A D | uid.c | 38 #include <pwd.h> 52 struct passwd *pwd; local 56 for (pwd = getpwent(); pwd != NULL; pwd = getpwent()) { 57 if (isreserveduid(pwd->pw_uid)) /* Skip reserved IDs */ 59 if (pwd->pw_uid >= uid) { 60 if (pwd->pw_uid == stop) { /* Overflow check */ 64 uid = pwd->pw_uid + 1; 67 if (pwd [all...] |
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | 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; /* 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...] |
/illumos-gate/usr/src/cmd/tsol/updatehome/ |
H A D | setupfiles.h | 34 #include <pwd.h> 47 extern int __setupfiles(const struct passwd *pwd, const m_label_t *, int flags);
|
H A D | updatehome.c | 76 #include <pwd.h> 101 struct passwd *pwd; /* current user's password file entry */ local 153 if ((pwd = getpwuid(uid)) == (struct passwd *)0) { 163 if (((userp = getusernam(pwd->pw_name)) == NULL) || 178 " user %s.\n"), pwd->pw_name); 183 if (__setupfiles(pwd, min_sl, flags) != 0) {
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | 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);
|
/illumos-gate/usr/src/head/rpcsvc/ |
H A D | yppasswd.h | 34 #include <pwd.h>
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | 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 498 dup_pw_ent(struct passwd *pwd) argument [all...] |
/illumos-gate/usr/src/lib/passwdutil/ |
H A D | nis_attr.c | 31 #include <pwd.h> 77 struct passwd *pwd; member in struct:__anon4261 106 nis_to_pwd(char *nis, struct passwd *pwd) argument 108 pwd->pw_name = strsep(&nis, ":"); 109 pwd->pw_passwd = strsep(&nis, ":"); 110 pwd->pw_uid = atoi(strsep(&nis, ":")); 111 pwd->pw_gid = atoi(strsep(&nis, ":")); 112 pwd->pw_gecos = strsep(&nis, ":"); 113 pwd->pw_dir = strsep(&nis, ":"); 114 pwd [all...] |
H A D | nss_attr.c | 29 #include <pwd.h> 66 struct passwd *pwd; member in struct:pwbuf 113 if (pwbuf->pwd == NULL) 114 pwbuf->pwd = (struct passwd *) 116 if (pwbuf->pwd == NULL) { 140 if (pwbuf->pwd) 141 free(pwbuf->pwd); 158 if (pwbuf->pwd) { 163 if (getpwnam_r(name, pwbuf->pwd, pwbuf->pwd_scratch, 184 struct passwd pwd; local [all...] |
/illumos-gate/usr/src/cmd/userattr/ |
H A D | userattr.c | 28 #include <pwd.h> 76 struct passwd *pwd; local 103 if ((pwd = getpwuid(uid)) == NULL) { 108 user = pwd->pw_name; 110 if ((pwd = getpwnam(user)) == NULL) {
|
/illumos-gate/usr/src/cmd/cmd-inet/common/ |
H A D | 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);
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | cuserid.c | 36 #include <pwd.h> 48 struct passwd pwd; local 64 } else if ((pw = getpwuid_r(getuid(), &pwd, buffer, BUFSIZ)) != NULL) {
|
/illumos-gate/usr/src/cmd/tip/ |
H A D | log.c | 25 struct passwd *pwd; local 37 if ((pwd = getpwuid(uid)) == NOPWD) 40 user = pwd->pw_name;
|
/illumos-gate/usr/src/lib/libnisdb/yptol/ |
H A D | shim_changepasswd.c | 58 #include <pwd.h> 382 proc_maps(char *domain, struct passwd_entry *pwd) argument 391 ans = proc_map_list(map_list, domain, pwd, FALSE); 411 ans = proc_map_list(map_list, domain, pwd, TRUE); 433 struct passwd_entry *pwd, bool_t adjunct_flag) 442 if ((adjunct_flag) && (!pwd->adjunct)) { 473 if (0 != (ans = update_single_map(map_name, pwd, adjunct_flag))) 534 update_single_map(char *map_name, struct passwd_entry *pwd, bool_t adjunct_flag) argument 542 data.dptr = pwd->adjunct_str; 544 data.dptr = pwd 432 proc_map_list(char **map_list, char *domain, struct passwd_entry *pwd, bool_t adjunct_flag) argument 802 decode_pwd_entry(datum *data, struct passwd_entry *pwd, bool_t adjunct) argument 937 free_pwd_entry(struct passwd_entry *pwd) argument 980 create_pwd_str(struct passwd_entry *pwd, bool_t adjunct) argument 1129 put_new_info(struct passwd_entry *pwd, char *domain) argument [all...] |
/illumos-gate/usr/src/cmd/idmap/idmapd/ |
H A D | directory_provider_nsswitch.c | 31 #include <pwd.h> 50 directory_entry_rpc *pent, struct passwd *pwd, struct group *grp, 82 struct passwd *pwd = NULL; local 130 pwd = getpwuid(rid - LOCALRID_UID_MIN); 131 if (pwd == NULL) { 180 * pwd or grp. 190 pwd = getpwnam(name); 191 if (pwd == NULL && errno != 0) { 227 if (pwd == NULL && grp == NULL) 230 de = directory_provider_nsswitch_populate(&del[i], pwd, gr 248 directory_provider_nsswitch_populate( directory_entry_rpc *pent, struct passwd *pwd, struct group *grp, idmap_utf8str_list *attrs) argument [all...] |
/illumos-gate/usr/src/cmd/login/ |
H A D | login_audit.c | 28 #include <pwd.h> 59 audit_success(uint_t event_id, struct passwd *pwd, char *optional_text) argument 65 assert(pwd != NULL); 71 if (adt_set_user(ah, pwd->pw_uid, pwd->pw_gid, 72 pwd->pw_uid, pwd->pw_gid, NULL, ADT_USER)) { 203 * If the user id is invalid, pwd is NULL. 206 audit_failure(uint_t event_id, int failure_code, struct passwd *pwd, argument 220 if (pwd ! [all...] |
/illumos-gate/usr/src/lib/pam_modules/authtok_get/ |
H A D | 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...] |
/illumos-gate/usr/src/lib/pam_modules/rhosts_auth/ |
H A D | 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)
|
/illumos-gate/usr/src/lib/pam_modules/sample/ |
H A D | sample_password.c | 36 #include <pwd.h>
|
/illumos-gate/usr/src/head/ |
H A D | crypt.h | 35 #include <pwd.h>
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | 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;
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | 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)) 86 krb5_move_ccache(krb5_context kcontext, krb5_principal client, struct passwd *pwd) argument [all...] |