I believe the values from errno.h are intended to provide POSIX
compatibility for the (now defunct) Windows posix subsystem. I'd
wouldn't expect any API from XP or later to return these values.
OTOH, I don't know how the errcclass from gcc's error_constants.h is
actually used. Maybe somebody is emulating posix on Windows?
dw
On 9/17/2016 1:34 PM, niXman wrote:
> Hi,
>
> I want to restore the order in 'error_constants.h'[1] file, because
> there are so many constants commented out in this file.
> But I have a difficulty: for example, with macro 'EAFNOSUPPORT'. This
> macro is defined in 'errno.h'[2] file and in 'winerror.h'(but with 'WSA'
> prefix)[3] file.
>
> I have two questions:
> 1. What macro should I use?
> 2. Why these two macros has different values?
>
>
> Thanks!
>
>
>
> [1]
> https://gcc.gnu.org/viewcvs/gcc/trunk/libstdc%2B%2B-v3/config/os/mingw32-w64/error_constants.h?view=markup
> [2]
> https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-headers/crt/errno.h#l81
> [3]
> https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-headers/include/winerror.h#l1652
>
--
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public