> From: Derek Price > > Is there some way to find out if a > file descriptor is ready for read or write in Windows, other than select?
Yes but it won't be a portable and might not work with anything other than a MS compiler and perhaps later version might be problems. Unfortunately we've already bitten this bullet. Check out line 634 in "windows-NT/run.c" file: http://msdn.microsoft.com/library/en-us/vclib/html/_CRT__open_osfhandle.asp MS VC6 C run time doesn't return OS file handles. They are an index into an internal "typedef struct { } ioinfo;" array. MS VC6 does provide: http://msdn.microsoft.com/library/en-us/vclib/html/_CRT__open_osfhandle.asp which will return the Win32 Native API HANDLE created with "CreatePipe" in the "windows-NT/run.c my_pipe" function. This is the most promising approach to me only works with pipes: http://msdn.microsoft.com/library/en-us/ipc/base/peeknamedpipe.asp Are you looking for a solution to disk files too? _______________________________________________ Bug-cvs mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/bug-cvs
