在 2020/7/23 7:54, John Scott 写道: > Hello, > > I realize it's not meant to be comprehensive, but I have the impression that > MinGW-w64 supports some higher-level POSIX things. For example one page [1] > says "We inherit most of the features from mingw.org's runtime including, > some > parts to support POSIX extension. Additional preprocessor symbols are > required > while compiling to enable those POSIX extensions. " > > I can't find any documentation articulating exactly what those are. I also > found a getopt.h header and that sleep() seems to work as expected. > > As opposed to experimenting, I'd like to know more concrete information about > what's offered and how they may differ from POSIX in corner-cases. > > [1] https://sourceforge.net/p/mingw-w64/wiki2/Feature%20list/ > >
POSIX directory functions are provided in 'dirent.h', and `clock_gettime()` etc. are available via winpthreads. Some GNU extensions are supported. On the other hand, `fork()` and `siglongjmp()` are unavailable, and winpthreads only implements a subset of POSIX thread operations, and most socket APIs other than those available directly from winsock (such as `poll()`) are missing: probably they'll never be implemented as there is little possibility that people will start to use them. My best advice is that you have to check against the headers or to use autoconf tests to find out whether something is available. I haven't heard of such a well-maintained, exhaustive list. If something doesn't work as expected, feel welcome to report a bug. -- Best regards, LH_Mouse
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
