[PATCH v2 0/4] malloc doc fixes for alignment

Paul Eggert eggert@cs.ucla.edu
Wed Feb 11 20:17:33 GMT 2026


This patch series affects only the manual.  Tt adds documentation for
max_align_t and documents how malloc and friends align their results.
Also, it says that systems where malloc (0) returns NULL are now rare,
and reorganizes for clarity to separate examples from portability notes.

v2 incorporates comments from Floriam Weimer and Wilco Dijkstra in:
https://sourceware.org/pipermail/libc-alpha/2026-February/174910.html
https://sourceware.org/pipermail/libc-alpha/2026-February/174994.html
https://sourceware.org/pipermail/libc-alpha/2026-February/174911.html
https://sourceware.org/pipermail/libc-alpha/2026-February/174916.html
As a result there is now a new, 4th patch that adds documentation on
possible future changes.

Paul Eggert (4):
  Document max_align_t
  Document malloc alignment
  Say malloc (0) != NULL is now common; resection
  malloc: alignment might change in future versions

 NEWS               |  7 +++-
 manual/lang.texi   | 28 ++++++++++----
 manual/memory.texi | 94 +++++++++++++++++++++++++++++++++++++++-------
 3 files changed, 107 insertions(+), 22 deletions(-)

--
2.51.0



More information about the Libc-alpha mailing list