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 9cc28cc8a9 * Makefile.in: add EXTRA_INCS 26 years ago
..
config import libiberty from egcs 27 years ago
testsuite import libiberty from egcs 27 years ago
COPYING.LIB 19990502 sourceware import 27 years ago
ChangeLog * Makefile.in: add EXTRA_INCS 26 years ago
Makefile.in * Makefile.in: add EXTRA_INCS 26 years ago
README 19990502 sourceware import 27 years ago
acconfig.h 19990502 sourceware import 27 years ago
alloca-conf.h 19990502 sourceware import 27 years ago
alloca.c 19990502 sourceware import 27 years ago
argv.c import libiberty from egcs 27 years ago
asprintf.c 19990502 sourceware import 27 years ago
atexit.c 19990502 sourceware import 27 years ago
basename.c import libiberty from egcs 27 years ago
bcmp.c 19990502 sourceware import 27 years ago
bcopy.c 19990502 sourceware import 27 years ago
bzero.c 19990502 sourceware import 27 years ago
calloc.c import libiberty from egcs 27 years ago
choose-temp.c merge with libiberty from egcs 2000-02-22 27 years ago
clock.c 19990502 sourceware import 27 years ago
concat.c 19990502 sourceware import 27 years ago
config.h-vms 19990502 sourceware import 27 years ago
config.in merge with libiberty from egcs 2000-02-22 27 years ago
config.table import libiberty from egcs 27 years ago
configure * Makefile.in: add EXTRA_INCS 26 years ago
configure.in * Makefile.in: add EXTRA_INCS 26 years ago
copysign.c 19990502 sourceware import 27 years ago
cplus-dem.c merge with libiberty from egcs 2000-02-22 27 years ago
fdmatch.c 19990502 sourceware import 27 years ago
floatformat.c Add field ``name'' to floatformat. 26 years ago
fnmatch.c 19990502 sourceware import 27 years ago
getcwd.c import libiberty from egcs 27 years ago
getopt.c 19990502 sourceware import 27 years ago
getopt1.c 19990502 sourceware import 27 years ago
getpagesize.c 19990502 sourceware import 27 years ago
getpwd.c import libiberty from egcs 27 years ago
getruntime.c import libiberty from egcs 27 years ago
hashtab.c * hashtab.c, partition.c, xmemdup.c: Include string.h 26 years ago
hex.c 19990502 sourceware import 27 years ago
index.c 19990502 sourceware import 27 years ago
insque.c 19990502 sourceware import 27 years ago
makefile.vms import libiberty from egcs 27 years ago
memchr.c 19990502 sourceware import 27 years ago
memcmp.c 19990502 sourceware import 27 years ago
memcpy.c 19990502 sourceware import 27 years ago
memmove.c 19990502 sourceware import 27 years ago
memset.c 19990502 sourceware import 27 years ago
mkstemps.c 19990502 sourceware import 27 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 19990502 sourceware import 27 years ago
partition.c * hashtab.c, partition.c, xmemdup.c: Include string.h 26 years ago
pexecute.c * hashtab.c, partition.c, xmemdup.c: Include string.h 26 years ago
putenv.c import libiberty from egcs 27 years ago
random.c import libiberty from egcs 27 years ago
rename.c 19990502 sourceware import 27 years ago
rindex.c 19990502 sourceware import 27 years ago
setenv.c import libiberty from egcs 27 years ago
sigsetmask.c 19990502 sourceware import 27 years ago
sort.c * hashtab.c, partition.c, xmemdup.c: Include string.h 26 years ago
spaces.c 19990502 sourceware import 27 years ago
splay-tree.c * splay-tree.c (splay_tree_remove): New. 26 years ago
strcasecmp.c 19990502 sourceware import 27 years ago
strchr.c 19990502 sourceware import 27 years ago
strdup.c 19990502 sourceware import 27 years ago
strerror.c * hashtab.c, partition.c, xmemdup.c: Include string.h 26 years ago
strncasecmp.c 19990502 sourceware import 27 years ago
strrchr.c 19990502 sourceware import 27 years ago
strsignal.c * hashtab.c, partition.c, xmemdup.c: Include string.h 26 years ago
strstr.c 19990502 sourceware import 27 years ago
strtod.c 19990502 sourceware import 27 years ago
strtol.c import libiberty from egcs 27 years ago
strtoul.c import libiberty from egcs 27 years ago
tmpnam.c import libiberty from egcs 27 years ago
vasprintf.c import libiberty from egcs 27 years ago
vfork.c 19990502 sourceware import 27 years ago
vfprintf.c 19990502 sourceware import 27 years ago
vmsbuild.com import libiberty from egcs 27 years ago
vprintf.c 19990502 sourceware import 27 years ago
vsprintf.c 19990502 sourceware import 27 years ago
waitpid.c 19990502 sourceware import 27 years ago
xatexit.c 19990502 sourceware import 27 years ago
xexit.c * hashtab.c, partition.c, xmemdup.c: Include string.h 26 years ago
xmalloc.c merge with libiberty from egcs 2000-02-22 27 years ago
xmemdup.c * hashtab.c, partition.c, xmemdup.c: Include string.h 26 years ago
xstrdup.c import libiberty from egcs 27 years ago
xstrerror.c 19990502 sourceware import 27 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 and fixes to "bug-gnu-utils@prep.ai.mit.edu". 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.