u-boot/lib
Sonny Rao 046a37bd53 Add safe vsnprintf and snprintf library functions
From: Sonny Rao <sonnyrao@chromium.org>

These functions are useful in U-Boot because they allow a graceful failure
rather than an unpredictable stack overflow when printf() buffers are
exceeded.

Mostly copied from the Linux kernel. I copied vscnprintf and
scnprintf so we can change printf and vprintf to use the safe
implementation but still return the correct values.

(Simon Glass <sjg@chromium.org> modified this commit a little)

Signed-off-by: Sonny Rao <sonnyrao@chromium.org>
2011-12-17 23:33:20 +01:00
..
libfdt libfdt: Implement property iteration functions 2011-07-14 21:10:34 -04:00
lzma GCC4.6: Squash warnings in LzmaTools.c 2011-10-27 23:54:08 +02:00
lzo GCC4.6: Squash warning in lzo1x_decompress.c 2011-10-01 23:34:38 +02:00
zlib zlib: Fix integer cast of pointer 2011-10-28 00:33:38 +02:00
addr_map.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
asm-offsets.c Small coding style fix in lib/asm-offsets.c 2011-01-17 22:55:58 +01:00
bzlib.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_crctable.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_decompress.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_huffman.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_private.h Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_randtable.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
circbuf.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
crc7.c lib: add crc7 from Linux 2011-01-18 23:38:08 +01:00
crc16.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
crc32.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
ctype.c ctype: constify lookup table 2010-11-28 21:58:29 +01:00
display_options.c unify version_string 2011-07-28 17:22:53 +02:00
div64.c Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
errno.c Add basic errno support. 2010-09-19 19:29:47 +02:00
fdtdec.c fdt: add decode helper library 2011-10-26 21:39:40 +02:00
gunzip.c Fix gunzip to work for any gziped uImage size 2011-04-12 22:58:30 +02:00
hashtable.c sandbox: Fix warnings in hashtable.c 2011-11-22 08:40:05 +01:00
ldiv.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
lmb.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
Makefile fdt: add decode helper library 2011-10-26 21:39:40 +02:00
md5.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
net_utils.c string_to_ip: constify "s" arg 2010-11-28 21:56:39 +01:00
qsort.c Include common.h in qsort.c to fix build warning 2011-12-07 08:39:54 +01:00
rbtree.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
sha1.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
sha256.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
string.c memcpy/memmove: Do not copy to same address 2011-07-26 00:28:44 +02:00
strmhz.c strmhz: Make hz unsigned to support greater than 2146 MHz clock 2011-03-22 23:34:36 +01:00
time.c consolidate mdelay by providing a common function for all users 2011-10-22 01:16:08 +02:00
uuid.c lib: add uuid_str_to_bin for use with bootp and PXE uuid 2011-10-17 22:25:35 +02:00
vsprintf.c Add safe vsnprintf and snprintf library functions 2011-12-17 23:33:20 +01:00