Add some more functions for -liberty and make the library WARNS=6 clean.
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Sat, 23 Oct 2004 12:15:21 +0000 (12:15 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Sat, 23 Oct 2004 12:15:21 +0000 (12:15 +0000)
commite6d56d3157108019269eaa340b98aefb4213fa97
treed5adc4f373a3817e375d80b27a30b265d7b32ad7
parent208ec2abd982638c784a3c85a50d10dcb3b75cc9
Add some more functions for -liberty and make the library WARNS=6 clean.

As replacement of the missing documentation:
- buildargv, freeargv and dupargv help with managing argv lists as NULL
  terminated lists of strings
- hex_p and hex_value help with the detection and evaluation of hex digests,
  they might be replaced by an inline version later
- concat and reconcat can be used to concat an arbitrary number of strings
- xatexit, xexit and xstrerror just call the corresponding normal functions,
  they already provide the GNU functionality
- xcalloc, xmalloc, xmemdup, xrealloc and xstrdup work as expected but
  terminate the program if the memory allocation can not be fullfilled
15 files changed:
include/libiberty.h
lib/libiberty/Makefile
lib/libiberty/argv.c [new file with mode: 0644]
lib/libiberty/concat.c [copied from lib/libiberty/lrealpath.c with 53% similarity]
lib/libiberty/hex.c [new file with mode: 0644]
lib/libiberty/lbasename.c
lib/libiberty/lrealpath.c
lib/libiberty/xatexit.c [copied from lib/libiberty/lbasename.c with 85% similarity]
lib/libiberty/xcalloc.c [copied from lib/libiberty/lbasename.c with 82% similarity]
lib/libiberty/xexit.c [copied from lib/libiberty/lbasename.c with 85% similarity]
lib/libiberty/xmalloc.c [copied from lib/libiberty/lbasename.c with 83% similarity]
lib/libiberty/xmemdup.c [copied from lib/libiberty/lbasename.c with 83% similarity]
lib/libiberty/xrealloc.c [copied from lib/libiberty/lbasename.c with 82% similarity]
lib/libiberty/xstrdup.c [copied from lib/libiberty/lbasename.c with 83% similarity]
lib/libiberty/xstrerror.c [copied from lib/libiberty/lbasename.c with 87% similarity]