Hi,
which library must be linked when using telldir()/seekdir() functions? It
seems to me that these functions are missing on QNX even if they are
declared in <dirent.h>.
Thanks,
Jan.
Hi,
which library must be linked when using telldir()/seekdir() functions? It
seems to me that these functions are missing on QNX even if they are
declared in <dirent.h>.
Thanks,
Jan.
Jan Ptacek <ptacek@esys.cz> wrote:
: Hi,
: which library must be linked when using telldir()/seekdir() functions? It
: seems to me that these functions are missing on QNX even if they are
: declared in <dirent.h>.
The docs list the library for each function. The docs for seekdir()
state:
Library: libc
On 6 Jun 2002, Steve Reid wrote:
Jan Ptacek <> ptacek@esys.cz> > wrote:
: Hi,
: which library must be linked when using telldir()/seekdir() functions? It
: seems to me that these functions are missing on QNX even if they are
: declared in <dirent.h>.The docs list the library for each function. The docs for seekdir()
state:Library: libc
I have QNX6.1A CD released 2002-02-01 and there is no telldir()/seekdir()
in the documentation. Of course I’m linking with libc but the compiler
reports undefined references to telldir() and seekdir() anyway.
Should I upgrade?
Jan.
Jan Ptacek <ptacek@esys.cz> wrote:
: I have QNX6.1A CD released 2002-02-01 and there is no telldir()/seekdir()
: in the documentation. Of course I’m linking with libc but the compiler
: reports undefined references to telldir() and seekdir() anyway.
: Should I upgrade?
The docs were added in December. The CVS log refers to seekdir() and
telldir() as new functions, so I guess you should upgrade.
Steve Reid <stever@qnx.com> wrote:
Jan Ptacek <> ptacek@esys.cz> > wrote:
: I have QNX6.1A CD released 2002-02-01 and there is no telldir()/seekdir()
: in the documentation. Of course I’m linking with libc but the compiler
: reports undefined references to telldir() and seekdir() anyway.
The docs were added in December. The CVS log refers to seekdir() and
telldir() as new functions, so I guess you should upgrade.
If this is regarding your file/directory mirror, then the abscence of
those from the library means no client is using them either (yet), so
you’ll only ever see a lseek(, 0, SEEK_SET) coming from a rewinddir()
so it can be mapped straight back to a rewinddir() on the shadow DIR*
(and is probably a very good optimisation to have in there anyway) …
“Jan Ptacek” <ptacek@esys.cz> schrieb im Newsbeitrag
news:Pine.LNX.4.44.0206061942360.1486-100000@mail.esys.cz…
Hi,
which library must be linked when using telldir()/seekdir() functions? It
seems to me that these functions are missing on QNX even if they are
declared in <dirent.h>.Thanks,
Jan.in RTP6.2 link static to have the seekdir()/telldir() in libc.
cheers, Peter Weber