Lines Matching refs:namebuf
653 getpathname(caddr_t namebuf, fsck_ino_t curdir, fsck_ino_t ino)
666 (void) strcpy(namebuf, "?");
671 (void) strcpy(namebuf, "/");
677 cp = &namebuf[MAXPATHLEN - 1];
698 idesc.id_name = namebuf;
743 idesc.id_name = namebuf;
754 len = strlen(namebuf);
756 if (cp < &namebuf[MAXNAMLEN])
758 (void) memmove(cp, namebuf, len);
784 if (ino != UFSROOTINO || cp == &namebuf[MAXPATHLEN - 1]) {
785 if (cp > namebuf)
792 * - namebuf[] is terminated with \0 before anything else
793 * - cp is always <= the last element of namebuf[]
795 * beginning of namebuf[], and is no more than MAXNAMLEN-1
801 * namebuf[] for a full-sized path element and a slash,
803 * &namebuf[0]..&namebuf[MAXNAMLEN - 1]
807 (void) memmove(namebuf, cp, &namebuf[MAXPATHLEN] - cp);