Ticket #40848

update errno.h ENOTSUP + EOVERFLOW

Eröffnet am: 2020-10-09 06:51 Letztes Update: 2020-10-10 05:08

Auswertung:
Verantwortlicher:
(Keine)
Typ:
Status:
Geschlossen
Komponente:
(Keine)
Meilenstein:
(Keine)
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Rejected
Datei:
Keine
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

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. #define ENOTSUP 129
  3. #define EOVERFLOW 132

and suggest this may be done in general.

Ticket-Verlauf (2/2 Historien)

2020-10-09 06:51 Aktualisiert von: osdn-mensch
  • New Ticket "update errno.h ENOTSUP + EOVERFLOW" created
2020-10-10 05:08 Aktualisiert von: keith
  • Lösung Update from Keine to Rejected
  • Status Update from Offen to Geschlossen
Kommentar

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. #ifndef EOVERFLOW
  5. #define EOVERFLOW ERANGE
  6. #endif

Dateianhangliste

Keine Anhänge

Bearbeiten

Please login to add comment to this ticket » Anmelden