OpenAFS CVS Commit: openafs/src/util by jaltman

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


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

Modified Files:
      Tag: openafs-devel-1_5_x
	afsutil.h snprintf.c 
Log Message:
DELTA DEVEL15-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 for openafs-devel-1_5_x follows ---
DEVEL15-util-snprintf-replacement-20090624 openafs/src/util/afsutil.h 1.21.2.6 1.21.2.7
DEVEL15-util-snprintf-replacement-20090624 openafs/src/util/snprintf.c 1.24.4.4 1.24.4.5