Hi,
Once more, I don't understand: didn't you suggest changing *only* ENOSPC
and EPERM? Why are we now discussing other error-numbers like ECHILD,
EAFNOSUPPORT and EBADMSG? Are the latter defined in errno.h?
should have written:
Once more, I don't understand: didn't you suggest changing *only* ECHILD,
ENOSPC and EPERM? Why are we now discussing other error-numbers like
EAFNOSUPPORT and EBADMSG? Are the former defined in errno.h?
Paolo.
Hi,
So I altered the patch in the way you were suggesting. I verfied
values supported in more
detail and found that some other error-values should be handled for
mingw host, too.
The feared clash for E2BIG and EOVERFLOW doesn't happen, so I enabled
them, too. Additionally
in combination with winpthread, there are error-values ETIMEDOUT,
ENOTSUP, and EWOULDBLOCK present.
Good.
ChangeLog
2011-08-28 Kai Tietz<kti...@redhat.com>
* configure: Regenerated.
* config.h.in: Regenerated.
* acinclude.m4 (GLIBCXX_CHECK_SYSTEM_ERROR) Add
checks for ECHILD, ENOSPC, EPERM, ETIMEDOUT, and
EWOULDBLOCK.
* config/os/mingw32/error_constants.h (errc): Add
enumerator values no_child_process, no_space_on_device,
not_supported, operation_not_permitted, operation_would_block,
timed_out, and value_too_large,
Regression tested for x86_64-w64-mingw32 and i686-w64-mingw32. Ok for apply?
Ok with the patch tweaked to prefer uglified _GLIBCXX_HAVE_* names in
error_constants.h. Let's just be consistent with the generic
error_constants.h about this normal library policy too.
Paolo.
PS: please don't post regenerated files as part of the patch, are simply
a distraction.