OpenAFS CVS Commit: openafs/src/util/test by jaltman

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Wed, 24 Jun 2009 11:15:43 EDT


Update of /cvs/openafs/src/util/test
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-head/src/util/test

Modified Files:
	NTMakefile 
Added Files:
	snprintf_test.c 
Log Message:
DELTA util-snprintf-replacement-20090624
AUTHOR jaltman@your-file-system.com
LICENSE BSD

1. Add a test program for *printf functionality.  util/tests/snprintf_test.c

2. Replace OpenAFS implementation of afs_*printf() with Heimdal's version.

3. Add support to Heimdal's version to support:
  
 - floating point

 - OpenAFS %I ipv4 address formatting (dotted notation and hostname lookup)

 - Microsoft's I32 and I64 integer size modifiers

With these changes OpenAFS gains:

 - output that is compliant with standard *printf implementations.
   the previous implementation had justification, padding and case
   errors.

 - support for a NULL buffer which computes the required size based
   upon the input format and arguments.  the previous implementation
   would crash.

 - support for additional format types.

 - OpenAFS specific implementations of vasnprintf(), vasprintf(), 
   asprintf(), and asnprintf().



--- DELTA config follows ---
util-snprintf-replacement-20090624 openafs/src/util/test/snprintf_test.c /dev/null 1.1
util-snprintf-replacement-20090624 openafs/src/util/test/NTMakefile 1.6 1.7