Home
last modified time | relevance | path

Searched refs:pw (Results 1 – 25 of 187) sorted by relevance

12345678

/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Djobs.c208 for(pw=job.pwlist;pw;pw=pwnext) in job_chldtrap()
352 for(pw=job.pwlist;pw;pw=pw->p_nxtjob) in job_reap()
760 for(pw=job.pwlist;pw;pw=pw->p_nxtjob) in job_close()
1282 for(;pw;pw=pw->p_nxtjob) in job_byname()
1487 for(pw=job.pwlist; pw; pw=pw->p_nxtjob) in job_bypid()
1503 for(pw=job.pwlist;pw; pw = pw->p_nxtjob) in job_byjid()
1724 for(pw=job.pwlist; pw; pw=px) in job_wait()
1751 for(; pw; pw=pw->p_nxtproc) in job_switch()
1806 for(; pw; pw=pw->p_nxtproc) in job_fgrp()
1818 for(pw=px ;pw ;pw=pw->p_nxtproc) in job_unstop()
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Dsignalfd.c192 for (pw = list_head(lst); pw != NULL; pw = list_next(lst, pw)) { in signalfd_wake_list_add()
198 pw = kmem_zalloc(sizeof (*pw), KM_SLEEP); in signalfd_wake_list_add()
206 return (pw); in signalfd_wake_list_add()
215 for (pw = list_head(lst); pw != NULL; pw = list_next(lst, pw)) { in signalfd_wake_list_rm()
227 return (pw); in signalfd_wake_list_rm()
249 kmem_free(pw, sizeof (*pw)); in signalfd_wake_list_cleanup()
281 pollwakeup(&pw->spw_pollhd, pw->spw_pollev); in signalfd_wake_task()
283 kmem_free(pw, sizeof (*pw)); in signalfd_wake_task()
322 pw = list_next(lst, pw); in signalfd_pollwake_cb()
337 pw = next; in signalfd_pollwake_cb()
[all …]
/illumos-gate/usr/src/cmd/lp/lib/oam/
H A Dfmtmsg.c156 pw = p; in wrap()
158 while (*pw) { in wrap()
164 pw++; in wrap()
171 if (!*pw) { in wrap()
176 len = pw - p; in wrap()
179 ppw = pw; in wrap()
186 while (pw > p) { in wrap()
188 (wdbindf(*(pw - 1), *pw, 1) < 5)) { in wrap()
191 pw--; in wrap()
194 if (pw != p) { in wrap()
[all …]
/illumos-gate/usr/src/cmd/newtask/
H A Dnewtask.c100 struct passwd *pw; in main() local
199 pw->pw_shell = SHELL; in main()
201 pw->pw_shell = SHELL2; in main()
232 pw->pw_name); in main()
235 pw->pw_name); in main()
672 (pw = getpwnam(tmp_name)) == NULL || (pw->pw_uid != uid) || in match_user()
674 pw = NULL; in match_user()
681 if (pw == NULL) { in match_user()
682 if (((pw = getpwuid(uid)) == NULL) || pw->pw_name == NULL) { in match_user()
698 return (pw); in match_user()
[all …]
/illumos-gate/usr/src/cmd/mailx/
H A Dgetname.c59 struct passwd *pw; in getname() local
66 pw = getpwuid(uid); in getname()
67 if (pw) { in getname()
68 strcpy(namebuf, pw->pw_name); in getname()
82 struct passwd *pw; in getuserid() local
89 pw = getpwnam(name); in getuserid()
90 return pw ? pw->pw_uid : (uid_t)-1; in getuserid()
/illumos-gate/usr/src/lib/libnsl/yp/
H A Dyppasswd_xdr.c35 xdr_passwd(XDR *xdrsp, struct passwd *pw) in xdr_passwd() argument
37 if (!xdr_wrapstring(xdrsp, &pw->pw_name)) in xdr_passwd()
39 if (!xdr_wrapstring(xdrsp, &pw->pw_passwd)) in xdr_passwd()
41 if (!xdr_int(xdrsp, (int *)&pw->pw_uid)) in xdr_passwd()
43 if (!xdr_int(xdrsp, (int *)&pw->pw_gid)) in xdr_passwd()
45 if (!xdr_wrapstring(xdrsp, &pw->pw_gecos)) in xdr_passwd()
47 if (!xdr_wrapstring(xdrsp, &pw->pw_dir)) in xdr_passwd()
49 return (xdr_wrapstring(xdrsp, &pw->pw_shell)); in xdr_passwd()
/illumos-gate/usr/src/cmd/ypcmd/yppasswd/
H A Dyppasswdxdr.c36 xdr_passwd(XDR *xdrs, struct passwd *pw) in xdr_passwd() argument
38 if (!xdr_wrapstring(xdrs, &pw->pw_name)) { in xdr_passwd()
41 if (!xdr_wrapstring(xdrs, &pw->pw_passwd)) { in xdr_passwd()
44 if (!xdr_uid_t(xdrs, &pw->pw_uid)) { in xdr_passwd()
47 if (!xdr_gid_t(xdrs, (&pw->pw_gid))) { in xdr_passwd()
50 if (!xdr_wrapstring(xdrs, &pw->pw_gecos)) { in xdr_passwd()
53 if (!xdr_wrapstring(xdrs, &pw->pw_dir)) { in xdr_passwd()
56 if (!xdr_wrapstring(xdrs, &pw->pw_shell)) { in xdr_passwd()
/illumos-gate/usr/src/cmd/groups/
H A Dgroups.c65 struct passwd *pw; in main() local
80 if ((pw = getpwuid(getuid())) == NULL) { in main()
84 showgroups(pw); in main()
88 if ((pw = getpwnam(*argv)) == NULL) { in main()
95 showgroups(pw); in main()
104 showgroups(struct passwd *pw) in showgroups() argument
120 groups[0] = pw->pw_gid; in showgroups()
122 ngroups = _getgroupsbymember(pw->pw_name, groups, ngroups_max, 1); in showgroups()
127 (void) printf("%d", (int)pw->pw_gid); in showgroups()
/illumos-gate/usr/src/lib/nsswitch/compat/common/
H A Dgetpwent.c184 struct passwd *pw = (struct passwd *)argp->buf.result; local
207 pw->pw_name, fields[1]);
210 if (pw->pw_age != 0 && *pw->pw_age != '\0')
212 pw->pw_name, pw->pw_passwd, pw->pw_age);
215 pw->pw_name, pw->pw_passwd);
224 pw->pw_uid,
225 pw->pw_gid,
226 fields[4] != 0 ? fields[4] : pw->pw_gecos,
227 fields[5] != 0 ? fields[5] : pw->pw_dir,
228 fields[6] != 0 ? fields[6] : pw->pw_shell);
/illumos-gate/usr/src/lib/passwdutil/
H A Dutils.c61 free_pwd(struct passwd *pw) in free_pwd() argument
63 if (pw->pw_name) free(pw->pw_name); in free_pwd()
64 if (pw->pw_passwd) free(pw->pw_passwd); in free_pwd()
65 if (pw->pw_gecos) free(pw->pw_gecos); in free_pwd()
66 if (pw->pw_dir) free(pw->pw_dir); in free_pwd()
67 if (pw->pw_shell) free(pw->pw_shell); in free_pwd()
68 free(pw); in free_pwd()
H A Dnss_attr.c222 struct passwd *pw; in nss_getattr() local
231 pw = pwbuf->pwd; in nss_getattr()
237 if ((w->data.val_s = strdup(pw->pw_name)) == NULL) in nss_getattr()
241 if ((w->data.val_s = strdup(pw->pw_comment)) == NULL) in nss_getattr()
245 if ((w->data.val_s = strdup(pw->pw_gecos)) == NULL) in nss_getattr()
249 if ((w->data.val_s = strdup(pw->pw_dir)) == NULL) in nss_getattr()
253 if ((w->data.val_s = strdup(pw->pw_shell)) == NULL) in nss_getattr()
266 if ((w->data.val_s = strdup(pw->pw_age)) == NULL) in nss_getattr()
276 w->data.val_i = pw->pw_uid; in nss_getattr()
279 w->data.val_i = pw->pw_gid; in nss_getattr()
/illumos-gate/usr/src/cmd/acct/
H A Dacctdusg.c81 struct passwd *pw; in main() local
104 while ((pw = fgetpwent(pwf)) != NULL) { in main()
105 if ((entry = hash_find(pw->pw_uid)) == NULL) in main()
106 entry = hash_insert(pw->pw_uid); in main()
107 validate_entry(entry, pw); in main()
203 validate_entry(struct disk *entry, struct passwd *pw) in validate_entry() argument
205 (void) strlcpy(entry->dsk_name, pw->pw_name, in validate_entry()
215 struct passwd *pw; in charge() local
250 pw = getpwuid(statb.st_uid); in charge()
252 if (pw != NULL) { in charge()
[all …]
/illumos-gate/usr/src/cmd/logins/
H A Dlogins.c94 #define isauserlogin(pw) (pw->pw_uid > MAXSYSTEMLOGIN) argument
95 #define isasystemlogin(pw) (pw->pw_uid <= MAXSYSTEMLOGIN) argument
1112 lpw->pw.pw_name = strdup(pw->pw_name); in fill_localpw()
1113 lpw->pw.pw_passwd = strdup(pw->pw_passwd); in fill_localpw()
1114 lpw->pw.pw_uid = pw->pw_uid; in fill_localpw()
1115 lpw->pw.pw_gid = pw->pw_gid; in fill_localpw()
1116 lpw->pw.pw_age = strdup(pw->pw_age); in fill_localpw()
1117 lpw->pw.pw_comment = strdup(pw->pw_comment); in fill_localpw()
1118 lpw->pw.pw_gecos = strdup(pw->pw_gecos); in fill_localpw()
1119 lpw->pw.pw_dir = strdup(pw->pw_dir); in fill_localpw()
[all …]
/illumos-gate/usr/src/cmd/keyserv/
H A Dnewkey.c94 struct passwd *pw; in main() local
142 pw = getpwnam(username); in main()
143 if (pw == NULL) { in main()
148 uid = pw->pw_uid; in main()
251 char *pw;
338 struct passwd *pw; local
349 pw = getpwuid(uid);
351 if (! pw) {
357 spw = getspnam(pw->pw_name);
364 program_name, pw->pw_name);
[all …]
/illumos-gate/usr/src/cmd/pools/poolstat/
H A Dpoolstat.c459 int pw = 0; in default_f() local
468 if (pw < 0) in default_f()
469 pw = 0; in default_f()
518 pw = 0; in bigno_f()
524 tag = 'K'; pw -= 1; in bigno_f()
527 tag = 'K'; pw -= 2; in bigno_f()
574 if (pw < 0) in bigno_f()
575 pw = 0; in bigno_f()
591 int pw = 0; in used_stat_f() local
605 if (pw < 0) in used_stat_f()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dirpmarshall.c357 pw->pw_name = name; in irp_unmarshall_pw()
358 pw->pw_passwd = pass; in irp_unmarshall_pw()
359 pw->pw_uid = pwuid; in irp_unmarshall_pw()
360 pw->pw_gid = pwgid; in irp_unmarshall_pw()
362 pw->pw_dir = dir; in irp_unmarshall_pw()
2246 pw = &pw1; in main()
2247 memset(pw, 0xef, sizeof (*pw)); in main()
2254 pw->pw_name, pw->pw_passwd, (long)pw->pw_uid, in main()
2257 pw->pw_class, (long)pw->pw_change, pw->pw_gecos); in main()
2259 pw->pw_shell, pw->pw_dir); in main()
[all …]
/illumos-gate/usr/src/uts/common/syscall/
H A Dtasksys.c235 projlist_walk_t *pw = (projlist_walk_t *)buf; in tasksys_projlist_cb() local
237 if (pw && pw->pw_bufsz >= sizeof (projid_t)) { in tasksys_projlist_cb()
238 *pw->pw_buf = kp->kpj_id; in tasksys_projlist_cb()
239 pw->pw_buf++; in tasksys_projlist_cb()
240 pw->pw_bufsz -= sizeof (projid_t); in tasksys_projlist_cb()
261 projlist_walk_t pw; in tasksys_projlist() local
271 kbuf = pw.pw_buf = kmem_zalloc(bufsz, KM_SLEEP); in tasksys_projlist()
272 pw.pw_bufsz = bufsz; in tasksys_projlist()
274 ret = project_walk_all(getzoneid(), tasksys_projlist_cb, &pw); in tasksys_projlist()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dstruid.c68 register struct passwd* pw; in struid() local
82 if (pw = getpwnam(name)) in struid()
83 id = pw->pw_uid; in struid()
93 else if (streq(name, "root") && (pw = getpwnam("Administrator"))) in struid()
94 id = pw->pw_uid; in struid()
H A Dstrgid.c74 register struct passwd* pw; in strgid() local
90 else if (pw = getpwnam(name)) in strgid()
91 id = pw->pw_gid; in strgid()
105 else if (pw = getpwnam("Administrator")) in strgid()
106 id = pw->pw_gid; in strgid()
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dmbdb.c188 sm_mbdb_frompw(user, pw) in sm_mbdb_frompw() argument
190 struct passwd *pw;
193 (void) sm_strlcpy(user->mbdb_name, pw->pw_name,
195 user->mbdb_uid = pw->pw_uid;
196 user->mbdb_gid = pw->pw_gid;
197 sm_pwfullname(pw->pw_gecos, pw->pw_name, user->mbdb_fullname,
199 (void) sm_strlcpy(user->mbdb_homedir, pw->pw_dir,
316 struct passwd *pw; local
332 pw = getpwnam(name);
333 if (pw == NULL)
[all …]
/illumos-gate/usr/src/lib/libnsl/key/
H A Dxcrypt.c147 passwd2des(pw, key) in passwd2des() argument
148 char *pw; in passwd2des()
154 for (i = 0; *pw; i = (i+1) % 8) {
155 key[i] ^= *pw++ << 1;
433 const char *pw, in passwd2des_g() argument
457 plen = strlen(pw); in passwd2des_g()
473 (void) memcpy(text, pw, plen); in passwd2des_g()
476 for (i = 0, j = 0; pw[j]; j++) { in passwd2des_g()
477 tkey.c[i] ^= pw[j] << 1; in passwd2des_g()
515 for (j = 0; pw[j]; j++) { in passwd2des_g()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_pwdutil.c620 smb_passwd_t *pw; in smb_pwd_fgetent() local
637 pw = pwbuf->pw_pwd; in smb_pwd_fgetent()
638 bzero(pw, sizeof (smb_passwd_t)); in smb_pwd_fgetent()
640 (void) strlcpy(pw->pw_name, argv[SMB_PWD_NAME], sizeof (pw->pw_name)); in smb_pwd_fgetent()
643 pw->pw_flags |= SMB_PWF_DISABLE; in smb_pwd_fgetent()
657 (char *)pw->pw_lmhash, SMBAUTH_HASH_SZ); in smb_pwd_fgetent()
659 pw->pw_flags |= SMB_PWF_LM; in smb_pwd_fgetent()
667 (char *)pw->pw_nthash, SMBAUTH_HASH_SZ); in smb_pwd_fgetent()
669 pw->pw_flags |= SMB_PWF_NT; in smb_pwd_fgetent()
735 smb_passwd_t *pw = pwbuf->pw_pwd; in smb_pwd_fputent() local
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dacquire_cred_with_pw.c123 char *pw; local
129 pw = strdup("");
131 pw = strdup(password->value);
133 pw = malloc(password->length + 1);
134 if (pw == NULL) {
138 *pw = '\0';
139 (void) strlcat(pw, password->value, password->length + 1);
142 if (pw == NULL) {
149 code = krb5_get_init_creds_password(context, &creds, desired_name, pw,
191 if (pw)
[all …]
/illumos-gate/usr/src/cmd/fm/eversholt/files/common/
H A Dpci.esc126 event error.io.pci.nr-pw-d@PCIFN;
128 event error.io.pci.ta-pw-d@PCIFN;
672 error.io.pci.nr-pw-u@PCIFN,
673 error.io.pci.ta-pw-u@PCIFN;
676 error.io.pci.nr-pw-u@PCIFN,
677 error.io.pci.ta-pw-u@PCIFN;
732 error.io.pci.nr-pw-d@PCIFN,
733 error.io.pci.ta-pw-d@PCIFN;
812 error.io.pci.nr-pw-d@PCIFN,
813 error.io.pci.ta-pw-d@PCIFN;
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dwatchpoint.c609 !(pw->wpaddr <= vaddr && vaddr < pw->wpaddr + pw->wpsize)) { in do_watch_step()
616 ASSERT(pw->wpaddr <= vaddr && vaddr < pw->wpaddr + pw->wpsize); in do_watch_step()
619 pw->wppc = pc; in do_watch_step()
625 pw->wpaddr = vaddr; in do_watch_step()
626 pw->wpsize = sz; in do_watch_step()
629 pw->wppc = pc; in do_watch_step()
652 if (pw->wpmapped) in undo_watch_step()
653 pr_unmappage(pw->wpaddr, pw->wpsize, S_rw[i], in undo_watch_step()
664 pw->wpcode = 0; in undo_watch_step()
667 pw->wpsize = 0; in undo_watch_step()
[all …]

12345678