A NOTE has been added to this issue. ====================================================================== http://austingroupbugs.net/view.php?id=1218 ====================================================================== Reported By: alanc Assigned To: ====================================================================== Project: 1003.1(2013)/Issue7+TC1 Issue ID: 1218 Category: System Interfaces Type: Enhancement Request Severity: Editorial Priority: normal Status: New Name: Alan Coopersmith Organization: Oracle Solaris Engineering User Reference: Section: reallocarray Page Number: (page or range of pages) Line Number: (Line or range of lines) Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2018-12-08 21:03 UTC Last Modified: 2019-08-07 21:47 UTC ====================================================================== Summary: Add reallocarray() ====================================================================== Relationships ID Summary ---------------------------------------------------------------------- related to 0000374 malloc(0) and realloc(p,0) must not cha... ======================================================================
---------------------------------------------------------------------- (0004511) shware_systems (reporter) - 2019-08-07 21:47 http://austingroupbugs.net/view.php?id=1218#c4511 ---------------------------------------------------------------------- I've no objection to adding this, and the recalloc_array() variant, but the man page cit is not in a format suitable for direct inclusion into XSH. Additonally, FreeBSD implements dereferences of zero size allocations or reallocs to raise SIGSEGV. Any proposal should have this as implementation-defined behavior, imo, not as a requirement. This could be extended, as a generalized behavior, to dereferences into any space reserved past size, e.g. to maintain alignments. Issue History Date Modified Username Field Change ====================================================================== 2018-12-08 21:03 alanc New Issue 2018-12-08 21:03 alanc Name => Alan Coopersmith 2018-12-08 21:03 alanc Organization => Oracle Solaris Engineering 2018-12-08 21:03 alanc Section => reallocarray 2018-12-08 21:03 alanc Page Number => (page or range of pages) 2018-12-08 21:03 alanc Line Number => (Line or range of lines) 2018-12-09 02:09 schwarze Note Added: 0004175 2019-06-26 18:52 alanc Note Added: 0004453 2019-08-07 21:01 eblake Relationship added related to 0000374 2019-08-07 21:47 shware_systems Note Added: 0004511 ======================================================================