Lines Matching refs:e
90 static elem *e = NULL; in parse_proto_line() local
93 if (!e) in parse_proto_line()
94 e = (elem *)calloc(1, sizeof (elem)); in parse_proto_line()
96 e->flag = 0; in parse_proto_line()
103 e->file_type = type[0]; in parse_proto_line()
123 e->symsrc = NULL; in parse_proto_line()
140 if (e->file_type == SYM_LINK_T || e->file_type == LINK_T) { in parse_proto_line()
142 e->symsrc = strdup(src); in parse_proto_line()
143 } else if (e->file_type == EDIT_T) { in parse_proto_line()
154 (void) strcat(strcat(strcpy(e->name, basedir), "/"), file); in parse_proto_line()
156 (void) strcpy(e->name, file); in parse_proto_line()
158 if (e->file_type != SYM_LINK_T) { in parse_proto_line()
159 if ((e->file_type == CHAR_DEV_T) || in parse_proto_line()
160 (e->file_type == BLOCK_DEV_T)) { in parse_proto_line()
167 e->major = atoi(maj); in parse_proto_line()
175 e->minor = atoi(min); in parse_proto_line()
177 e->major = -1; in parse_proto_line()
178 e->minor = -1; in parse_proto_line()
186 e->perm = strtol(perm, NULL, 8); in parse_proto_line()
193 (void) strcpy(e->owner, owner); in parse_proto_line()
200 (void) strcpy(e->group, group); in parse_proto_line()
203 e->inode = 0; in parse_proto_line()
204 e->ref_cnt = 1; in parse_proto_line()
205 e->arch = arch; in parse_proto_line()
206 e->link_parent = NULL; in parse_proto_line()
208 if (!(dup = find_elem(list, e, FOLLOW_LINK))) { in parse_proto_line()
209 e->pkgs = add_pkg(NULL, pkgname); /* init pkgs list */ in parse_proto_line()
210 add_elem(list, e); in parse_proto_line()
211 e = NULL; in parse_proto_line()
221 if (e->perm != dup->perm) { in parse_proto_line()
225 pkgname, e->perm, dup->name, dup->perm); in parse_proto_line()
227 if (strcmp(e->owner, dup->owner) != 0) { in parse_proto_line()
231 pkgname, e->owner, dup->name, dup->owner); in parse_proto_line()
233 if (strcmp(e->group, dup->group) != 0) { in parse_proto_line()
237 pkgname, e->group, dup->name, dup->group); in parse_proto_line()
244 (void) strcpy(e->name, file); in parse_proto_line()
245 if (find_elem(&exception_list, e, FOLLOW_LINK) == NULL) { in parse_proto_line()
248 pkgname, e->name); in parse_proto_line()
264 static elem *e = NULL; in parse_proto_link() local
268 if (!e) in parse_proto_link()
269 e = (elem *)calloc(1, sizeof (elem)); in parse_proto_link()
271 e->flag = 0; in parse_proto_link()
273 e->arch = arch; in parse_proto_link()
275 e->file_type = type[0]; in parse_proto_link()
281 e->symsrc = strdup(src); in parse_proto_link()
293 (void) strcat(strcat(strcpy(e->name, basedir), "/"), file); in parse_proto_link()
295 (void) strcpy(e->name, file); in parse_proto_link()
302 src = resolve_relative(e->name, e->symsrc); in parse_proto_link()
304 key.arch = e->arch; in parse_proto_link()
308 pkgname, e->name, e->symsrc); in parse_proto_link()
314 "(not other links): %s=%s\n", pkgname, e->name, p->name); in parse_proto_link()
317 e->link_parent = p; in parse_proto_link()
318 e->link_sib = p->link_sib; in parse_proto_link()
319 p->link_sib = e; in parse_proto_link()
321 e->inode = p->inode; in parse_proto_link()
322 e->perm = p->perm; in parse_proto_link()
323 e->ref_cnt = p->ref_cnt; in parse_proto_link()
324 e->major = p->major; in parse_proto_link()
325 e->minor = p->minor; in parse_proto_link()
326 (void) strcpy(e->owner, p->owner); in parse_proto_link()
327 (void) strcpy(e->group, p->owner); in parse_proto_link()
329 if (!(dup = find_elem(list, e, NO_FOLLOW_LINK))) { in parse_proto_link()
330 e->pkgs = add_pkg(NULL, pkgname); /* init pkgs list */ in parse_proto_link()
331 e->link_sib = NULL; in parse_proto_link()
332 add_elem(list, e); in parse_proto_link()
333 e = NULL; in parse_proto_link()
340 (void) strcpy(e->name, file); in parse_proto_link()
341 if (find_elem(&exception_list, e, FOLLOW_LINK) == NULL) { in parse_proto_link()
344 pkgname, e->name); in parse_proto_link()