tteellllddiirr() -- General Function (libc)

Return the current position within a directory stream
ooffff_tt tteellllddiirr (_d_i_r_p)
DDIIRR *_d_i_r_p;

The COHERENT function  tteellllddiirr() is one of a set  of COHERENT routines that
manipulate  directories in  a  device-independent manner.   It returns  the
current position within the directory stream pointed to by _d_i_r_p.

If an error occurs, tteelllld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(),
sseeeekkddiirr(),

_N_o_t_e_s
The  value returned  by tteellllddiirr()  should only  be used  as an  argument to
_s_e_e_k_d_i_r().

tteellllddiirr()  and sseeeekkddiirr()  are  unreliable when  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.
