Lines Matching defs:curent
859 struct dirent curent; /* the dirent entry we are constructing */
909 namlen = utf16_to_utf8(curent.d_name, NAME_MAX,
918 if (curent.d_name[ni] == '/')
919 curent.d_name[ni] = ':';
920 curent.d_namlen = namlen;
921 curent.d_reclen = _DIRENT_SIZE(&curent);
924 bufoff += curent.d_reclen;
925 if (bufoff - curent.d_reclen < uio->uio_offset)
929 if (uio->uio_resid < curent.d_reclen) {
936 curent.d_fileno = children[curchild].file.cnid;
939 curent.d_type = DT_REG;
942 curent.d_type = DT_DIR;
945 curent.d_type = DT_BLK;
948 curent.d_type = DT_CHR;
951 curent.d_type = DT_LNK;
954 curent.d_type = DT_SOCK;
957 curent.d_type = DT_FIFO;
960 curent.d_type = DT_UNKNOWN;
964 /* pad curent.d_name to aligned byte boundary */
965 for (i = curent.d_namlen;
966 i < curent.d_reclen - _DIRENT_NAMEOFF(&curent); i++)
967 curent.d_name[i] = 0;
969 DPRINTF(("curent.d_name = %s\n", curent.d_name));
971 if ((error = uiomove(&curent, curent.d_reclen, uio)) != 0)