Lines Matching refs:pws
251 struct passwd pws;
266 memcpy(&(p).pws, (p).pwp, sizeof(struct passwd));
268 (p).pws.pw_name = (p).pwbuf;
270 strcpy((p).pws.pw_name, (p).pwp->pw_name);
272 (p).pws.pw_passwd = (p).pws.pw_name + (p).len + 1;
274 strcpy((p).pws.pw_passwd,(p).pwp->pw_passwd);
276 (p).pws.pw_class = (p).pws.pw_passwd + (p).len + 1;
278 strcpy((p).pws.pw_class, (p).pwp->pw_class);
280 (p).pws.pw_gecos = (p).pws.pw_class + (p).len + 1;
282 strcpy((p).pws.pw_gecos, (p).pwp->pw_gecos);
284 (p).pws.pw_dir = (p).pws.pw_gecos + (p).len + 1;
286 strcpy((p).pws.pw_dir, (p).pwp->pw_dir);
288 (p).pws.pw_shell = (p).pws.pw_dir + (p).len + 1;
290 strcpy((p).pws.pw_shell, (p).pwp->pw_shell);
292 (p).pwp = &(p).pws;
297 (memcpy(&(p).pws, (p).pwp, sizeof(struct passwd)), \
298 ((p).pws.pw_name = (p).pwbuf), \
300 strcpy((p).pws.pw_name, (p).pwp->pw_name), \
301 ((p).pws.pw_passwd = (p).pws.pw_name + (p).len + 1), \
303 strcpy((p).pws.pw_passwd,(p).pwp->pw_passwd), \
304 ((p).pws.pw_age = (p).pws.pw_passwd + (p).len + 1), \
306 strcpy((p).pws.pw_age, (p).pwp->pw_age), \
307 ((p).pws.pw_comment = (p).pws.pw_age + (p).len + 1), \
309 strcpy((p).pws.pw_comment, (p).pwp->pw_comment), \
310 ((p).pws.pw_gecos = (p).pws.pw_comment + (p).len + 1), \
312 strcpy((p).pws.pw_gecos, (p).pwp->pw_gecos), \
313 ((p).pws.pw_dir = (p).pws.pw_comment + (p).len + 1), \
315 strcpy((p).pws.pw_dir, (p).pwp->pw_dir), \
316 ((p).pws.pw_shell = (p).pws.pw_dir + (p).len + 1), \
318 strcpy((p).pws.pw_shell, (p).pwp->pw_shell), \
319 ((p).pwp = &(p).pws), \
337 struct passwd pws;
343 ((getpwuid_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws)
345 ((getpwnam_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws)
348 ((getpwuid_r(&(p).pws,(u),(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws)
350 ((getpwnam_r(&(p).pws,(u),(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws)
354 ((getpwuid_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == NULL) ? NULL : &(p).pws)
356 ((getpwnam_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == NULL) ? NULL : &(p).pws)
368 struct passwd pws;
374 ((getpwuid_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf),&(p).pwp) == 0) ? \
377 ((getpwnam_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf),&(p).pwp) == 0) ? \