Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dreaddir.c66 dp = (dirent_t *)(uintptr_t)&dirp->dd_buf[dirp->dd_loc]; in readdir()
67 saveloc = dirp->dd_loc; /* save for possible EOF */ in readdir()
68 dirp->dd_loc += (int)dp->d_reclen; in readdir()
70 if (dirp->dd_loc >= dirp->dd_size) in readdir()
71 dirp->dd_loc = dirp->dd_size = 0; in readdir()
77 dirp->dd_loc = saveloc; /* so save for telldir */ in readdir()
81 return ((dirent_t *)(uintptr_t)&dirp->dd_buf[dirp->dd_loc]); in readdir()
97 dp64 = (dirent64_t *)(uintptr_t)&dirp->dd_buf[dirp->dd_loc]; in readdir64()
108 saveloc = dirp->dd_loc; /* save for possible EOF */ in readdir64()
109 dirp->dd_loc += (int)dp64->d_reclen; in readdir64()
[all …]
H A Dreaddir_r.c64 dp = (dirent_t *)(uintptr_t)&dirp->dd_buf[dirp->dd_loc]; in readdir_r()
65 saveloc = dirp->dd_loc; /* save for possible EOF */ in readdir_r()
66 dirp->dd_loc += (int)dp->d_reclen; in readdir_r()
69 if (dirp->dd_loc >= dirp->dd_size) in readdir_r()
70 dirp->dd_loc = dirp->dd_size = 0; in readdir_r()
76 dirp->dd_loc = saveloc; /* so save for telldir */ in readdir_r()
86 dp = (dirent_t *)(uintptr_t)&dirp->dd_buf[dirp->dd_loc]; in readdir_r()
109 dp64 = (dirent64_t *)(uintptr_t)&dirp->dd_buf[dirp->dd_loc]; in readdir64_r()
120 saveloc = dirp->dd_loc; /* save for possible EOF */ in readdir64_r()
121 dirp->dd_loc += (int)dp64->d_reclen; in readdir64_r()
[all …]
H A Dseekdir.c59 dp = (dirent_t *)(uintptr_t)&dirp->dd_buf[dirp->dd_loc]; in seekdir()
63 dirp->dd_loc = 0; in seekdir()
92 dp64 = (dirent64_t *)(uintptr_t)&dirp->dd_buf[dirp->dd_loc]; in seekdir64()
106 dirp->dd_loc = 0; in seekdir64()
H A Dtelldir.c62 dp = (dirent_t *)(uintptr_t)(&dirp->dd_buf[dirp->dd_loc]); in telldir()
86 dp64 = (dirent64_t *)(uintptr_t)(&dirp->dd_buf[dirp->dd_loc]); in telldir64()
H A Dfdopendir.c72 dirp->dd_loc = 0; in fdopendir()
/illumos-gate/usr/src/ucblib/libucb/port/gen/
H A Dreaddir.c64 dp = (struct dirent64 *)&dirp->dd_buf[dirp->dd_loc]; in internal_readdir()
65 saveloc = dirp->dd_loc; /* save for possible EOF */ in internal_readdir()
66 dirp->dd_loc += dp->d_reclen; in internal_readdir()
68 if (dirp->dd_loc >= dirp->dd_size) in internal_readdir()
69 dirp->dd_loc = dirp->dd_size = 0; in internal_readdir()
75 dirp->dd_loc = saveloc; /* EOF so save for telldir */ in internal_readdir()
79 dp = (struct dirent64 *)&dirp->dd_buf[dirp->dd_loc]; in internal_readdir()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/dir/
H A Dreaddir.c46 if (dirp->dd_loc >= dirp->dd_size)
49 dirp->dd_loc = 0;
53 dp = (struct dirent*)((char*)dirp->dd_buf + dirp->dd_loc);
55 dirp->dd_loc += dp->d_reclen;
H A Dtelldir.c40 return(lseek(dirp->dd_fd, 0L, SEEK_CUR) + (long)dirp->dd_loc);
H A Dseekdir.c49 dirp->dd_loc = dirp->dd_size = 0;
H A Dopendir.c79 dirp->dd_loc = dirp->dd_size = 0; /* refill needed */
H A Ddirlib.h131 int dd_loc; /* offset in block */ \
/illumos-gate/usr/src/cmd/backup/restore/
H A Ddirs.c512 dp->dd_loc = 0; in rst_initdirfile()
559 return ((pos - tdirp->dd_size) + tdirp->dd_loc); in rst_telldir()
580 sdirp->dd_loc = loc & (DIRBLKSIZ - 1); in rst_seekdir()
581 if (sdirp->dd_loc != 0) in rst_seekdir()
594 if (rdirp->dd_loc == 0) { in rst_readdir()
603 if (rdirp->dd_loc >= rdirp->dd_size) { in rst_readdir()
604 rdirp->dd_loc = 0; in rst_readdir()
608 dp = (struct direct *)(rdirp->dd_buf + rdirp->dd_loc); in rst_readdir()
610 (long)dp->d_reclen > (DIRBLKSIZ + 1 - rdirp->dd_loc)) { in rst_readdir()
616 rdirp->dd_loc += dp->d_reclen; in rst_readdir()
H A Drestore.h159 off64_t dd_loc; member
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Ddir.h129 int dd_loc; member
/illumos-gate/usr/src/ucbhead/sys/
H A Ddir.h121 int dd_loc; member
/illumos-gate/usr/src/head/
H A Ddirent.h55 int dd_loc; /* offset in block */ member