[MinGW-Notify] [mingw] #40848: update errno.h ENOTSUP + EOVERFLOW

Back to archive index
MinGW Notification List mingw****@lists*****
Sat Oct 10 05:09:02 JST 2020


#40848: update errno.h ENOTSUP + EOVERFLOW

  Open Date: 2020-10-08 22:51
Last Update: 2020-10-09 21:08

URL for this Ticket:
    https://osdn.net//projects/mingw/ticket/40848
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=40848

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2020-10-09 21:08 Updated by: keith
 * Status Update from Open to Closed

 * Resolution Update from None to Rejected


Comment:

That would be a bug in binutils, then; you should file a bug report on their
tracker.

On what basis have you chosen the values 129, and 132? Both are greater than
Windows' _sys_nerr limit, and will thus produce unacceptable results, if passed
to strerror(), or perror(). Consequently, I will not accept that, as a general
principle, these definitions may be arbitrarily adopted.

FWIW, the recommended work-around for this issue is, in the client code, after
including <errno.h>, to insert definitions such as

 1.  #ifndef ENOTSUP
 2.  #define ENOTSUP    ENOSYS
 3.  #endif
 4.  
 5.  #ifndef EOVERFLOW
 6.  #define EOVERFLOW  ERANGE
 7.  #endif



---------------------------------------------------------------------
Ticket Status:

      Reporter: osdn-mensch
         Owner: (None)
          Type: Issues
        Status: Closed
      Priority: 5 - Medium
     MileStone: (None)
     Component: (None)
      Severity: 5 - Medium
    Resolution: Rejected
---------------------------------------------------------------------

Ticket details:

I needed to include the following into errno.h to be able to build a recent
version of binutils:

 1.  /* necessary to build recent binutils: */
 2.  
 3.  #define ENOTSUP 129
 4.  #define EOVERFLOW 132

and suggest this may be done in general.



-- 
Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN

Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/mingw/ticket/40848
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=40848



More information about the MinGW-Notify mailing list
Back to archive index