Searched refs:pw (Results 1 - 25 of 178) sorted by relevance

12345678

/illumos-gate/usr/src/cmd/mailx/
H A Dgetname.c59 struct passwd *pw; local
66 pw = getpwuid(uid);
67 if (pw) {
68 strcpy(namebuf, pw->pw_name);
82 struct passwd *pw; local
89 pw = getpwnam(name);
90 return pw ? pw->pw_uid : (uid_t)-1;
/illumos-gate/usr/src/lib/libnsl/yp/
H A Dyppasswd_xdr.c35 xdr_passwd(XDR *xdrsp, struct passwd *pw) argument
37 if (!xdr_wrapstring(xdrsp, &pw->pw_name))
39 if (!xdr_wrapstring(xdrsp, &pw->pw_passwd))
41 if (!xdr_int(xdrsp, (int *)&pw->pw_uid))
43 if (!xdr_int(xdrsp, (int *)&pw->pw_gid))
45 if (!xdr_wrapstring(xdrsp, &pw->pw_gecos))
47 if (!xdr_wrapstring(xdrsp, &pw->pw_dir))
49 return (xdr_wrapstring(xdrsp, &pw->pw_shell));
/illumos-gate/usr/src/cmd/ypcmd/yppasswd/
H A Dyppasswdxdr.c36 xdr_passwd(XDR *xdrs, struct passwd *pw) argument
38 if (!xdr_wrapstring(xdrs, &pw->pw_name)) {
41 if (!xdr_wrapstring(xdrs, &pw->pw_passwd)) {
44 if (!xdr_uid_t(xdrs, &pw->pw_uid)) {
47 if (!xdr_gid_t(xdrs, (&pw->pw_gid))) {
50 if (!xdr_wrapstring(xdrs, &pw->pw_gecos)) {
53 if (!xdr_wrapstring(xdrs, &pw->pw_dir)) {
56 if (!xdr_wrapstring(xdrs, &pw->pw_shell)) {
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Djobs.c169 # define job_unstop(pw)
184 register struct process *pw,*pwnext; local
191 for(pw=job.pwlist;pw;pw=pwnext)
193 pwnext = pw->p_nxtjob;
194 if((pw->p_flag&(P_BG|P_DONE)) != (P_BG|P_DONE))
196 pw->p_flag &= ~P_BG;
199 shp->bckpid = pw->p_pid;
200 shp->savexit = pw
247 register struct process *pw; local
613 register struct process *pw; local
688 job_set(register struct process *pw) argument
705 job_reset(register struct process *pw) argument
734 register struct process *pw; local
765 register struct process *pw; local
829 job_terminate(register struct process *pw,register int sig) argument
843 job_list(struct process *pw,register int flag) argument
926 register struct process *pw=job.pwlist; local
951 job_kill(register struct process *pw,register int sig) argument
1051 register struct process *pw = job.pwlist; local
1085 register struct process *pw, *px; local
1129 register struct process *pw; local
1244 register struct process *pw, *px; local
1260 register struct process *pw; local
1272 job_prmsg(register struct process *pw) argument
1300 register struct process *pw=0,*px; local
1494 job_switch(register struct process *pw,int bgflag) argument
1558 job_fgrp(register struct process *pw, int newgrp) argument
1570 register struct process *pw; local
1599 register struct process *pw; local
1647 job_unlink(register struct process *pw) argument
1679 register struct process *pw; local
1795 register struct process *pw, *px, *pwnext; local
[all...]
/illumos-gate/usr/src/cmd/groups/
H A Dgroups.c65 struct passwd *pw; local
80 if ((pw = getpwuid(getuid())) == NULL) {
84 showgroups(pw);
88 if ((pw = getpwnam(*argv)) == NULL) {
95 showgroups(pw);
104 showgroups(struct passwd *pw) argument
120 groups[0] = pw->pw_gid;
122 ngroups = _getgroupsbymember(pw->pw_name, groups, ngroups_max, 1);
127 (void) printf("%d", (int)pw->pw_gid);
/illumos-gate/usr/src/cmd/lp/lib/oam/
H A Dfmtmsg.c115 wchar_t *p, *pw, *ppw;
158 pw = p;
160 while (*pw) {
161 if (iswprint(*pw))
162 tmpcol += wcwidth(*pw);
166 pw++;
169 * At this point, pw may point to:
173 if (!*pw) {
178 len = pw - p;
181 ppw = pw;
113 wchar_t *p, *pw, *ppw; local
[all...]
/illumos-gate/usr/src/uts/common/io/
H A Dsignalfd.c190 sigfd_poll_waiter_t *pw; local
192 for (pw = list_head(lst); pw != NULL; pw = list_next(lst, pw)) {
193 if (pw->spw_state == state)
197 if (pw == NULL) {
198 pw = kmem_zalloc(sizeof (*pw), KM_SLEEP);
202 pw
213 sigfd_poll_waiter_t *pw; local
234 sigfd_poll_waiter_t *pw; local
276 sigfd_poll_waiter_t *pw = arg; local
304 sigfd_poll_waiter_t *pw; local
586 sigfd_poll_waiter_t *pw; local
656 sigfd_poll_waiter_t *pw = NULL; local
[all...]
/illumos-gate/usr/src/lib/libast/common/string/
H A Dstruid.c68 register struct passwd* pw; local
82 if (pw = getpwnam(name))
83 id = pw->pw_uid;
93 else if (streq(name, "root") && (pw = getpwnam("Administrator")))
94 id = pw->pw_uid;
H A Dstrgid.c74 register struct passwd* pw; local
90 else if (pw = getpwnam(name))
91 id = pw->pw_gid;
105 else if (pw = getpwnam("Administrator"))
106 id = pw->pw_gid;
H A Dfmtuid.c64 register struct passwd* pw; local
78 if (pw = getpwuid(uid))
80 name = pw->pw_name;
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dpname_to_uid.c63 struct passwd *pw; local
86 if (pw = getpwnam(lname))
88 *uidOut = pw->pw_uid;
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dcuserid.c47 struct passwd *pw; local
64 } else if ((pw = getpwuid_r(getuid(), &pwd, buffer, BUFSIZ)) != NULL) {
65 (void) strlcpy(s, pw->pw_name, L_cuserid);
/illumos-gate/usr/src/lib/passwdutil/
H A Dutils.c61 free_pwd(struct passwd *pw) argument
63 if (pw->pw_name) free(pw->pw_name);
64 if (pw->pw_passwd) free(pw->pw_passwd);
65 if (pw->pw_gecos) free(pw->pw_gecos);
66 if (pw->pw_dir) free(pw->pw_dir);
67 if (pw
[all...]
H A Dnss_attr.c222 struct passwd *pw; local
231 pw = pwbuf->pwd;
237 if ((w->data.val_s = strdup(pw->pw_name)) == NULL)
241 if ((w->data.val_s = strdup(pw->pw_comment)) == NULL)
245 if ((w->data.val_s = strdup(pw->pw_gecos)) == NULL)
249 if ((w->data.val_s = strdup(pw->pw_dir)) == NULL)
253 if ((w->data.val_s = strdup(pw->pw_shell)) == NULL)
266 if ((w->data.val_s = strdup(pw->pw_age)) == NULL)
276 w->data.val_i = pw->pw_uid;
279 w->data.val_i = pw
[all...]
/illumos-gate/usr/src/cmd/sendmail/util/
H A Dmailq.c42 struct passwd *pw = getpwuid(getuid()); local
46 if (pw && chkauthattr(MAILQ_AUTH, pw->pw_name)) {
/illumos-gate/usr/src/cmd/newtask/
H A Dnewtask.c100 struct passwd *pw; local
159 if ((pw = match_user(uid, projname, 1)) == NULL) {
179 pw->pw_name, finalize_flag)) != 0) {
180 setproject_err(pw->pw_name, projname, error, NULL);
197 if (strcmp(pw->pw_shell, "") == 0) {
199 pw->pw_shell = SHELL;
201 pw->pw_shell = SHELL2;
214 size_t len_home = strlen(pw->pw_dir) + strlen("HOME=") + 1;
215 size_t len_logname = strlen(pw->pw_name) + strlen("LOGNAME=") +
217 size_t len_shell = strlen(pw
661 struct passwd *pw = NULL; local
[all...]
/illumos-gate/usr/src/cmd/acct/
H A Dacctdusg.c81 struct passwd *pw; local
104 while ((pw = fgetpwent(pwf)) != NULL) {
105 if ((entry = hash_find(pw->pw_uid)) == NULL)
106 entry = hash_insert(pw->pw_uid);
107 validate_entry(entry, pw);
203 validate_entry(struct disk *entry, struct passwd *pw) argument
205 (void) strlcpy(entry->dsk_name, pw->pw_name,
215 struct passwd *pw; local
250 pw = getpwuid(statb.st_uid);
252 if (pw !
[all...]
/illumos-gate/usr/src/lib/pam_modules/sample/
H A Dsample_acct_mgmt.c81 struct passwd *pw; local
84 pw = getpwuid(uid);
85 if (pw == NULL)
87 user = pw->pw_name;
/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
[all...]
/illumos-gate/usr/src/cmd/keyserv/
H A Dnewkey.c94 struct passwd *pw; local
142 pw = getpwnam(username);
143 if (pw == NULL) {
148 uid = pw->pw_uid;
246 setpublicmap(name, public, secret, database, pw)
251 char *pw;
292 return (ldap_update("dh192-0", name, public, secret, pw));
338 struct passwd *pw; local
349 pw = getpwuid(uid);
351 if (! pw) {
[all...]
/illumos-gate/usr/src/lib/libm/common/R/
H A Dnextafterf.c37 int *pw = (int *) &w; local
63 pw[0] = iz;
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dntlm.h51 ntlm_compute_lm_hash(uchar_t *hash, const char *pw);
54 ntlm_compute_nt_hash(uchar_t *hash, const char *pw);
/illumos-gate/usr/src/cmd/roles/
H A Droles.c76 register struct passwd *pw; local
80 if ((pw = getpwuid(getuid())) == NULL) {
85 username = pw->pw_name;
/illumos-gate/usr/src/ucbcmd/groups/
H A Dgroups.c74 struct passwd *pw; local
79 if ((pw = getpwnam(user)) == NULL) {
86 if (pw->pw_gid == gr->gr_gid) {
/illumos-gate/usr/src/uts/common/syscall/
H A Dtasksys.c235 projlist_walk_t *pw = (projlist_walk_t *)buf; local
237 if (pw && pw->pw_bufsz >= sizeof (projid_t)) {
238 *pw->pw_buf = kp->kpj_id;
239 pw->pw_buf++;
240 pw->pw_bufsz -= sizeof (projid_t);
261 projlist_walk_t pw; local
271 kbuf = pw.pw_buf = kmem_zalloc(bufsz, KM_SLEEP);
272 pw.pw_bufsz = bufsz;
274 ret = project_walk_all(getzoneid(), tasksys_projlist_cb, &pw);
[all...]

Completed in 93 milliseconds

12345678