[PATCH] manual: Document the standardized scanf flag, "m". [BZ #16376]

Rical Jasan ricaljasan@pacific.net
Wed Feb 7 06:50:00 GMT 2018


Looking in stdio-common/vfscanf.c, "a" uses GNU_MALLOC, and "m" uses
POSIX_MALLOC, and there is a MALLOC which is defined to either, and
throughout the code there are several conditionals where POSIX_MALLOC is
nested beneath MALLOC (GNU_MALLOC is always MALLOC), but I'm not sure we
want to document any internal implementation differences (if they're
even significant).  The existing documentation wasn't very detailed
itself, but I still wanted to mention it.

I confirmed "m" was introduced in POSIX.1-2008 (mentioned in the Issue 7
section of CHANGE HISTORY on the s/f/scanf page).

The NEWS file says entries for bugs will be generated automatically, and
once ACK'd, I'll refactor the paragraphs before committing (tried to
make it easier to see what changed here) and provide a ChangeLog entry.

Rical
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-manual-Document-the-standardized-scanf-flag-m-.-BZ-1.patch
Type: text/x-patch
Size: 4430 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20180207/65d8d218/attachment.bin>


More information about the Libc-alpha mailing list