Lines Matching defs:tail
70 struct userid *tail;
73 for (tail = user_alist; tail; tail = tail->next)
75 if (tail->id.u == uid)
77 match = tail;
106 struct userid *tail;
109 for (tail = user_alist; tail; tail = tail->next)
111 if (*tail->name == *user && !strcmp (tail->name, user))
112 return &tail->id.u;
114 for (tail = nouser_alist; tail; tail = tail->next)
116 if (*tail->name == *user && !strcmp (tail->name, user))
130 tail = xmalloc (offsetof (struct userid, name) + strlen (user) + 1);
131 strcpy (tail->name, user);
136 tail->id.u = pwent->pw_uid;
137 tail->next = user_alist;
138 user_alist = tail;
139 return &tail->id.u;
142 tail->next = nouser_alist;
143 nouser_alist = tail;
152 struct userid *tail;
155 for (tail = group_alist; tail; tail = tail->next)
157 if (tail->id.g == gid)
159 match = tail;
188 struct userid *tail;
191 for (tail = group_alist; tail; tail = tail->next)
193 if (*tail->name == *group && !strcmp (tail->name, group))
194 return &tail->id.g;
196 for (tail = nogroup_alist; tail; tail = tail->next)
198 if (*tail->name == *group && !strcmp (tail->name, group))
212 tail = xmalloc (offsetof (struct userid, name) + strlen (group) + 1);
213 strcpy (tail->name, group);
218 tail->id.g = grent->gr_gid;
219 tail->next = group_alist;
220 group_alist = tail;
221 return &tail->id.g;
224 tail->next = nogroup_alist;
225 nogroup_alist = tail;