OpenAFS CVS Commit: openafs/src/util by jaltman

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


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

Modified Files:
	afsutil.h snprintf.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/afsutil.h 1.27 1.28
util-snprintf-replacement-20090624 openafs/src/util/snprintf.c 1.28 1.29