Lines Matching defs:entry

244     /* Current directory entry */
298 DIR *dirp, struct dirent *entry, struct dirent **result);
300 _WDIR *dirp, struct _wdirent *entry, struct _wdirent **result);
433 /* Open directory stream and retrieve the first entry */
448 * Read next directory entry.
450 * Returns pointer to static directory entry which may be overwritten by
457 struct _wdirent *entry;
460 * Read directory entry to buffer. We can safely ignore the return value
461 * as entry will be set to NULL in case of error.
463 (void) _wreaddir_r (dirp, &dirp->ent, &entry);
465 /* Return pointer to statically allocated directory entry */
466 return entry;
470 * Read next directory entry.
478 struct _wdirent *entry,
483 /* Read next directory entry */
496 entry->d_name[n] = datap->cFileName[n];
499 entry->d_name[n] = 0;
502 entry->d_namlen = n;
507 entry->d_type = DT_CHR;
509 entry->d_type = DT_DIR;
511 entry->d_type = DT_REG;
515 entry->d_ino = 0;
516 entry->d_off = 0;
517 entry->d_reclen = sizeof (struct _wdirent);
520 *result = entry;
534 * DIR structure as well as any directory entry read previously by
585 /* Get first directory entry (internal) */
593 /* Open directory and retrieve the first entry */
599 /* a directory entry is now waiting in memory */
605 /* Failed to open directory: no directory entry in memory */
633 * Get next directory entry (internal).
643 /* Get next directory entry */
646 /* A valid directory entry already in memory */
652 /* Get the next directory entry from stream */
657 /* The very last entry has been processed or an error occurred */
730 * Read next directory entry.
736 struct dirent *entry;
739 * Read directory entry to buffer. We can safely ignore the return value
740 * as entry will be set to NULL in case of error.
742 (void) readdir_r (dirp, &dirp->ent, &entry);
744 /* Return pointer to statically allocated directory entry */
745 return entry;
749 * Read next directory entry into called-allocated buffer.
757 struct dirent *entry,
762 /* Read next directory entry */
770 &n, entry->d_name, PATH_MAX + 1, datap->cFileName, PATH_MAX + 1);
784 &n, entry->d_name, PATH_MAX + 1,
792 entry->d_namlen = n - 1;
797 entry->d_type = DT_CHR;
799 entry->d_type = DT_DIR;
801 entry->d_type = DT_REG;
805 entry->d_ino = 0;
806 entry->d_off = 0;
807 entry->d_reclen = sizeof (struct dirent);
813 * an erroneous directory entry and return that. Note that
817 entry->d_name[0] = '?';
818 entry->d_name[1] = '\0';
819 entry->d_namlen = 1;
820 entry->d_type = DT_UNKNOWN;
821 entry->d_ino = 0;
822 entry->d_off = -1;
823 entry->d_reclen = 0;
827 /* Return pointer to directory entry */
828 *result = entry;
893 struct dirent *entry;
933 /* Allocate room for temporary directory entry */
937 /* Cannot allocate temporary directory entry */
943 /* Read directory entry to temporary area */
944 if (readdir_r (dir, tmp, &entry) == /*OK*/0) {
946 /* Did we get an entry? */
947 if (entry != NULL) {
950 /* Determine whether to include the entry in result */
960 /* Store the temporary entry to pointer table */
981 /* Error reading directory entry */
993 /* Release temporary directory entry */