Lines Matching refs:ent

149 	Hash_ent	*ent;  in enterino()  local
187 if ((ent = get_hash(tbl, ino, 0, in enterino()
194 if ((obj = ent->e_obj) == NULL) { in enterino()
211 ent->e_obj = obj; in enterino()
213 return (ent); in enterino()
221 _enterdir(Crle_desc *crle, const char *dir, Hash_ent *ent, Hash_obj *obj) in _enterdir() argument
234 ent->e_key = (Addr)ndir; in _enterdir()
235 ent->e_id = crle->c_dirnum++; in _enterdir()
236 ent->e_obj = obj; in _enterdir()
258 (void) printf(fmt, ent->e_id, dir); in _enterdir()
270 Hash_ent *ent; in enterdir() local
298 if ((ent = enterino(crle, ndir, status, flags)) == NULL) in enterdir()
300 obj = ent->e_obj; in enterdir()
305 if ((ent = get_hash(stbl, (Addr)ndir, 0, in enterdir()
313 if (ent->e_id == 0) { in enterdir()
314 if (_enterdir(crle, ndir, ent, obj) == 0) in enterdir()
323 return (ent); in enterdir()
328 if ((ent = get_hash(stbl, (Addr)odir, 0, in enterdir()
336 if (ent->e_id == 0) { in enterdir()
337 if (_enterdir(crle, odir, ent, obj) == 0) in enterdir()
341 return (ent); in enterdir()
351 Hash_ent *ent; in enternoexistdir() local
356 if ((ent = get_hash(crle->c_strtbl, (Addr)dir, 0, in enternoexistdir()
364 if (ent->e_id == 0) { in enternoexistdir()
371 if (_enterdir(crle, dir, ent, obj) == 0) in enternoexistdir()
374 return (ent); in enternoexistdir()
449 Hash_ent *rent, *ent; in enternoexistfile() local
487 if ((ent = get_hash(crle->c_strtbl, (Addr)file, dent->e_id, in enternoexistfile()
491 if (ent->e_id == 0) { in enternoexistfile()
492 if (_enterfile(crle, file, off, ent, rent, dent, obj) == 0) in enternoexistfile()
495 return (ent); in enternoexistfile()
507 Hash_ent *ent, *rent, *ndent = odent; in enterfile() local
552 if ((ent = enterino(crle, npath, status, flags)) == NULL) in enterfile()
554 obj = ent->e_obj; in enterfile()
588 if ((ent = get_hash(stbl, (Addr)nfile, ndent->e_id, in enterfile()
591 if (ent->e_id == 0) { in enterfile()
592 if (_enterfile(crle, nfile, off, ent, rent, ndent, obj) == 0) in enterfile()
602 return (ent); in enterfile()
607 if ((ent = enterino(crle, opath, status, 0)) == NULL) in enterfile()
609 obj = ent->e_obj; in enterfile()
633 if ((ent = get_hash(stbl, (Addr)ofile, odent->e_id, in enterfile()
636 if (ent->e_id == 0) { in enterfile()
637 if (_enterfile(crle, ofile, off, ent, rent, odent, obj) == 0) in enterfile()
641 return (ent); in enterfile()
651 Hash_ent *ent; in inspect_file() local
668 if ((ent = get_hash(tbl, ino, 0, HASH_FND_ENT)) == NULL) in inspect_file()
675 if ((ent = enterfile(crle, path, file, flags, dent, in inspect_file()
678 obj = ent->e_obj; in inspect_file()
779 if ((ent = enterfile(crle, path, file, flags, dent, status)) == NULL) { in inspect_file()
783 obj = ent->e_obj; in inspect_file()
818 ent = get_hash(crle->c_strtbl, (Addr)path, 0, in inspect_file()
822 crle->c_app = (char *)ent->e_key; in inspect_file()
850 Hash_ent *ent; in inspect_dir() local
860 if ((ent = get_hash(stbl, (Addr)name, 0, HASH_FND_ENT)) != NULL) { in inspect_dir()
861 if (ent->e_obj->o_flags & RTC_OBJ_ALLENTS) in inspect_dir()
867 if ((ent = enterdir(crle, name, (flags | RTC_OBJ_ALLENTS), in inspect_dir()
871 ent->e_obj->o_flags |= RTC_OBJ_ALLENTS; in inspect_dir()
914 if (inspect_file(crle, path, file, flags, ent, &_status, 0)) { in inspect_dir()
938 Hash_ent *ent; in inspect() local
984 if ((ent = enternoexistdir(crle, name)) == NULL) in inspect()
986 ent->e_flags |= flags; in inspect()
1003 ent = get_hash(crle->c_strtbl, (Addr)name, 0, HASH_FND_ENT); in inspect()
1004 ent->e_flags |= flags; in inspect()
1045 if ((ent = get_hash(crle->c_strtbl, in inspect()
1062 if ((ent = enternoexistdir(crle, dir)) == NULL) in inspect()
1064 ent->e_flags |= nflags; in inspect()
1067 if ((ent = enterdir(crle, dir, nflags, in inspect()
1080 if ((ent = enternoexistfile(crle, name, file, ent)) == NULL) in inspect()
1082 ent->e_flags |= nflags; in inspect()
1083 if (enteralt(crle, name, file, flags, ent->e_obj) == 0) in inspect()
1086 if (inspect_file(crle, name, file, nflags, ent, &status, 1)) in inspect()
1093 if (ent = get_hash(crle->c_strtbl, (Addr)name, 0, HASH_FND_ENT)) in inspect()
1094 ent->e_flags |= (flags & RTC_OBJ_CMDLINE); in inspect()