sseeeekkddiirr() -- General Function (libc)

Reset the position within a directory stream
vvooiidd sseeeekkddiirr (_d_i_r_p, _l_o_c)
DDIIRR *_d_i_r_p;
ooffff_tt _l_o_c;

The function sseeeekkddiirr() is one of a set of COHERENT routines that manipulate
directories in a device-independent manner.  It resets the current position
within  the directory  stream pointed  to  by _d_i_r_p  to _l_o_c.  _l_o_c must  be a
position indicator returned by a previous call to tteellllddiirr().

If an error occurs, sseeeekkddiirr() exits and sets eerrrrnnoo to an appropriate value.

_S_e_e _A_l_s_o
cclloosseeddiirr(), ddiirreenntt.hh, ggeettddeennttss(),  lliibbcc, ooppeennddiirr(), rreeaaddddiirr(), rreewwiinnddddiirr(),
tteellllddiirr()

_N_o_t_e_s
tteellllddiirr() and  sseeeekkddiirr() are unreliable when the  directory stream has been
closed and  reopened.  It  is best to  avoid using tteellllddiirr()  and sseeeekkddiirr()
altogether.

Because directory entries can dynamically appear and disappear, and because
directory contents are buffered  by these routines, an application may need
to continually  rescan a directory  to maintain an accurate  picture of its
active entries.

The COHERENT implementation of the ddiirreenntt routines was written by D. Gwynn.
