Lines Matching refs:ndir
65 struct n_dirent *ndir;
87 ndir = (struct n_dirent *)nbuf; /* source directory format */
90 strlen(ndir->d_name) + ALIGN) & ~(ALIGN - 1)) <
92 ((char *)ndir + sizeof(struct n_dirent) <= (nbuf + ret))) {
93 dir->d_off = ndir->d_off;
94 dir->d_fileno = ndir->d_ino; /* NOT VALID */
95 dir->d_namlen = strlen(ndir->d_name);
98 strncpy(dir->d_name, ndir->d_name, dir->d_namlen);
101 last_off = ndir->d_off;
104 ndir = (struct n_dirent *)((char *)ndir +
105 ((int)(ndir->d_reclen)));
110 * in ndir were not copied to dir, the next getdents syscall