--- In [email protected], "int21h_d" <[EMAIL PROTECTED]> wrote:
>
> to add, ive tested(compiled) my code on cygwin, it works
> ok, directories and files have different mode_t output,
> but still on win32, it doesnt...sigh!
> 
> --- In [email protected], "int21h_d" <int21h_d@> wrote:
> >
> > does the gnu c lib for file system interface (readdir,
> > opendir, stat, etc) only works(rather i say, perfectly
> > works) on POSIX platforms?? if yes, what library can i
> > use for win32???
<snip>

Windows is no POSIX conformant platform, this much is true.
opendir(), readdir(), and closedir() are not supported by Windows. Period.

You basically have two choices:
1) Use cygwin as you did in your test.
2) If I recall correctly, it was me who asked this question the last
time. Please search the archives of this group for opendir(), you will
find the answer; I think the functions are named FindFirstFile() and
FindNextFile(). Maybe you will need SearchPath() as well, I don't
know. These functions are all declared in <winbase.h> .

Regards,
Nico

Reply via email to