[RTEMS Project] #3765: FreeBSD and Newlib qsort_r do not match
RTEMS trac
trac at rtems.org
Thu Dec 12 18:00:33 UTC 2019
#3765: FreeBSD and Newlib qsort_r do not match
----------------------------+-------------------------
Reporter: Chris Johns | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone: Indefinite
Component: network/libbsd | Version: 5
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: |
----------------------------+-------------------------
Comment (by Joel Sherrill):
As best I can tell, this is a non-standard method. It is not in C99, C11,
etc. per https://en.cppreference.com/w/c/algorithm/qsort.
My recommendation would be to conditionalize the code to handle both
signatures. That's just the cost of using a non-standard method.
We could discuss this on newlib's mailing list but I don't see them
changing since that would reflect bare metal and Cygwin in addition to
RTEMS.
--
Ticket URL: <http://devel.rtems.org/ticket/3765#comment:4>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list