[PATCH] [libc++] Linux: Correctly identify valid error codes

David Majnemer david.majnemer at gmail.com
Mon May 19 11:08:20 PDT 2014


[syserr.errcat.objects]p4 specifies that
system_category().default_error_condition(ev) map to error_condition(posv,
generic_category()) if ev could map to a POSIX errno.

Linux reserves up to and including 4095 for errno values, use this as a
bound.

This fixes syserr.errcat.objects/system_category.pass.cpp on Linux.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140519/296ab352/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 2417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140519/296ab352/attachment.obj>


More information about the cfe-commits mailing list