Go to file
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
benchmarks Add various benchmarks. 2014-03-11 11:20:52 -07:00
libc Fix the printf issue for 64 bits. The following case: 2014-04-02 18:30:55 +04:00
libdl Use arch-specific variable to set up the x86 ld flags. 2014-01-24 16:50:16 -08:00
libm Fix LP64 libm for 128-bit long doubles 2014-03-24 11:48:42 +00:00
libstdc++ Clean up warnings in libstdc++. 2014-02-18 12:02:37 -08:00
linker Remove duplicate line in linker/Android.mk. 2014-04-01 11:41:36 -07:00
tests Fix the printf issue for 64 bits. The following case: 2014-04-02 18:30:55 +04:00
.gitignore Merge memory checking functionality from sandbox 2010-02-16 11:43:18 -08:00
ABI-bugs.txt PTHREAD_KEYS_MAX cleanup. 2013-12-12 12:51:08 -08:00
Android.mk Remove the simulator target from all makefiles. 2011-07-11 22:11:41 -07:00
CleanSpec.mk Add an empty CleanSpec.mk 2010-03-08 18:04:02 -08:00
HACKING.txt Renamed the misleading libc/netbsd directory to libc/dns. 2014-02-28 16:31:04 +00:00