Name Date Size #Lines LOC

..--

COPYING.LIBHD20-Feb-202025.8 KiB

READMEH A D20-Feb-20202.9 KiB7355

argv.cH A D20-Feb-202013.2 KiB541313

concat.cH A D20-Feb-20205.8 KiB235127

cp-demangle.cH A D20-Feb-2020150 KiB5,8404,273

cp-demangle.hH A D20-Feb-20205.4 KiB17071

cp-demint.cH A D20-Feb-20206.8 KiB233160

cplus-dem.cH A D20-Feb-2020120.3 KiB4,8633,540

dwarfnames.cH A D20-Feb-20203.1 KiB9964

dyn-string.cH A D20-Feb-202011 KiB398214

filename_cmp.cH A D20-Feb-20204.6 KiB19389

floatformat.cH A D20-Feb-202021.2 KiB766563

getopt.cH A D20-Feb-202029.6 KiB1,053632

getopt1.cH A D20-Feb-20204.3 KiB181113

getpwd.cH A D20-Feb-20202.5 KiB12984

getruntime.cH A D20-Feb-20203 KiB11764

hashtab.cH A D20-Feb-202028.4 KiB991619

hex.cH A D20-Feb-20206.8 KiB193113

lbasename.cH A D20-Feb-20202.3 KiB8536

lrealpath.cH A D20-Feb-20204.7 KiB15886

make-relative-prefix.cH A D20-Feb-202010.6 KiB428285

make-temp-file.cH A D20-Feb-20205.5 KiB218131

objalloc.cH A D20-Feb-20207.2 KiB299174

obstack.cH A D20-Feb-202015.9 KiB511307

pex-common.cH A D20-Feb-202014.9 KiB647477

pex-common.hH A D20-Feb-20206.1 KiB15459

pex-one.cH A D20-Feb-20201.4 KiB4422

pex-unix.cH A D20-Feb-202019.6 KiB791585

pexecute.cH A D20-Feb-20203.2 KiB12577

regex.cH A D20-Feb-2020253 KiB8,2055,352

safe-ctype.cH A D20-Feb-202010.1 KiB256110

setproctitle.cH A D20-Feb-20201.4 KiB4915

simple-object-coff.cH A D20-Feb-202022.9 KiB805594

simple-object-common.hH A D20-Feb-202010 KiB357201

simple-object-elf.cH A D20-Feb-202028.5 KiB954684

simple-object-mach-o.cH A D20-Feb-202039.9 KiB1,379996

simple-object-xcoff.cH A D20-Feb-202025.1 KiB899682

simple-object.cH A D20-Feb-20209.1 KiB424306

simple-object.txhH A D20-Feb-20207.5 KiB190138

splay-tree.cH A D20-Feb-202014.7 KiB594374

stack-limit.cH A D20-Feb-20202 KiB6426

stpcpy.cH A D20-Feb-20201.3 KiB4410

strnlen.cH A D20-Feb-2020585 3111

timeval-utils.cH A D20-Feb-20202.2 KiB8839

unlink-if-ordinary.cH A D20-Feb-20202 KiB7328

xexit.cH A D20-Feb-20201.5 KiB5316

xstrdup.cH A D20-Feb-2020720 3720

xstrerror.cH A D20-Feb-20202 KiB8045

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.in 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 in Makefile.in and the object
35      file to CONFIGURED_OFILES.
36
37    * Add the function to name to the funcs shell variable in
38      configure.ac.
39
40    * Add the function to the AC_CHECK_FUNCS lists just after the
41      setting of the funcs shell variable.  These AC_CHECK_FUNCS calls
42      are never executed; they are there to make autoheader work
43      better.
44
45    * Consider the special cases of building libiberty; as of this
46      writing, the special cases are newlib and VxWorks.  If a
47      particular special case provides the function, you do not need
48      to do anything.  If it does not provide the function, add the
49      object file to LIBOBJS, and add the function name to the case
50      controlling whether to define HAVE_func.
51
52Finally, in the build directory of libiberty, configure with
53"--enable-maintainer-mode", run "make maint-deps" to update
54Makefile.in, and run 'make stamp-functions' to regenerate
55functions.texi.
56
57The optional file you've added (e.g. getcwd.c) should compile and work
58on all hosts where it is needed.  It does not have to work or even
59compile on hosts where it is not needed.
60
61ADDING A NEW CONFIGURATION
62==========================
63
64On most hosts you should be able to use the scheme for automatically
65figuring out which files are needed.  In that case, you probably
66don't need a special Makefile stub for that configuration.
67
68If the fully automatic scheme doesn't work, you may be able to get
69by with defining EXTRA_OFILES in your Makefile stub.  This is
70a list of object file names that should be treated as required
71for this configuration - they will be included in libiberty.a,
72regardless of whatever might be in the C library.
73