HomeSort by relevance Sort by last modified time
    Searched refs:pw (Results 1 - 25 of 258) sorted by null

1 2 3 4 5 6 7 8 91011

  /onnv/onnv-gate/usr/src/cmd/mailx/
getname.c 59 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;
  /onnv/onnv-gate/usr/src/lib/libbc/libc/compat/sys5/
getpw.c 34 struct passwd *pw; local
37 pw = getpwuid(uid);
38 if(pw == 0)
40 strcpy(buf, pw->pw_name);
42 strcat(buf, pw->pw_passwd);
43 if (*pw->pw_age != '\0') {
45 strcat(buf, pw->pw_age);
48 sprintf(numbuf, "%d", pw->pw_uid);
51 sprintf(numbuf, "%d", pw->pw_gid);
54 strcat(buf, pw->pw_gecos)
    [all...]
  /onnv/onnv-gate/usr/src/cmd/ssh/include/
port-aix.h 38 void aix_usrinfo(struct passwd *pw);
port-irix.h 17 void irix_setusercontext(struct passwd *pw);
  /onnv/onnv-gate/usr/src/lib/libbc/libc/compat/4.1/
getpw.c 34 struct passwd *pw; local
37 pw = getpwuid(uid);
38 if(pw == 0)
40 strcpy(buf, pw->pw_name);
42 strcat(buf, pw->pw_passwd);
44 sprintf(numbuf, "%d", pw->pw_uid);
47 sprintf(numbuf, "%d", pw->pw_gid);
50 strcat(buf, pw->pw_gecos);
52 strcat(buf, pw->pw_dir);
54 strcat(buf, pw->pw_shell)
    [all...]
  /onnv/onnv-gate/usr/src/lib/libbc/libc/gen/common/
crypt.c 36 crypt(pw, salt)
37 char *pw, *salt;
50 * passauth to determine if pw is valid. If so, we should return
55 if (pwdauth(salt+2, pw) == 0)
63 * grpauth to determine if pw is valid. If so, we should return
68 if (grpauth(salt+2, pw) == 0)
74 return (_crypt(pw, salt));
  /onnv/onnv-gate/usr/src/lib/libresolv2/common/irs/
irp_pw.c 72 static void free_passwd(struct passwd *pw);
77 struct irs_pw *pw; local
80 if (!(pw = memget(sizeof *pw))) {
84 memset(pw, 0, sizeof *pw);
87 memput(pw, sizeof *pw);
94 pw->private = pvt;
95 pw->close = pw_close
132 struct passwd *pw = &pvt->passwd; local
176 struct passwd *pw = &pvt->passwd; local
228 struct passwd *pw = &pvt->passwd; local
    [all...]
gen_pw.c 75 struct irs_pw *pw; local
78 if (!(pw = memget(sizeof *pw))) {
82 memset(pw, 0x5e, sizeof *pw);
84 memput(pw, sizeof *pvt);
91 pw->private = pvt;
92 pw->close = pw_close;
93 pw->next = pw_next;
94 pw->byname = pw_byname
117 struct irs_pw *pw; local
138 struct irs_pw *pw; local
152 struct irs_pw *pw; local
169 struct irs_pw *pw; local
187 struct irs_pw *pw = rule->inst->pw; local
226 struct irs_pw *pw = rule->inst->pw; local
    [all...]
getpwent.c 108 struct irs_pw *pw; local
110 if (!net_data || !(pw = net_data->pw))
112 net_data->pw_last = (*pw->next)(pw);
118 struct irs_pw *pw; local
120 if (!net_data || !(pw = net_data->pw))
125 net_data->pw_last = (*pw->byname)(pw, name)
133 struct irs_pw *pw; local
148 struct irs_pw *pw; local
173 struct irs_pw *pw; local
    [all...]
getpwent_r.c 60 struct passwd *pw = getpwnam(login); local
63 if (pw == NULL) {
68 res = copy_passwd(pw, pwptr, buf, buflen);
76 struct passwd *pw = getpwnam(login); local
79 if (pw == NULL)
82 res = copy_passwd(pw, pwptr, buf, buflen);
97 struct passwd *pw = getpwuid(uid); local
100 if (pw == NULL) {
105 res = copy_passwd(pw, pwptr, buf, buflen);
113 struct passwd *pw = getpwuid(uid) local
132 struct passwd *pw = getpwent(); local
186 struct passwd *pw = fgetpwent(f); local
    [all...]
  /onnv/onnv-gate/usr/src/cmd/ypcmd/yppasswd/
yppasswdxdr.c 36 xdr_passwd(XDR *xdrs, struct passwd *pw)
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)) {
  /onnv/onnv-gate/usr/src/lib/libnsl/yp/
yppasswd_xdr.c 35 xdr_passwd(XDR *xdrsp, struct passwd *pw)
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));
  /onnv/onnv-gate/usr/src/cmd/ssh/libopenbsd-compat/common/
port-aix.c 41 aix_usrinfo(struct passwd *pw)
46 cp = xmalloc(16 + 2 * strlen(pw->pw_name));
47 i = sprintf(cp, "LOGNAME=%s%cNAME=%s%c", pw->pw_name, 0,
48 pw->pw_name, 0);
port-irix.c 16 irix_setusercontext(struct passwd *pw)
30 jid = jlimit_startjob(pw->pw_name, pw->pw_uid, "interactive");
43 if ((projid = getdfltprojuser(pw->pw_name)) == -1) {
49 (int)projid, pw->pw_name, strerror(errno));
53 debug("Setting sat id to %d", (int) pw->pw_uid);
54 if (satsetid(pw->pw_uid))
  /onnv/onnv-gate/usr/src/lib/libbc/libc/stdio/common/
cuserid.c 40 register struct passwd *pw; local
48 pw = getpwuid(getuid());
50 if (pw != NULL)
51 return (strcpy(s, pw->pw_name));
  /onnv/onnv-gate/usr/src/lib/libshell/common/sh/
jobs.c 169 # define job_unstop(pw)
184 register struct process *pw,*pwnext; local
189 for(pw=job.pwlist;pw;pw=pwnext)
191 pwnext = pw->p_nxtjob;
192 if((pw->p_flag&(P_BG|P_DONE)) != (P_BG|P_DONE))
194 pw->p_flag &= ~P_BG;
197 shp->bckpid = pw->p_pid;
198 shp->savexit = pw->p_exit
244 register struct process *pw; local
604 register struct process *pw; local
725 register struct process *pw; local
756 register struct process *pw; local
917 register struct process *pw=job.pwlist; local
1042 register struct process *pw = job.pwlist; local
1076 register struct process *pw, *px; local
1120 register struct process *pw; local
1235 register struct process *pw, *px; local
1251 register struct process *pw; local
1291 register struct process *pw=0,*px; local
1561 register struct process *pw; local
1590 register struct process *pw; local
1669 register struct process *pw; local
1785 register struct process *pw, *px, *pwnext; local
    [all...]
  /onnv/onnv-gate/usr/src/cmd/ssh/sshd/
auth-rh-rsa.c 34 auth_rhosts_rsa_key_allowed(struct passwd *pw, char *cuser, char *chost,
40 if (!auth_rhosts(pw, cuser))
43 host_status = check_key_in_hostfiles(pw, client_host_key,
55 auth_rhosts_rsa(struct passwd *pw, char *cuser, Key *client_host_key)
62 if (pw == NULL || client_host_key == NULL ||
69 if (!auth_rhosts_rsa_key_allowed(pw, cuser, chost, client_host_key)) {
88 pw->pw_name, cuser, chost);
auth-rhosts.c 156 auth_rhosts(struct passwd *pw, const char *client_user)
162 return auth_rhosts2(pw, client_user, hostname, ipaddr);
166 auth_rhosts2_raw(struct passwd *pw, const char *client_user, const char *hostname,
178 if (pw == NULL)
182 temporarily_use_uid(pw);
192 pw->pw_dir, rhosts_files[rhosts_file_index]);
206 if (pw->pw_uid != 0) {
208 client_user, pw->pw_name)) {
214 client_user, pw->pw_name)) {
224 if (stat(pw->pw_dir, &st) < 0)
    [all...]
auth.c 81 allowed_user(struct passwd * pw)
94 /* Shouldn't be called if pw is NULL, but better safe than sorry... */
95 if (!pw || !pw->pw_name)
99 spw = getspnam(pw->pw_name);
111 log("Account %.100s has expired", pw->pw_name);
117 pw->pw_name);
124 pw->pw_name);
129 /* Shouldn't be called if pw is NULL, but better safe than sorry... */
130 if (!pw || !pw->pw_name
580 struct passwd *pw; local
    [all...]
auth-krb4.c 63 tkt_root, authctxt->pw->pw_uid, (long)getpid());
79 st.st_uid == authctxt->pw->pw_uid)
104 struct passwd *pw; local
109 if ((pw = authctxt->pw) == NULL)
116 if (pw->pw_uid != 0 && krb_get_lrealm(realm, 1) == KSUCCESS) {
120 pw->pw_name);
124 r = krb_get_pw_in_tkt((char *) pw->pw_name, "", realm,
128 "failed: %s", pw->pw_name, krb_err_txt[r]);
132 chown(tkt_string(), pw->pw_uid, pw->pw_gid)
286 struct passwd *pw; local
341 struct passwd *pw; local
    [all...]
  /onnv/onnv-gate/usr/src/cmd/ssh/libssh/common/
uidswap.c 58 temporarily_use_uid(struct passwd *pw)
65 (u_int)pw->pw_uid, (u_int)pw->pw_gid,
95 if (initgroups(pw->pw_name, pw->pw_gid) < 0)
96 fatal("initgroups: %s: %.100s", pw->pw_name,
107 if (setregid(pw->pw_gid, -1) == -1)
108 debug("setregid(%u, -1): %.100s", (uint_t)pw->pw_gid, strerror(errno));
110 if (setreuid(pw->pw_uid, -1) == -1)
111 debug("setreuid(%u, -1): %.100s", (uint_t)pw->pw_uid, strerror(errno))
    [all...]
tildexpand.c 36 struct passwd *pw; local
57 pw = getpwuid(my_uid);
64 pw = getpwnam(user);
68 if (pw == NULL) {
76 pw_dir = pw->pw_dir;
  /onnv/onnv-gate/usr/src/cmd/groups/
groups.c 65 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)
120 groups[0] = pw->pw_gid;
122 ngroups = _getgroupsbymember(pw->pw_name, groups, ngroups_max, 1);
127 (void) printf("%d", (int)pw->pw_gid);
  /onnv/onnv-gate/usr/src/cmd/rpcsvc/nis/utils/nisaddcred/
makesyscred.c 49 struct passwd *pw; local
74 pw = getpwuid(uid);
75 if (! pw) {
81 pw = getpwuid_nisplus_master(uid, &err);
82 if (pw == NULL) {
104 if ((uid != geteuid()) && (pw->pw_uid != uid)) {
105 ngrps = initgroups(pw->pw_name, pw->pw_gid);
163 struct passwd *pw; local
168 pw = getpwuid(uid)
    [all...]
  /onnv/onnv-gate/usr/src/cmd/lp/lib/oam/
fmtmsg.c 115 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...]

Completed in 780 milliseconds

1 2 3 4 5 6 7 8 91011