From: Tor L. <tm...@ik...> - 2008-02-20 08:53:20
|
> I am not using select() for socket system, but a file system to read > data from a serial port. That will not work at all with the Win32 API. Windows is not Unix. Say goodbye to orthogonality. There is no "file" abstraction that would cover everything. The WinSock API is for sockets only. The file-oriented API is for files only. Serial ports have their own API. Etc. > I guess I need posix support for that > mechamism. Does the minGW support posix? Not any more than the Microsoft C runtime does. (I.e. it has some API like open(), read() and write(), which are not in the C (C90) standard, but inspired by POSIX.) Well OK, mingw does have a few useful POSIX-inspired extensions on top of the base Microsoft C runtime, like <sys/dirent.h>. Mingw is not some kind of POSIX emulator. For that you need Cygwin, Interix, or something like that. --tml |