static char sccsid
[] = "@(#)seekdir.c 4.10 (Berkeley) %G%";
* seek to an entry in a directory.
* Only values returned by "telldir" should be passed to seekdir.
long curloc
, base
, offset
;
base
= loc
& ~(DIRBLKSIZ
- 1);
offset
= loc
& (DIRBLKSIZ
- 1);
(void) lseek(dirp
->dd_fd
, base
, 0);
while (dirp
->dd_loc
< offset
) {