Lines Matching defs:user
55 userstr_t user;
58 (void) memset(&user, 0, sizeof (userattr_t));
59 tmp = _getuserattr(&user, buf, NSS_BUFLEN_USERATTR, &err);
68 userstr_t user;
71 (void) memset(&user, 0, sizeof (userattr_t));
72 tmp = _fgetuserattr(f, &user, buf, NSS_BUFLEN_USERATTR);
82 userstr_t user;
85 resptr = _getusernam(name, &user, buf, NSS_BUFLEN_USERATTR, &err);
119 free_userattr(userattr_t *user)
121 if (user) {
122 free(user->name);
123 free(user->qualifier);
124 free(user->res1);
125 free(user->res2);
126 _kva_free(user->attr);
127 free(user);
133 userstr2attr(userstr_t *user)
137 if (user == NULL)
143 newuser->name = _do_unescape(user->name);
144 newuser->qualifier = _do_unescape(user->qualifier);
145 newuser->res1 = _do_unescape(user->res1);
146 newuser->res2 = _do_unescape(user->res2);
147 newuser->attr = _str2kva(user->attr, KV_ASSIGN, KV_DELIMITER);
154 print_userattr(userattr_t *user)
159 if (user == NULL) {
164 printf("name=%s\n", user->name ? user->name : empty);
165 printf("qualifier=%s\n", user->qualifier ? user->qualifier : empty);
166 printf("res1=%s\n", user->res1 ? user->res1 : empty);
167 printf("res2=%s\n", user->res2 ? user->res2 : empty);
169 print_kva(user->attr);