This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: I need help with telldir and seekdir
- To: "Dr. Volker Zell" <vzell at de dot oracle dot com>
- Subject: Re: I need help with telldir and seekdir
- From: Mumit Khan <khan at xraylith dot wisc dot edu>
- Date: Thu, 29 Oct 1998 16:07:48 -0600
- Cc: e952508 at anubis dot ecci dot ucr dot ac dot cr, Cygnus <gnu-win32 at cygnus dot com>
"Dr. Volker Zell" <vzell@de.oracle.com> writes:
>
> Hi
>
> >I'm trying to port code from unix to win32 with cygwin32. Everything
> >worked right until a tried to compile a file wich included "dirent.h"
> >and tried to use seekdir and telldir.
> > Can somebody tellme either if those functions are available in
> >other header file, or if i should implement them, and if that's the
> >case, how can i do it.
seekdir and telldir are not part of POSIX (and obviously not part of the
ANSI C library), and any code using these (presumably expecting a BSD 4.3
environment) is inherently non-portable to POSIX systems.
More often than not, the combination of telldir and seekdir is simply used
as a replacement for rewinddir, which *is* POSIX and is part of cygwin.
Older versions of mc (eg,. 4.1.35) didn't use these, so must be recent
addition, and I would assume quite easy to work around.
Regards,
Mumit
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".