Lines Matching defs:s
80 dup_pw(struct passwd **d, struct passwd *s)
82 if (s == NULL) {
89 if (s->pw_name) {
90 if (((*d)->pw_name = strdup(s->pw_name)) == NULL)
93 if (s->pw_passwd) {
94 if (((*d)->pw_passwd = strdup(s->pw_passwd)) == NULL)
97 (*d)->pw_uid = s->pw_uid;
98 (*d)->pw_gid = s->pw_gid;
100 if (s->pw_gecos) {
101 if (((*d)->pw_gecos = strdup(s->pw_gecos)) == NULL)
104 if (s->pw_dir) {
105 if (((*d)->pw_dir = strdup(s->pw_dir)) == NULL)
108 if (s->pw_shell) {
109 if (((*d)->pw_shell = strdup(s->pw_shell)) == NULL)
122 dup_spw(struct spwd **d, struct spwd *s)
124 if (s == NULL) {
131 **d = *s;
133 if (s->sp_namp)
134 if (((*d)->sp_namp = strdup(s->sp_namp)) == NULL)
136 if (s->sp_pwdp)
137 if (((*d)->sp_pwdp = strdup(s->sp_pwdp)) == NULL)