[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: check for C99-compliant snprintf - call for volunteers
From: |
Bruno Haible |
Subject: |
Re: check for C99-compliant snprintf - call for volunteers |
Date: |
Sun, 4 Mar 2007 15:57:00 +0100 |
User-agent: |
KMail/1.5.4 |
Paul Eggert wrote on 2007-02-16:
> It's a bit of a pain that this will reject all cross-compiled snprintfs.
> Is there some way you can test for this at compile-time?
Cross-compiles can be handled at configure time, by using predetermined
test results (and assuming the worst in cases where we the system is not
in our list).
Here's the current matrix:
1 = checking whether printf supports size specifiers as in C99...
2 = checking whether printf supports the 'a' and 'A' directives...
3 = checking whether printf supports the 'n' directive...
4 = checking whether printf supports POSIX/XSI format strings with
positions...
5 = checking for snprintf...
6 = checking whether snprintf truncates the result as in C99...
7 = checking whether snprintf returns a byte count as in C99...
. = yes, # = no.
1 2 3 4 5 6 7
glibc 2.3.6 . . . . . . .
FreeBSD 6.1 . . . . . . .
MacOS X 10.3.9 . . . . . . .
Solaris 10 . # . . . . .
Solaris 2.6 ... 9 # # . . . . .
Solaris 2.5.1 # # . . # # #
AIX 4.3.2, 5.1 # # . . . . .
HP-UX 11.31 . # . . . . #
HP-UX 11.00, 11.11, 11.23 # # . . . . #
HP-UX 10.20 # # # ? . ? #
IRIX 6.5 # # . . . . #
OSF/1 5.1 # # . . . . #
OSF/1 4.0d # # . . # # #
NetBSD 3.0 . # . # . . .
BeOS # # . # . . .
mingw # # . # . # #
Volunteers wanted: If you have access to a system with
- FreeBSD 5.x
- OpenBSD
- HP-UX 10
- Cygwin
could you please run the configure script from the attached package and
report the results?
Bruno
printftestdir1.tar.bz2
Description: application/tbz