Name Date Size #Lines LOC

..--

config/H--2013

testsuite/H--3,6683,325

COPYING.LIBHD27-May-200825.8 KiB

ChangeLogH A D27-May-2008241.2 KiB7,1935,050

Makefile.inH A D27-May-200840.9 KiB1,174925

READMEH A D27-May-20082.6 KiB6750

_doprnt.cH A D27-May-20087.4 KiB297239

aclocal.m4H A D27-May-20086.4 KiB222205

alloca.cH A D27-May-200813.7 KiB484271

argv.cH A D19-Jan-201511.4 KiB459275

asprintf.cH A D27-May-20081.8 KiB5717

at-file.texiH A D27-May-2008732 1613

atexit.cH A D27-May-2008488 289

basename.cH A D27-May-20081.3 KiB6339

bcmp.cH A D27-May-2008643 287

bcopy.cH A D27-May-2008670 3219

bsearch.cH A D27-May-20083.7 KiB9024

bzero.cH A D27-May-2008435 247

calloc.cH A D27-May-2008714 3514

choose-temp.cH A D07-Jun-20082.1 KiB7531

clock.cH A D27-May-20082.6 KiB10455

concat.cH A D27-May-20085.7 KiB233127

config.h-vmsH A D24-Nov-2003201 1412

config.inH A D27-May-200811.9 KiB445303

configureH A D27-May-2008270.1 KiB9,9848,543

configure.acH A D27-May-200818.8 KiB670578

copying-lib.texiH A D27-May-200826.2 KiB566479

copysign.cH A D27-May-20082.6 KiB155136

cp-demangle.cH A D26-May-2010109.2 KiB4,3533,135

cp-demangle.hH A D27-May-20085 KiB16269

cp-demint.cH A D27-May-20086.8 KiB235162

cplus-dem.cH A D27-May-2008115.7 KiB4,7183,414

dyn-string.cH A D27-May-200811.5 KiB407217

fdmatch.cH A D27-May-20082.1 KiB6923

ffs.cH A D27-May-2008465 2710

fibheap.cH A D27-May-200810.5 KiB479341

floatformat.cH A D27-May-200817.9 KiB643478

fnmatch.cH A D27-May-20085.3 KiB221139

fnmatch.txhH A D25-Nov-20031.9 KiB4938

fopen_unlocked.cH A D27-May-20083.4 KiB12749

functions.texiH A D27-May-200854.9 KiB1,5211,115

gather-docsH A D27-May-20083.3 KiB12970

getcwd.cH A D27-May-20081.2 KiB6338

getopt.cH A D27-May-200829.6 KiB1,053632

getopt1.cH A D27-May-20084.3 KiB181113

getpagesize.cH A D27-May-20082 KiB9158

getpwd.cH A D27-May-20082.5 KiB12984

getruntime.cH A D27-May-20083 KiB11764

gettimeofday.cH A D27-May-2008543 3118

hashtab.cH A D27-May-200826.6 KiB935588

hex.cH A D27-May-20086.8 KiB193113

index.cH A D27-May-2008448 226

insque.cH A D27-May-20081.1 KiB5118

lbasename.cH A D27-May-20082 KiB6520

libiberty.texiH A D27-May-200810.9 KiB325240

lrealpath.cH A D27-May-20084.7 KiB15886

maint-toolH A D27-May-20086.2 KiB297229

make-relative-prefix.cH A D27-May-20089.6 KiB390263

make-temp-file.cH A D27-May-20084.4 KiB17897

makefile.vmsH A D24-Nov-2003813 3419

md5.cH A D27-May-200813.7 KiB431268

memchr.cH A D27-May-2008811 3314

memcmp.cH A D27-May-2008872 3514

memcpy.cH A D27-May-2008498 269

memmove.cH A D27-May-2008529 269

mempcpy.cH A D27-May-20081.3 KiB428

memset.cH A D27-May-2008496 2610

mkstemps.cH A D27-May-20083.5 KiB13776

msdos.cH A D24-Nov-2003177 1612

objalloc.cH A D11-Jun-20157.2 KiB299174

obstack.cH A D27-May-200815.9 KiB511307

obstacks.texiH A D25-Nov-200329.5 KiB759621

partition.cH A D27-May-20084.8 KiB184108

pex-common.cH A D28-Jul-201713.9 KiB600435

pex-unix.cH A D12-Oct-200912.4 KiB539412

pexecute.cH A D28-Jul-20173.2 KiB12678

pexecute.txhH A D31-Aug-201411 KiB285210

physmem.cH A D27-May-20087.2 KiB306224

putenv.cH A D27-May-20082.2 KiB8540

random.cH A D27-May-200814 KiB404193

regex.cH A D27-May-2008252.9 KiB8,2035,352

rename.cH A D27-May-2008633 3721

rindex.cH A D27-May-2008460 226

safe-ctype.cH A D27-May-200810.1 KiB256110

setenv.cH A D27-May-20084.5 KiB184114

sigsetmask.cH A D27-May-2008924 4119

snprintf.cH A D27-May-20082.1 KiB6116

sort.cH A D27-May-20084.8 KiB187101

spaces.cH A D27-May-20081.8 KiB7336

splay-tree.cH A D27-May-200812.9 KiB527340

stpcpy.cH A D27-May-20081.3 KiB4410

stpncpy.cH A D27-May-20081.5 KiB4812

strcasecmp.cH A D27-May-20084.2 KiB8855

strchr.cH A D27-May-2008528 2912

strdup.cH A D27-May-2008562 2814

strerror.cH A D07-Jun-200820.8 KiB810593

strncasecmp.cH A D27-May-20083.4 KiB8755

strncmp.cH A D27-May-2008634 3417

strndup.cH A D27-May-20081.6 KiB5618

strrchr.cH A D27-May-2008548 2911

strsignal.cH A D07-Jun-200814.9 KiB609366

strstr.cH A D27-May-20081 KiB4216

strtod.cH A D27-May-20083.4 KiB13778

strtol.cH A D27-May-20085.3 KiB16476

strtoul.cH A D27-May-20083.2 KiB11673

strverscmp.cH A D27-May-20085.2 KiB15860

ternary.cH A D27-May-20083.9 KiB158103

tmpnam.cH A D27-May-20081 KiB5328

unlink-if-ordinary.cH A D27-May-20082 KiB7328

vasprintf.cH A D27-May-20084.7 KiB197143

vfork.cH A D27-May-2008346 237

vfprintf.cH A D27-May-2008343 169

vmsbuild.comH A D24-Nov-20034.9 KiB166159

vprintf.cH A D27-May-2008848 279

vsnprintf.cH A D27-May-20084.1 KiB14684

vsprintf.cH A D27-May-20081.8 KiB5724

waitpid.cH A D27-May-2008777 3618

xatexit.cH A D27-May-20082.1 KiB10050

xexit.cH A D27-May-20081.5 KiB5316

xmalloc.cH A D20-Oct-20153.8 KiB16079

xmemdup.cH A D27-May-2008948 3919

xstrdup.cH A D27-May-2008720 3720

xstrerror.cH A D07-Jun-20082 KiB8045

xstrndup.cH A D27-May-20081.6 KiB6124

README

1This directory contains the -liberty library of free software.
2It is a collection of subroutines used by various GNU programs.
3Current members include:
4
5	getopt -- get options from command line
6	obstack -- stacks of arbitrarily-sized objects
7	strerror -- error message strings corresponding to errno
8	strtol -- string-to-long conversion
9	strtoul -- string-to-unsigned-long conversion
10
11We expect many of the GNU subroutines that are floating around to
12eventually arrive here.
13
14The library must be configured from the top source directory.  Don't
15try to run configure in this directory.  Follow the configuration
16instructions in ../README.
17
18Please report bugs to "gcc-bugs@gcc.gnu.org" and send fixes to
19"gcc-patches@gcc.gnu.org".  Thank you.
20
21ADDING A NEW FILE
22=================
23
24There are two sets of files:  Those that are "required" will be
25included in the library for all configurations, while those
26that are "optional" will be included in the library only if "needed."
27
28To add a new required file, edit Makefile to add the source file
29name to CFILES and the object file to REQUIRED_OFILES.
30
31To add a new optional file, it must provide a single function, and the
32name of the function must be the same as the name of the file.
33
34    * Add the source file name to CFILES.
35
36    * Add the function to name to the funcs shell variable in
37      configure.ac.
38
39    * Add the function to the AC_CHECK_FUNCS lists just after the
40      setting of the funcs shell variable.  These AC_CHECK_FUNCS calls
41      are never executed; they are there to make autoheader work
42      better.
43
44    * Consider the special cases of building libiberty; as of this
45      writing, the special cases are newlib and VxWorks.  If a
46      particular special case provides the function, you do not need
47      to do anything.  If it does not provide the function, add the
48      object file to LIBOBJS, and add the function name to the case
49      controlling whether to define HAVE_func.
50
51The optional file you've added (e.g. getcwd.c) should compile and work
52on all hosts where it is needed.  It does not have to work or even
53compile on hosts where it is not needed.
54
55ADDING A NEW CONFIGURATION
56==========================
57
58On most hosts you should be able to use the scheme for automatically
59figuring out which files are needed.  In that case, you probably
60don't need a special Makefile stub for that configuration.
61
62If the fully automatic scheme doesn't work, you may be able to get
63by with defining EXTRA_OFILES in your Makefile stub.  This is
64a list of object file names that should be treated as required
65for this configuration - they will be included in libiberty.a,
66regardless of whatever might be in the C library.
67