Name Date Size #Lines LOC

..07-Sep-2023-

config/H08-May-2022-2013

testsuite/H08-May-2022-3,6683,325

COPYING.LIBH A D08-May-202225.8 KiB

ChangeLogH A D08-May-2022241.2 KiB7,1935,050

Makefile.inH A D08-May-202240.9 KiB1,174925

READMEH A D08-May-20222.6 KiB6750

_doprnt.cH A D08-May-20227.4 KiB297239

aclocal.m4H A D08-May-20226.4 KiB222205

alloca.cH A D08-May-202213.7 KiB484271

argv.cH A D08-May-202211.4 KiB459275

asprintf.cH A D08-May-20221.8 KiB5717

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

atexit.cH A D08-May-2022488 289

basename.cH A D08-May-20221.3 KiB6339

bcmp.cH A D08-May-2022643 287

bcopy.cH A D08-May-2022670 3219

bsearch.cH A D08-May-20223.7 KiB9024

bzero.cH A D08-May-2022435 247

calloc.cH A D08-May-2022714 3514

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

clock.cH A D08-May-20222.6 KiB10455

concat.cH A D08-May-20225.7 KiB233127

config.h-vmsH A D08-May-2022201 1412

config.inH A D08-May-202211.9 KiB445303

configureH A D08-May-2022270.1 KiB9,9848,543

configure.acH A D08-May-202218.8 KiB670578

copying-lib.texiH A D08-May-202226.2 KiB566479

copysign.cH A D08-May-20222.6 KiB155136

cp-demangle.cH A D08-May-2022109.2 KiB4,3533,135

cp-demangle.hH A D08-May-20225 KiB16269

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

cplus-dem.cH A D08-May-2022115.7 KiB4,7183,414

dyn-string.cH A D08-May-202211.5 KiB407217

fdmatch.cH A D08-May-20222.1 KiB6923

ffs.cH A D08-May-2022465 2710

fibheap.cH A D08-May-202210.5 KiB479341

floatformat.cH A D08-May-202217.9 KiB643478

fnmatch.cH A D08-May-20225.3 KiB221139

fnmatch.txhH A D08-May-20221.9 KiB4938

fopen_unlocked.cH A D08-May-20223.4 KiB12749

functions.texiH A D08-May-202254.9 KiB1,5211,115

gather-docsH A D08-May-20223.3 KiB12970

getcwd.cH A D08-May-20221.2 KiB6338

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

getopt1.cH A D08-May-20224.3 KiB181113

getpagesize.cH A D08-May-20222 KiB9158

getpwd.cH A D08-May-20222.5 KiB12984

getruntime.cH A D08-May-20223 KiB11764

gettimeofday.cH A D08-May-2022543 3118

hashtab.cH A D08-May-202226.6 KiB935588

hex.cH A D08-May-20226.8 KiB193113

index.cH A D08-May-2022448 226

insque.cH A D08-May-20221.1 KiB5118

lbasename.cH A D08-May-20222 KiB6520

libiberty.texiH A D08-May-202210.9 KiB325240

lrealpath.cH A D08-May-20224.7 KiB15886

maint-toolH A D08-May-20226.2 KiB297229

make-relative-prefix.cH A D08-May-20229.6 KiB390263

make-temp-file.cH A D08-May-20224.4 KiB17897

makefile.vmsH A D08-May-2022813 3419

md5.cH A D08-May-202213.7 KiB431268

memchr.cH A D08-May-2022811 3314

memcmp.cH A D08-May-2022872 3514

memcpy.cH A D08-May-2022498 269

memmove.cH A D08-May-2022529 269

mempcpy.cH A D08-May-20221.3 KiB428

memset.cH A D08-May-2022496 2610

mkstemps.cH A D08-May-20223.5 KiB13776

msdos.cH A D08-May-2022177 1612

objalloc.cH A D08-May-20227.2 KiB299174

obstack.cH A D08-May-202215.9 KiB511307

obstacks.texiH A D08-May-202229.5 KiB759621

partition.cH A D08-May-20224.8 KiB184108

pex-common.cH A D08-May-202213.9 KiB600435

pex-unix.cH A D08-May-202212.4 KiB539412

pexecute.cH A D08-May-20223.2 KiB12678

pexecute.txhH A D08-May-202211 KiB285210

physmem.cH A D08-May-20227.2 KiB306224

putenv.cH A D08-May-20222.2 KiB8540

random.cH A D08-May-202214 KiB404193

regex.cH A D08-May-2022252.9 KiB8,2035,352

rename.cH A D08-May-2022633 3721

rindex.cH A D08-May-2022460 226

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

setenv.cH A D08-May-20224.5 KiB184114

sigsetmask.cH A D08-May-2022924 4119

snprintf.cH A D08-May-20222.1 KiB6116

sort.cH A D08-May-20224.8 KiB187101

spaces.cH A D08-May-20221.8 KiB7336

splay-tree.cH A D08-May-202212.9 KiB527340

stpcpy.cH A D08-May-20221.3 KiB4410

stpncpy.cH A D08-May-20221.5 KiB4812

strcasecmp.cH A D08-May-20224.2 KiB8855

strchr.cH A D08-May-2022528 2912

strdup.cH A D08-May-2022562 2814

strerror.cH A D08-May-202220.8 KiB810593

strncasecmp.cH A D08-May-20223.4 KiB8755

strncmp.cH A D08-May-2022634 3417

strndup.cH A D08-May-20221.6 KiB5618

strrchr.cH A D08-May-2022548 2911

strsignal.cH A D08-May-202214.9 KiB609366

strstr.cH A D08-May-20221 KiB4216

strtod.cH A D08-May-20223.4 KiB13778

strtol.cH A D08-May-20225.3 KiB16476

strtoul.cH A D08-May-20223.2 KiB11673

strverscmp.cH A D08-May-20225.2 KiB15860

ternary.cH A D08-May-20223.9 KiB158103

tmpnam.cH A D08-May-20221 KiB5328

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

vasprintf.cH A D08-May-20224.7 KiB197143

vfork.cH A D08-May-2022346 237

vfprintf.cH A D08-May-2022343 169

vmsbuild.comH A D08-May-20224.9 KiB166159

vprintf.cH A D08-May-2022848 279

vsnprintf.cH A D08-May-20224.1 KiB14684

vsprintf.cH A D08-May-20221.8 KiB5724

waitpid.cH A D08-May-2022777 3618

xatexit.cH A D08-May-20222.1 KiB10050

xexit.cH A D08-May-20221.5 KiB5316

xmalloc.cH A D08-May-20223.8 KiB16079

xmemdup.cH A D08-May-2022948 3919

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 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