Lines Matching refs:np
83 addino(inum, np) in addino() argument
85 struct entry *np;
98 np->e_ino = inum;
99 np->e_next = *epp;
100 *epp = np;
102 for (np = np->e_next; np != NIL; np = np->e_next)
103 if (np->e_ino == inum)
104 badentry(np, gettext("duplicate inum"));
150 char *np, *cp; local
161 np = buf;
163 *np++ = *cp++;
164 *np = '\0';
278 struct entry *np, *ep; local
282 np = freelist;
283 freelist = np->e_next;
284 (void) bzero((char *)np, (size_t)sizeof (*np));
286 np = (struct entry *)calloc(1, sizeof (*np));
287 if (np == NIL) {
293 np->e_type = type & ~(LINK|ROOT);
295 np->e_flags |= XATTR;
304 np->e_name = savename(name);
306 np->e_namlen = strlen(name);
307 np->e_parent = np;
308 addino(ROOTINO, np);
309 return (np);
312 if (np->e_flags & XATTR) {
325 np->e_name = savename(cp);
327 np->e_namlen = strlen(np->e_name);
328 np->e_parent = ep;
334 if ((type & ROOT) && (np->e_flags & XATTR)) {
336 ep->e_xattrs = np;
339 np->e_sibling = ep->e_entries;
340 ep->e_entries = np;
350 np->e_ino = inum;
351 np->e_links = ep->e_links;
352 ep->e_links = np;
358 addino(inum, np);
360 return (np);
370 struct entry *np; local
382 np = lookupino(ep->e_ino);
383 if (np == NIL)
385 if (np == ep) {
391 for (; np != NIL; np = np->e_links) {
392 if (np->e_links == ep) {
393 np->e_links = ep->e_links;
397 if (np == NIL)
415 struct entry *np; local
418 np = lookupparent(newname);
419 if (np == NIL)
421 if (np != ep->e_parent) {
423 ep->e_parent = np;
424 ep->e_sibling = np->e_entries;
425 np->e_entries = ep;
452 struct entry *np; local
454 np = ep->e_parent;
456 if (np->e_xattrs == ep)
457 np->e_xattrs = NIL;
461 } else if (np->e_entries == ep) {
462 np->e_entries = ep->e_sibling;
464 for (np = np->e_entries; np != NIL; np = np->e_sibling) {
465 if (np->e_sibling == ep) {
466 np->e_sibling = ep->e_sibling;
470 if (np == NIL)
507 struct strhdr *np; local
521 np = strtblhdr[as / STRTBLINCR].next;
522 if (np != NULL) {
523 strtblhdr[as / STRTBLINCR].next = np->next;
524 cp = (char *)np;
548 struct strhdr *tp, *np; local
554 np = (struct strhdr *)name;
555 np->next = tp->next;
556 tp->next = np;