You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
DJ Delorie 5f73c3782d merge from gcc 23 years ago
..
config merge from gcc 25 years ago
testsuite merge from gcc 23 years ago
COPYING.LIB merge from gcc 26 years ago
ChangeLog merge from gcc 23 years ago
Makefile.in merge from gcc 23 years ago
README Update email addresses for bugs and patches. 24 years ago
_doprnt.c merge from gcc 25 years ago
acconfig.h merge from gcc 23 years ago
aclocal.m4 libiberty/ 23 years ago
alloca.c merge from gcc 25 years ago
argv.c merge from gcc 23 years ago
asprintf.c asprintf.c: Change comment to note that -1 is returned upon error. 23 years ago
atexit.c merge from gcc 25 years ago
basename.c merge from gcc 25 years ago
bcmp.c merge from gcc 25 years ago
bcopy.c merge from gcc 25 years ago
bsearch.c merge from gcc 25 years ago
bzero.c merge from gcc 25 years ago
calloc.c merge from gcc 23 years ago
choose-temp.c merge from gcc 25 years ago
clock.c merge from gcc 25 years ago
concat.c merge from gcc 25 years ago
config.h-vms 19990502 sourceware import 27 years ago
config.in merge from gcc 23 years ago
config.table * config.table: Accept i[345867]86 variant. 23 years ago
configure merge from gcc 23 years ago
configure.in merge from gcc 23 years ago
copying-lib.texi merge from gcc 25 years ago
copysign.c merge from gcc 23 years ago
cp-demangle.c merge from gcc 23 years ago
cplus-dem.c merge from gcc 23 years ago
dyn-string.c merge from gcc 24 years ago
fdmatch.c merge from gcc 25 years ago
ffs.c merge from gcc 25 years ago
fibheap.c merge from gcc 24 years ago
floatformat.c merge from gcc 23 years ago
fnmatch.c * fnmatch.c: Make the note about the origins of this file more 26 years ago
fnmatch.txh merge from gcc 25 years ago
functions.texi asprintf.c: Change comment to note that -1 is returned upon error. 23 years ago
gather-docs merge from gcc 25 years ago
getcwd.c merge from gcc 23 years ago
getopt.c merge from gcc 23 years ago
getopt1.c * fnmatch.c: Make the note about the origins of this file more 26 years ago
getpagesize.c merge from gcc 25 years ago
getpwd.c merge from gcc 25 years ago
getruntime.c merge from gcc 24 years ago
hashtab.c merge from gcc 23 years ago
hex.c libiberty/ChangeLog: 23 years ago
index.c merge from gcc 25 years ago
insque.c merge from gcc 25 years ago
lbasename.c merge from gcc 24 years ago
libiberty.texi merge from gcc 24 years ago
lrealpath.c * Makefile.in (CFILES): Add lrealpath.c. 23 years ago
maint-tool merge from gcc 23 years ago
make-relative-prefix.c * Makefile.in (CFILES): Add lrealpath.c. 23 years ago
make-temp-file.c merge from gcc 25 years ago
makefile.vms import libiberty from egcs 27 years ago
md5.c * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be 24 years ago
memchr.c merge from gcc 23 years ago
memcmp.c merge from gcc 23 years ago
memcpy.c merge from gcc 23 years ago
memmove.c merge from gcc 23 years ago
mempcpy.c merge from gcc 23 years ago
memset.c merge from gcc 23 years ago
mkstemps.c merge from gcc 25 years ago
mpw-config.in 19990502 sourceware import 27 years ago
mpw-make.sed 19990502 sourceware import 27 years ago
mpw.c 19990502 sourceware import 27 years ago
msdos.c 19990502 sourceware import 27 years ago
objalloc.c * hashtab.c, partition.c, xmemdup.c: Include string.h 26 years ago
obstack.c merge from gcc 25 years ago
obstacks.texi merge from gcc 25 years ago
partition.c merge from gcc 25 years ago
pex-common.h merge from gcc 24 years ago
pex-djgpp.c merge from gcc 24 years ago
pex-mpw.c merge from gcc 24 years ago
pex-msdos.c merge from gcc 24 years ago
pex-os2.c merge from gcc 24 years ago
pex-unix.c merge from gcc 24 years ago
pex-win32.c merge from gcc 24 years ago
pexecute.txh merge from gcc 24 years ago
physmem.c merge from gcc 23 years ago
putenv.c merge from gcc 25 years ago
random.c merge from gcc 25 years ago
regex.c merge from gcc 23 years ago
rename.c merge from gcc 23 years ago
rindex.c merge from gcc 25 years ago
safe-ctype.c merge from gcc 24 years ago
setenv.c merge from gcc 25 years ago
sigsetmask.c merge from gcc 23 years ago
snprintf.c merge from gcc 23 years ago
sort.c * configure.in (AC_CHECK_HEADERS): Add time.h. 26 years ago
spaces.c merge from gcc 25 years ago
splay-tree.c merge from gcc 23 years ago
stpcpy.c merge from gcc 23 years ago
stpncpy.c merge from gcc 23 years ago
strcasecmp.c merge from gcc 23 years ago
strchr.c merge from gcc 25 years ago
strdup.c merge from gcc 23 years ago
strerror.c merge from gcc 25 years ago
strncasecmp.c merge from gcc 23 years ago
strncmp.c merge from gcc 23 years ago
strrchr.c merge from gcc 25 years ago
strsignal.c merge from gcc 23 years ago
strstr.c merge from gcc 23 years ago
strtod.c merge from gcc 24 years ago
strtol.c merge from gcc 25 years ago
strtoul.c * safe-ctype.c: #include "ansidecl.h". 26 years ago
ternary.c merge from gcc 25 years ago
tmpnam.c merge from gcc 25 years ago
vasprintf.c asprintf.c: Change comment to note that -1 is returned upon error. 23 years ago
vfork.c merge from gcc 25 years ago
vfprintf.c merge from gcc 23 years ago
vmsbuild.com import libiberty from egcs 27 years ago
vprintf.c merge from gcc 23 years ago
vsnprintf.c merge from gcc 23 years ago
vsprintf.c merge from gcc 23 years ago
waitpid.c merge from gcc 24 years ago
xatexit.c merge from gcc 23 years ago
xexit.c merge from gcc 25 years ago
xmalloc.c merge from gcc 23 years ago
xmemdup.c merge from gcc 25 years ago
xstrdup.c merge from gcc 25 years ago
xstrerror.c merge from gcc 25 years ago

README

This directory contains the -liberty library of free software.
It is a collection of subroutines used by various GNU programs.
Current members include:

getopt -- get options from command line
obstack -- stacks of arbitrarily-sized objects
strerror -- error message strings corresponding to errno
strtol -- string-to-long conversion
strtoul -- string-to-unsigned-long conversion

We expect many of the GNU subroutines that are floating around to
eventually arrive here.

The library must be configured from the top source directory. Don't
try to run configure in this directory. Follow the configuration
instructions in ../README.

Please report bugs to "gcc-bugs@gcc.gnu.org" and send fixes to
"gcc-patches@gcc.gnu.org". Thank you.

ADDING A NEW FILE
=================

There are two sets of files: Those that are "required" will be
included in the library for all configurations, while those
that are "optional" will be included in the library only if "needed."

To add a new required file, edit Makefile to add the source file
name to CFILES and the object file to REQUIRED_OFILES.

To add a new optional file, it must provide a single function, and the
name of the function must be the same as the name of the file.

* Add the source file name to CFILES.

* Add the function to name to the funcs shell variable in
configure.in.

* Add the function to the AC_CHECK_FUNCS lists just after the
setting of the funcs shell variable. These AC_CHECK_FUNCS calls
are never executed; they are there to make autoheader work
better.

* Consider the special cases of building libiberty; as of this
writing, the special cases are newlib and VxWorks. If a
particular special case provides the function, you do not need
to do anything. If it does not provide the function, add the
object file to LIBOBJS, and add the function name to the case
controlling whether to define HAVE_func.

The optional file you've added (e.g. getcwd.c) should compile and work
on all hosts where it is needed. It does not have to work or even
compile on hosts where it is not needed.

ADDING A NEW CONFIGURATION
==========================

On most hosts you should be able to use the scheme for automatically
figuring out which files are needed. In that case, you probably
don't need a special Makefile stub for that configuration.

If the fully automatic scheme doesn't work, you may be able to get
by with defining EXTRA_OFILES in your Makefile stub. This is
a list of object file names that should be treated as required
for this configuration - they will be included in libiberty.a,
regardless of whatever might be in the C library.