Hi.
I'm trying to write my own version of opendir function on Windows XP.Within that function I'm calling open function:
and this fails when path points to a directory.
Does anyone know how to open a directory on Win OS so it returns a file descriptor to it.Maybe open should be given another parameters or some other function exists that I don't know of.
I'm trying to write my own version of opendir function on Windows XP.Within that function I'm calling open function:
Code:
fd = open(path, O_RDONLY, 0);
Does anyone know how to open a directory on Win OS so it returns a file descriptor to it.Maybe open should be given another parameters or some other function exists that I don't know of.
Comment