Name Date Size #Lines LOC

..--

config/H--2013

testsuite/H--4,6924,131

COPYING.LIBHD13-Oct-201625.8 KiB

ChangeLogH A D12-Aug-2024363.8 KiB

ChangeLog.jitH A D13-Oct-2016794 2416

Makefile.inH A D12-Aug-202467.2 KiB

READMEH A D13-Oct-20162.9 KiB7355

_doprnt.cH A D12-Aug-20247.3 KiB

acinclude.m4H A D12-Aug-20245.3 KiB

aclocal.m4H A D12-Aug-2024940

alloca.cH A D12-Aug-202413.8 KiB

argv.cH A D12-Aug-202413.7 KiB

asprintf.cH A D12-Aug-20241.8 KiB

at-file.texiH A D13-Oct-2016732 1613

atexit.cH A D13-Oct-2016488 289

basename.cH A D13-Oct-20161.3 KiB6339

bcmp.cH A D13-Oct-2016643 287

bcopy.cH A D13-Oct-2016694 3219

bsearch.cH A D21-Mar-20233.7 KiB9224

bsearch_r.cH A D21-Mar-20233.8 KiB9425

bzero.cH A D13-Oct-2016435 247

calloc.cH A D12-Aug-2024722

choose-temp.cH A D12-Aug-20242 KiB

clock.cH A D12-Aug-20242.6 KiB

concat.cH A D12-Aug-20244.9 KiB

config.h-vmsH A D13-Oct-2016309 1512

config.inH A D14-Sep-202015.3 KiB578403

configureH A D12-Aug-2024248 KiB

configure.acH A D12-Aug-202422 KiB

configure.comH A D13-Oct-20161.1 KiB3938

copying-lib.texiH A D12-Aug-202426.1 KiB

copysign.cH A D13-Oct-20162.6 KiB155136

cp-demangle.cH A D12-Aug-2024185.1 KiB

cp-demangle.hH A D12-Aug-20246 KiB

cp-demint.cH A D12-Aug-20247 KiB

cplus-dem.cH A D12-Aug-202412.4 KiB

crc32.cH A D12-Aug-20246.4 KiB

d-demangle.cH A D12-Aug-202446.9 KiB

dwarfnames.cH A D12-Aug-20243.7 KiB

dyn-string.cH A D12-Aug-202411 KiB

fdmatch.cH A D12-Aug-20242.1 KiB

ffs.cH A D13-Oct-2016465 2710

fibheap.cH A D12-Aug-202410.8 KiB

filedescriptor.cH A D12-Aug-20241.3 KiB

filename_cmp.cH A D12-Aug-20245.3 KiB

floatformat.cH A D12-Aug-202421.9 KiB

fnmatch.cH A D12-Aug-20245.3 KiB

fnmatch.txhH A D13-Oct-20161.9 KiB5039

fopen_unlocked.cH A D12-Aug-20243.4 KiB

functions.texiH A D21-Mar-202374.2 KiB2,0641,529

gather-docsH A D12-Aug-20243.3 KiB

getcwd.cH A D13-Oct-20161.2 KiB6338

getopt.cH A D12-Aug-202429.5 KiB

getopt1.cH A D12-Aug-20244.3 KiB

getpagesize.cH A D13-Oct-20162 KiB9158

getpwd.cH A D13-Oct-20162.5 KiB12984

getruntime.cH A D12-Aug-20243 KiB

gettimeofday.cH A D13-Oct-2016543 3118

hashtab.cH A D12-Aug-202429 KiB

hex.cH A D12-Aug-20246.8 KiB

index.cH A D13-Oct-2016448 226

insque.cH A D13-Oct-20161.1 KiB5218

lbasename.cH A D12-Aug-20242.3 KiB

libiberty.texiH A D12-Aug-202410.5 KiB

lrealpath.cH A D12-Aug-20244.7 KiB

maint-toolH A D12-Aug-20246.5 KiB

make-relative-prefix.cH A D12-Aug-202410.7 KiB

make-temp-file.cH A D12-Aug-20245.9 KiB

makefile.vmsH A D13-Oct-20161,016 3723

md5.cH A D12-Aug-202414 KiB

memchr.cH A D12-Aug-2024823

memcmp.cH A D12-Aug-2024880

memcpy.cH A D12-Aug-2024509

memmem.cH A D12-Aug-20242.1 KiB

memmove.cH A D12-Aug-2024540

mempcpy.cH A D12-Aug-20241.3 KiB

memset.cH A D12-Aug-2024505

mkstemps.cH A D12-Aug-20243.7 KiB

msdos.cH A D13-Oct-2016177 1612

objalloc.cH A D12-Aug-20247.2 KiB

obstack.cH A D12-Aug-202412.7 KiB

obstacks.texiH A D28-Nov-201730.5 KiB775635

partition.cH A D12-Aug-20244.8 KiB

pex-common.cH A D12-Aug-202415 KiB

pex-common.hH A D12-Aug-20246 KiB

pex-djgpp.cH A D12-Aug-20246.7 KiB

pex-msdos.cH A D12-Aug-20247.2 KiB

pex-one.cH A D12-Aug-20241.4 KiB

pex-unix.cH A D12-Aug-202420.7 KiB

pex-win32.cH A D12-Aug-202425.6 KiB

pexecute.cH A D12-Aug-20243.2 KiB

pexecute.txhH A D13-Oct-201611.7 KiB317239

physmem.cH A D12-Aug-20247.1 KiB

putenv.cH A D12-Aug-20242.1 KiB

random.cH A D12-Aug-202414 KiB

regex.cH A D12-Aug-2024253.1 KiB

rename.cH A D13-Oct-2016633 3721

rindex.cH A D13-Oct-2016460 226

rust-demangle.cH A D12-Aug-202434.7 KiB

safe-ctype.cH A D12-Aug-202410 KiB

setenv.cH A D12-Aug-20244.4 KiB

setproctitle.cH A D12-Aug-20241.4 KiB

sha1.cH A D12-Aug-202412.3 KiB

sigsetmask.cH A D13-Oct-2016902 4018

simple-object-coff.cH A D12-Aug-202422.9 KiB

simple-object-common.hH A D12-Aug-202410.2 KiB

simple-object-elf.cH A D12-Aug-202448.8 KiB

simple-object-mach-o.cH A D12-Aug-202440.1 KiB

simple-object-xcoff.cH A D12-Aug-202429.5 KiB

simple-object.cH A D12-Aug-202413.6 KiB

simple-object.txhH A D13-Oct-20167.5 KiB190138

snprintf.cH A D12-Aug-20242.2 KiB

sort.cH A D12-Aug-20244.8 KiB

spaces.cH A D12-Aug-20241.8 KiB

splay-tree.cH A D12-Aug-202415.5 KiB

stack-limit.cH A D12-Aug-20242 KiB

stpcpy.cH A D12-Aug-20241.4 KiB

stpncpy.cH A D12-Aug-20241.5 KiB

strcasecmp.cH A D13-Oct-20164.2 KiB8855

strchr.cH A D13-Oct-2016528 2912

strdup.cH A D12-Aug-2024572

strerror.cH A D12-Aug-202420.8 KiB

strncasecmp.cH A D13-Oct-20163.4 KiB8755

strncmp.cH A D13-Oct-2016638 3517

strndup.cH A D12-Aug-20241.6 KiB

strnlen.cH A D13-Oct-2016585 3111

strrchr.cH A D13-Oct-2016548 2911

strsignal.cH A D12-Aug-202414.9 KiB

strstr.cH A D12-Aug-2024841

strtod.cH A D12-Aug-20243.4 KiB

strtol.cH A D13-Oct-20165.3 KiB16676

strtoll.cH A D13-Oct-20165.5 KiB17682

strtoul.cH A D13-Oct-20163.2 KiB11673

strtoull.cH A D13-Oct-20163.4 KiB12377

strverscmp.cH A D12-Aug-20245.2 KiB

timeval-utils.cH A D12-Aug-20242.2 KiB

tmpnam.cH A D13-Oct-20161 KiB5328

unlink-if-ordinary.cH A D12-Aug-20242 KiB

vasprintf.cH A D12-Aug-20243.3 KiB

vfork.cH A D13-Oct-2016346 237

vfprintf.cH A D12-Aug-2024348

vprintf-support.cH A D12-Aug-20242.9 KiB

vprintf-support.hH A D12-Aug-20241,011

vprintf.cH A D13-Oct-2016856 299

vsnprintf.cH A D12-Aug-20244.1 KiB

vsprintf.cH A D12-Aug-20241.8 KiB

waitpid.cH A D26-May-2019868 4122

xasprintf.cH A D12-Aug-20241.4 KiB

xatexit.cH A D12-Aug-20242.1 KiB

xexit.cH A D12-Aug-20241.5 KiB

xmalloc.cH A D12-Aug-20244.6 KiB

xmemdup.cH A D12-Aug-20241 KiB

xstrdup.cH A D13-Oct-2016720 3720

xstrerror.cH A D13-Oct-20162 KiB8045

xstrndup.cH A D12-Aug-20241.6 KiB

xvasprintf.cH A D12-Aug-20241.8 KiB

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