Home
last modified time | relevance | path

Searched refs:dd_loc (Results 1 – 8 of 8) sorted by relevance

/freebsd/lib/libc/gen/
H A Dtelldir.c63 dirp->dd_loc < (1l << DD_LOC_BITS)) { in telldir()
65 ddloc.s.loc = dirp->dd_loc; in telldir()
75 if (lp->loc_loc == dirp->dd_loc) in telldir()
91 lp->loc_loc = dirp->dd_loc; in telldir()
139 if (loc_loc == dirp->dd_loc && loc_seek == dirp->dd_seek) in _seekdir()
150 dirp->dd_loc = loc_loc; in _seekdir()
155 dirp->dd_loc = 0; in _seekdir()
157 while (dirp->dd_loc < loc_loc) { in _seekdir()
183 lp->loc_loc = dirp->dd_loc; in _fixtelldir()
H A Dreaddir.c55 if (dirp->dd_loc >= dirp->dd_size) { in _readdir_unlocked()
58 initial_loc = dirp->dd_loc; in _readdir_unlocked()
60 dirp->dd_loc = 0; in _readdir_unlocked()
62 if (dirp->dd_loc == 0 && in _readdir_unlocked()
72 dp = (struct dirent *)(dirp->dd_buf + dirp->dd_loc); in _readdir_unlocked()
76 dp->d_reclen > dirp->dd_len + 1 - dirp->dd_loc) in _readdir_unlocked()
78 dirp->dd_loc += dp->d_reclen; in _readdir_unlocked()
H A Drewinddir.c56 dirp->dd_loc = 0; in rewinddir()
H A Dgen-private.h46 long dd_loc; /* offset in current buffer */ member
H A Dclosedir.c56 dirp->dd_loc = 0; in fdclosedir()
H A Dopendir.c303 dirp->dd_loc = 0; in __opendir_common()
/freebsd/sbin/restore/
H A Ddirs.c93 int32_t dd_loc; member
440 dirp->dd_loc = loc & (DIRBLKSIZ - 1); in rst_seekdir()
441 if (dirp->dd_loc != 0) in rst_seekdir()
454 if (dirp->dd_loc == 0) { in rst_readdir()
462 if (dirp->dd_loc >= dirp->dd_size) { in rst_readdir()
463 dirp->dd_loc = 0; in rst_readdir()
466 dp = (struct direct *)(dirp->dd_buf + dirp->dd_loc); in rst_readdir()
468 dp->d_reclen > DIRBLKSIZ + 1 - dirp->dd_loc) { in rst_readdir()
473 dirp->dd_loc += dp->d_reclen; in rst_readdir()
525 (off_t)0, SEEK_CUR) - dirp->dd_size + dirp->dd_loc); in rst_telldir()
[all …]
/freebsd/tools/test/stress2/misc/
H A Dreaddir.sh127 long dd_loc; /* offset in current buffer */