platform_bionic/libc/stdio
Alexander Ivchenko edd7c2ec25 Fix the printf issue for 64 bits. The following case:
printf("%1$s %1$s\n", "test");

would print garbage instead of the second "test". The problem is __find_arguments
and the patch is a backport of two patches from OpenBSD that fix the issue:

Author: tedu <tedu@cvs.openbsd.org>
Date:   Sat Apr 29 23:00:24 2006 +0000

    check mmap for failure.  the helper functions using it return -1, but
    callers do not yet check since printf() for example is not documented
    to return an error.
    some formatting cleanups.
    mostly ok deraadt millert

Author: millert <millert@cvs.openbsd.org>
Date:   Fri May 16 14:28:54 2008 +0000

    C99 says that for each va_copy() there must be a matching va_end().
    Replace the non-portable hackery in __find_arguments() with a union.
    From FreeBSD.

Change-Id: I6ea392ce6fcf4a319ae6a67ec58cc52fe7cbe534
Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
2014-04-02 18:30:55 +04:00
..
fileext.h More OpenBSD cleanup (primarily string). 2014-02-24 18:02:05 -08:00
findfp.c Remove ALIGNBYTES and ALIGN from <sys/param.h> 2014-03-21 09:59:34 +00:00
floatio.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
fread.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
fvwrite.c Bug 3330205 Put blanks and zeroes in const area 2011-01-09 11:38:56 -08:00
fvwrite.h Bug 3330205 Put blanks and zeroes in const area 2011-01-09 11:38:56 -08:00
glue.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
local.h Clean up <stdio.h> macros. 2014-03-13 14:54:53 -07:00
snprintf.c Remove _FORTIFY_SOURCE in implementation files. 2013-10-01 15:02:07 -07:00
sprintf.c Remove _FORTIFY_SOURCE in implementation files. 2013-10-01 15:02:07 -07:00
vfprintf.c Fix the printf issue for 64 bits. The following case: 2014-04-02 18:30:55 +04:00
wcio.h typo in libc/stdio/wcio.h 2011-07-02 20:29:25 -04:00