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 f9fb0b2d9f merge from gcc 15 years ago
..
config merge from gcc 25 years ago
testsuite merge from gcc 15 years ago
.gitignore bfd/binutils/gas/gprof/ld/libiberty/opcodes: add .gitignore 16 years ago
COPYING.LIB Update the address and phone number of the FSF organization. 21 years ago
ChangeLog merge from gcc 15 years ago
Makefile.in merge from gcc 15 years ago
README * README: Mention changes to Makefile.in and functions.texi. 17 years ago
_doprnt.c Update the address and phone number of the FSF organization. 21 years ago
aclocal.m4 merge from gcc 15 years ago
alloca.c merge from gcc 21 years ago
argv.c merge from gcc 15 years ago
asprintf.c Update the address and phone number of the FSF organization. 21 years ago
at-file.texi * at-file.texi: Fix typo. 21 years ago
atexit.c merge from gcc 21 years ago
basename.c merge from gcc 21 years ago
bcmp.c merge from gcc 21 years ago
bcopy.c merge from gcc 20 years ago
bsearch.c libiberty: documentation markup and order fixes. 15 years ago
bzero.c merge from gcc 21 years ago
calloc.c merge from gcc 21 years ago
choose-temp.c 2009-09-22 Ozkan Sezer <sezeroz@gmail.com> 17 years ago
clock.c Update the address and phone number of the FSF organization. 21 years ago
concat.c libiberty: documentation markup and order fixes. 15 years ago
config.h-vms merge from gcc 17 years ago
config.in merge from gcc 15 years ago
configure merge from gcc 15 years ago
configure.ac merge from gcc 15 years ago
configure.com 2009-09-01 Tristan Gingold <gingold@adacore.com> 17 years ago
copying-lib.texi Update the address and phone number of the FSF organization. 21 years ago
copysign.c merge from gcc 21 years ago
cp-demangle.c merge from gcc 15 years ago
cp-demangle.h merge from gcc 15 years ago
cp-demint.c merge from gcc 15 years ago
cplus-dem.c merge from gcc 15 years ago
crc32.c libiberty: documentation markup and order fixes. 15 years ago
dyn-string.c merge from gcc 17 years ago
fdmatch.c Update the address and phone number of the FSF organization. 21 years ago
ffs.c merge from gcc 21 years ago
fibheap.c merge from gcc 17 years ago
filename_cmp.c [libiberty/filename_cmp] Darwin has case-insensitive filesystems 15 years ago
floatformat.c merge from gcc 15 years ago
fnmatch.c merge from gcc 21 years ago
fnmatch.txh libiberty: documentation markup and order fixes. 15 years ago
fopen_unlocked.c libiberty: documentation markup and order fixes. 15 years ago
functions.texi ChangeLog libiberty/ 15 years ago
gather-docs libiberty: documentation markup and order fixes. 15 years ago
getcwd.c merge from gcc 21 years ago
getopt.c merge from gcc 21 years ago
getopt1.c merge from gcc 21 years ago
getpagesize.c merge from gcc 21 years ago
getpwd.c merge from gcc 21 years ago
getruntime.c Update the address and phone number of the FSF organization. 21 years ago
gettimeofday.c merge from gcc 21 years ago
hashtab.c libiberty: documentation markup and order fixes. 15 years ago
hex.c merge from gcc 19 years ago
index.c merge from gcc 21 years ago
insque.c libiberty: documentation markup and order fixes. 15 years ago
lbasename.c merge from gcc 15 years ago
libiberty.texi merge from gcc 16 years ago
lrealpath.c merge from gcc 21 years ago
maint-tool merge from gcc 15 years ago
make-relative-prefix.c libiberty: documentation markup and order fixes. 15 years ago
make-temp-file.c merge from gcc 15 years ago
makefile.vms bfd/ 15 years ago
md5.c merge from gcc 15 years ago
memchr.c libiberty: documentation markup and order fixes. 15 years ago
memcmp.c libiberty: documentation markup and order fixes. 15 years ago
memcpy.c libiberty: documentation markup and order fixes. 15 years ago
memmem.c libiberty: documentation markup and order fixes. 15 years ago
memmove.c libiberty: documentation markup and order fixes. 15 years ago
mempcpy.c libiberty: documentation markup and order fixes. 15 years ago
memset.c libiberty: documentation markup and order fixes. 15 years ago
mkstemps.c merge from gcc 18 years ago
msdos.c 19990502 sourceware import 27 years ago
objalloc.c merge from gcc 21 years ago
obstack.c Update the address and phone number of the FSF organization. 21 years ago
obstacks.texi merge from gcc 18 years ago
partition.c merge from gcc 20 years ago
pex-common.c merge from gcc 15 years ago
pex-common.h Merged from gcc head revision 146001. 17 years ago
pex-djgpp.c Merged from gcc head revision 146001. 17 years ago
pex-msdos.c merge from gcc 15 years ago
pex-one.c Update the address and phone number of the FSF organization. 21 years ago
pex-unix.c merge from gcc 15 years ago
pex-win32.c merge from gcc 15 years ago
pexecute.c merge from gcc 20 years ago
pexecute.txh libiberty: documentation markup and order fixes. 15 years ago
physmem.c Update the address and phone number of the FSF organization. 21 years ago
putenv.c Update the address and phone number of the FSF organization. 21 years ago
random.c libiberty: documentation markup and order fixes. 15 years ago
regex.c merge from gcc 15 years ago
rename.c merge from gcc 21 years ago
rindex.c merge from gcc 21 years ago
safe-ctype.c Update the address and phone number of the FSF organization. 21 years ago
setenv.c libiberty: documentation markup and order fixes. 15 years ago
setproctitle.c libiberty: documentation markup and order fixes. 15 years ago
sha1.c merge from gcc 18 years ago
sigsetmask.c merge from gcc 21 years ago
simple-object-coff.c merge from gcc 16 years ago
simple-object-common.h merge from gcc 16 years ago
simple-object-elf.c merge from gcc 16 years ago
simple-object-mach-o.c merge from gcc 16 years ago
simple-object.c merge from gcc 16 years ago
simple-object.txh libiberty: documentation markup and order fixes. 15 years ago
snprintf.c libiberty: documentation markup and order fixes. 15 years ago
sort.c merge from gcc 21 years ago
spaces.c merge from gcc 15 years ago
splay-tree.c libiberty: documentation markup and order fixes. 15 years ago
stack-limit.c merge from gcc 15 years ago
stpcpy.c Update the address and phone number of the FSF organization. 21 years ago
stpncpy.c libiberty: documentation markup and order fixes. 15 years ago
strcasecmp.c merge from gcc 21 years ago
strchr.c merge from gcc 21 years ago
strdup.c merge from gcc 21 years ago
strerror.c merge from gcc 21 years ago
strncasecmp.c merge from gcc 21 years ago
strncmp.c libiberty: documentation markup and order fixes. 15 years ago
strndup.c merge from gcc 21 years ago
strrchr.c merge from gcc 21 years ago
strsignal.c merge from gcc 15 years ago
strstr.c merge from gcc 21 years ago
strtod.c libiberty: documentation markup and order fixes. 15 years ago
strtol.c libiberty: documentation markup and order fixes. 15 years ago
strtoul.c merge from gcc 21 years ago
strverscmp.c 2005-08-17 Kelley Cook <kcook@gcc.gnu.org> 21 years ago
timeval-utils.c merge from gcc 15 years ago
tmpnam.c merge from gcc 21 years ago
unlink-if-ordinary.c Update the address and phone number of the FSF organization. 21 years ago
vasprintf.c libiberty: documentation markup and order fixes. 15 years ago
vfork.c merge from gcc 21 years ago
vfprintf.c merge from gcc 21 years ago
vprintf.c libiberty: documentation markup and order fixes. 15 years ago
vsnprintf.c libiberty: documentation markup and order fixes. 15 years ago
vsprintf.c Update the address and phone number of the FSF organization. 21 years ago
waitpid.c merge from gcc 21 years ago
xatexit.c merge from gcc 21 years ago
xexit.c Update the address and phone number of the FSF organization. 21 years ago
xmalloc.c merge from gcc 21 years ago
xmemdup.c libiberty: documentation markup and order fixes. 15 years ago
xstrdup.c * xstrdup.c: Include <sys/types.h> after "config.h". 18 years ago
xstrerror.c merge from gcc 21 years ago
xstrndup.c merge from gcc 21 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.in 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 in Makefile.in and the object
file to CONFIGURED_OFILES.

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

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

Finally, in the build directory of libiberty, configure with
"--enable-maintainer-mode", run "make maint-deps" to update
Makefile.in, and run 'make stamp-functions' to regenerate
functions.texi.

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.