Lines Matching refs:e

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