Name Date Size #Lines LOC

..08-May-2022-

COPYING.LIBH A D08-May-202225.8 KiB

READMEH A D08-May-20222.9 KiB7355

alloca.cH A D08-May-202213.7 KiB484271

argv.cH A D08-May-202213.1 KiB537309

at-file.texiH A D08-May-2022732 1613

choose-temp.cH A D08-May-20222 KiB7531

concat.cH A D08-May-20224.9 KiB218122

cp-demangle.cH A D08-May-2022169.7 KiB6,4844,759

cp-demangle.hH A D08-May-20225.9 KiB20096

cp-demint.cH A D08-May-20226.8 KiB234161

cplus-dem.cH A D08-May-2022120.7 KiB4,8863,562

crc32.cH A D08-May-20226.4 KiB18082

d-demangle.cH A D08-May-202235.9 KiB1,6031,224

dwarfnames.cH A D08-May-20223.1 KiB9964

dyn-string.cH A D08-May-202211 KiB398214

fdmatch.cH A D08-May-20222.1 KiB6923

fibheap.cH A D08-May-202210.8 KiB487346

filename_cmp.cH A D08-May-20225.3 KiB222103

floatformat.cH A D08-May-202221.5 KiB777573

fnmatch.cH A D08-May-20225.3 KiB221139

fopen_unlocked.cH A D08-May-20223.4 KiB13049

getopt.cH A D08-May-202229.6 KiB1,053632

getopt1.cH A D08-May-20224.3 KiB181113

getpwd.cH A D08-May-20222.5 KiB12984

getruntime.cH A D08-May-20223 KiB12167

hashtab.cH A D08-May-202228.6 KiB999626

hex.cH A D08-May-20226.8 KiB193113

lbasename.cH A D08-May-20222.3 KiB8536

lrealpath.cH A D08-May-20224.7 KiB15886

make-relative-prefix.cH A D08-May-202210.6 KiB428285

make-temp-file.cH A D08-May-20225.5 KiB218131

md5.cH A D08-May-202214 KiB441274

mempcpy.cH A D08-May-20221.3 KiB438

objalloc.cH A D08-May-20227.2 KiB299174

obstack.cH A D08-May-202212.7 KiB377236

partition.cH A D08-May-20224.8 KiB184108

pex-common.cH A D08-May-202215 KiB649479

pex-common.hH A D08-May-20226.1 KiB15459

pex-one.cH A D08-May-20221.4 KiB4422

pex-unix.cH A D08-May-202219.6 KiB791586

pexecute.cH A D08-May-20223.2 KiB12577

physmem.cH A D08-May-20227.2 KiB306224

regex.cH A D08-May-2022253 KiB8,2055,352

safe-ctype.cH A D08-May-202210.1 KiB256110

setproctitle.cH A D08-May-20221.4 KiB4915

sha1.cH A D08-May-202212.3 KiB416277

simple-object-coff.cH A D08-May-202222.9 KiB805594

simple-object-common.hH A D08-May-202210 KiB357201

simple-object-elf.cH A D08-May-202229.1 KiB974705

simple-object-mach-o.cH A D08-May-202239.9 KiB1,379996

simple-object-xcoff.cH A D08-May-202225.1 KiB899682

simple-object.cH A D08-May-20229.3 KiB442326

simple-object.txhH A D08-May-20227.5 KiB190138

sort.cH A D08-May-20224.8 KiB187101

spaces.cH A D08-May-20221.7 KiB7033

splay-tree.cH A D08-May-202214.7 KiB594374

stack-limit.cH A D08-May-20222 KiB6426

stpcpy.cH A D08-May-20221.3 KiB4410

strerror.cH A D08-May-202220.8 KiB815597

strsignal.cH A D08-May-202214.9 KiB611366

strverscmp.cH A D08-May-20225.2 KiB15860

timeval-utils.cH A D08-May-20222.2 KiB8839

unlink-if-ordinary.cH A D08-May-20222 KiB7328

xatexit.cH A D08-May-20222.1 KiB10050

xexit.cH A D08-May-20221.5 KiB5316

xmalloc.cH A D08-May-20224.6 KiB18699

xmemdup.cH A D08-May-20221 KiB4221

xstrdup.cH A D08-May-2022720 3720

xstrerror.cH A D08-May-20222 KiB8045

xstrndup.cH A D08-May-20221.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.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