Name Date Size #Lines LOC

..--

config/H09-Jul-2024-2013

testsuite/H29-Jan-2025-4,6924,131

COPYING.LIBHD09-Jul-202425.8 KiB

ChangeLogH A D29-Jan-2025363.8 KiB

ChangeLog.jitH A D09-Jul-2024794 2416

Makefile.inH A D29-Jan-202567.2 KiB

READMEH A D09-Jul-20242.9 KiB7355

_doprnt.cH A D29-Jan-20257.3 KiB

acinclude.m4H A D29-Jan-20255.3 KiB

aclocal.m4H A D29-Jan-2025940

alloca.cH A D29-Jan-202513.8 KiB

argv.cH A D29-Jan-202513.7 KiB

asprintf.cH A D29-Jan-20251.8 KiB

at-file.texiH A D09-Jul-2024732 1613

atexit.cH A D09-Jul-2024488 289

basename.cH A D09-Jul-20241.3 KiB6339

bcmp.cH A D09-Jul-2024643 287

bcopy.cH A D09-Jul-2024694 3219

bsearch.cH A D09-Jul-20243.7 KiB9224

bsearch_r.cH A D09-Jul-20243.8 KiB9425

bzero.cH A D09-Jul-2024435 247

calloc.cH A D29-Jan-2025722

choose-temp.cH A D29-Jan-20252 KiB

clock.cH A D29-Jan-20252.6 KiB

concat.cH A D29-Jan-20254.9 KiB

config.h-vmsH A D09-Jul-2024309 1512

config.inH A D09-Jul-202415.3 KiB578403

configureH A D29-Jan-2025248 KiB

configure.acH A D29-Jan-202522 KiB

configure.comH A D09-Jul-20241.1 KiB3938

copying-lib.texiH A D29-Jan-202526.1 KiB

copysign.cH A D09-Jul-20242.6 KiB155136

cp-demangle.cH A D29-Jan-2025185.1 KiB

cp-demangle.hH A D29-Jan-20256 KiB

cp-demint.cH A D29-Jan-20257 KiB

cplus-dem.cH A D29-Jan-202512.4 KiB

crc32.cH A D29-Jan-20256.4 KiB

d-demangle.cH A D29-Jan-202546.9 KiB

dwarfnames.cH A D29-Jan-20253.7 KiB

dyn-string.cH A D29-Jan-202511 KiB

fdmatch.cH A D29-Jan-20252.1 KiB

ffs.cH A D09-Jul-2024465 2710

fibheap.cH A D29-Jan-202510.8 KiB

filedescriptor.cH A D29-Jan-20251.3 KiB

filename_cmp.cH A D29-Jan-20255.3 KiB

floatformat.cH A D29-Jan-202521.9 KiB

fnmatch.cH A D29-Jan-20255.3 KiB

fnmatch.txhH A D09-Jul-20241.9 KiB5039

fopen_unlocked.cH A D29-Jan-20253.4 KiB

functions.texiH A D09-Jul-202474.2 KiB2,0641,529

gather-docsH A D29-Jan-20253.3 KiB

getcwd.cH A D09-Jul-20241.2 KiB6338

getopt.cH A D29-Jan-202529.5 KiB

getopt1.cH A D29-Jan-20254.3 KiB

getpagesize.cH A D09-Jul-20242 KiB9158

getpwd.cH A D09-Jul-20242.5 KiB12984

getruntime.cH A D29-Jan-20253 KiB

gettimeofday.cH A D09-Jul-2024543 3118

hashtab.cH A D29-Jan-202529 KiB

hex.cH A D29-Jan-20256.8 KiB

index.cH A D09-Jul-2024448 226

insque.cH A D09-Jul-20241.1 KiB5218

lbasename.cH A D29-Jan-20252.3 KiB

libiberty.texiH A D29-Jan-202510.5 KiB

lrealpath.cH A D29-Jan-20254.7 KiB

maint-toolH A D29-Jan-20256.5 KiB

make-relative-prefix.cH A D29-Jan-202510.7 KiB

make-temp-file.cH A D29-Jan-20255.9 KiB

makefile.vmsH A D09-Jul-20241,016 3723

md5.cH A D29-Jan-202514 KiB

memchr.cH A D29-Jan-2025823

memcmp.cH A D29-Jan-2025880

memcpy.cH A D29-Jan-2025509

memmem.cH A D29-Jan-20252.1 KiB

memmove.cH A D29-Jan-2025540

mempcpy.cH A D29-Jan-20251.3 KiB

memset.cH A D29-Jan-2025505

mkstemps.cH A D29-Jan-20253.7 KiB

msdos.cH A D09-Jul-2024177 1612

objalloc.cH A D29-Jan-20257.2 KiB

obstack.cH A D29-Jan-202512.7 KiB

obstacks.texiH A D09-Jul-202430.5 KiB775635

partition.cH A D29-Jan-20254.8 KiB

pex-common.cH A D29-Jan-202515 KiB

pex-common.hH A D29-Jan-20256 KiB

pex-djgpp.cH A D29-Jan-20256.7 KiB

pex-msdos.cH A D29-Jan-20257.2 KiB

pex-one.cH A D29-Jan-20251.4 KiB

pex-unix.cH A D29-Jan-202520.7 KiB

pex-win32.cH A D29-Jan-202525.6 KiB

pexecute.cH A D29-Jan-20253.2 KiB

pexecute.txhH A D09-Jul-202411.7 KiB317239

physmem.cH A D29-Jan-20257.1 KiB

putenv.cH A D29-Jan-20252.1 KiB

random.cH A D29-Jan-202514 KiB

regex.cH A D29-Jan-2025253.1 KiB

rename.cH A D09-Jul-2024633 3721

rindex.cH A D09-Jul-2024460 226

rust-demangle.cH A D29-Jan-202534.7 KiB

safe-ctype.cH A D29-Jan-202510 KiB

setenv.cH A D29-Jan-20254.4 KiB

setproctitle.cH A D29-Jan-20251.4 KiB

sha1.cH A D29-Jan-202512.3 KiB

sigsetmask.cH A D09-Jul-2024902 4018

simple-object-coff.cH A D29-Jan-202522.9 KiB

simple-object-common.hH A D29-Jan-202510.2 KiB

simple-object-elf.cH A D29-Jan-202548.8 KiB

simple-object-mach-o.cH A D29-Jan-202540.1 KiB

simple-object-xcoff.cH A D29-Jan-202529.5 KiB

simple-object.cH A D29-Jan-202513.6 KiB

simple-object.txhH A D09-Jul-20247.5 KiB190138

snprintf.cH A D29-Jan-20252.2 KiB

sort.cH A D29-Jan-20254.8 KiB

spaces.cH A D29-Jan-20251.8 KiB

splay-tree.cH A D29-Jan-202515.5 KiB

stack-limit.cH A D29-Jan-20252 KiB

stpcpy.cH A D29-Jan-20251.4 KiB

stpncpy.cH A D29-Jan-20251.5 KiB

strcasecmp.cH A D09-Jul-20244.2 KiB8855

strchr.cH A D09-Jul-2024528 2912

strdup.cH A D29-Jan-2025572

strerror.cH A D29-Jan-202520.8 KiB

strncasecmp.cH A D09-Jul-20243.4 KiB8755

strncmp.cH A D09-Jul-2024638 3517

strndup.cH A D29-Jan-20251.6 KiB

strnlen.cH A D09-Jul-2024585 3111

strrchr.cH A D09-Jul-2024548 2911

strsignal.cH A D29-Jan-202514.9 KiB

strstr.cH A D29-Jan-2025841

strtod.cH A D29-Jan-20253.4 KiB

strtol.cH A D09-Jul-20245.3 KiB16676

strtoll.cH A D09-Jul-20245.5 KiB17682

strtoul.cH A D09-Jul-20243.2 KiB11673

strtoull.cH A D09-Jul-20243.4 KiB12377

strverscmp.cH A D29-Jan-20255.2 KiB

timeval-utils.cH A D29-Jan-20252.2 KiB

tmpnam.cH A D09-Jul-20241 KiB5328

unlink-if-ordinary.cH A D29-Jan-20252 KiB

vasprintf.cH A D29-Jan-20253.3 KiB

vfork.cH A D09-Jul-2024346 237

vfprintf.cH A D29-Jan-2025348

vprintf-support.cH A D29-Jan-20252.9 KiB

vprintf-support.hH A D29-Jan-20251,011

vprintf.cH A D09-Jul-2024856 299

vsnprintf.cH A D29-Jan-20254.1 KiB

vsprintf.cH A D29-Jan-20251.8 KiB

waitpid.cH A D09-Jul-2024868 4122

xasprintf.cH A D29-Jan-20251.4 KiB

xatexit.cH A D29-Jan-20252.1 KiB

xexit.cH A D29-Jan-20251.5 KiB

xmalloc.cH A D29-Jan-20254.6 KiB

xmemdup.cH A D29-Jan-20251 KiB

xstrdup.cH A D09-Jul-2024720 3720

xstrerror.cH A D09-Jul-20242 KiB8045

xstrndup.cH A D29-Jan-20251.6 KiB

xvasprintf.cH A D29-Jan-20251.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