Lines Matching refs:pwd

112 tacplus_getpwnam_r(const char *name, struct passwd *pwd, char *buffer,  in tacplus_getpwnam_r()  argument
150 memset(pwd, 0, sizeof(*pwd)); in tacplus_getpwnam_r()
153 pwd->pw_name = tacplus_copystr(name, &buffer, &bufsize); in tacplus_getpwnam_r()
154 if (pwd->pw_name == NULL) in tacplus_getpwnam_r()
158 pwd->pw_passwd = tacplus_copystr("*", &buffer, &bufsize); in tacplus_getpwnam_r()
163 pwd->pw_uid = DEF_UID; in tacplus_getpwnam_r()
164 pwd->pw_gid = DEF_GID; in tacplus_getpwnam_r()
186 pwd->pw_uid = num; in tacplus_getpwnam_r()
195 pwd->pw_gid = num; in tacplus_getpwnam_r()
197 pwd->pw_class = tacplus_copystr(value, &buffer, in tacplus_getpwnam_r()
199 if (pwd->pw_class == NULL) { in tacplus_getpwnam_r()
204 pwd->pw_gecos = tacplus_copystr(value, &buffer, in tacplus_getpwnam_r()
206 if (pwd->pw_gecos == NULL) { in tacplus_getpwnam_r()
211 pwd->pw_dir = tacplus_copystr(value, &buffer, in tacplus_getpwnam_r()
213 if (pwd->pw_dir == NULL) { in tacplus_getpwnam_r()
218 pwd->pw_shell = tacplus_copystr(value, &buffer, in tacplus_getpwnam_r()
220 if (pwd->pw_shell == NULL) { in tacplus_getpwnam_r()
229 if (pwd->pw_class == NULL) in tacplus_getpwnam_r()
230 pwd->pw_class = tacplus_copystr(DEF_CLASS, &buffer, &bufsize); in tacplus_getpwnam_r()
233 if (pwd->pw_gecos == NULL) in tacplus_getpwnam_r()
234 pwd->pw_gecos = pwd->pw_name; in tacplus_getpwnam_r()
237 if (pwd->pw_dir == NULL) in tacplus_getpwnam_r()
238 pwd->pw_dir = tacplus_copystr(DEF_DIR, &buffer, &bufsize); in tacplus_getpwnam_r()
239 if (pwd->pw_dir == NULL) in tacplus_getpwnam_r()
243 if (pwd->pw_shell == NULL) in tacplus_getpwnam_r()
244 pwd->pw_shell = tacplus_copystr(DEF_SHELL, &buffer, &bufsize); in tacplus_getpwnam_r()
245 if (pwd->pw_shell == NULL) in tacplus_getpwnam_r()
256 struct passwd *pwd = va_arg(ap, struct passwd *); in nss_tacplus_getpwnam_r() local
263 ret = tacplus_getpwnam_r(name, pwd, buffer, bufsize); in nss_tacplus_getpwnam_r()
265 *(void **)retval = pwd; in nss_tacplus_getpwnam_r()
284 struct passwd *pwd __unused = va_arg(ap, struct passwd *); in nss_tacplus_getpwent_r()