Lines Matching defs:pw
145 struct passwd *pw = (struct passwd *)ptr;
146 free(pw->pw_name);
147 free(pw->pw_passwd);
148 free(pw->pw_gecos);
149 free(pw->pw_shell);
150 free(pw->pw_dir);
155 struct passwd *pw;
157 pw = (struct passwd *)wbcAllocateMemory(1, sizeof(struct passwd),
159 if (pw == NULL) {
163 pw->pw_name = strdup(in->pw_name);
164 if (pw->pw_name == NULL) {
168 pw->pw_passwd = strdup(in->pw_passwd);
169 if (pw->pw_passwd == NULL) {
173 pw->pw_uid = in->pw_uid;
174 pw->pw_gid = in->pw_gid;
176 pw->pw_gecos = strdup(in->pw_gecos);
177 if (pw->pw_gecos == NULL) {
181 pw->pw_shell = strdup(in->pw_shell);
182 if (pw->pw_shell == NULL) {
186 pw->pw_dir = strdup(in->pw_dir);
187 if (pw->pw_dir == NULL) {
191 *out = pw;
194 wbcFreeMemory(pw);