Index of /freebsd/head/contrib/gcclibs/libiberty
Name Last modified Size Description
Parent Directory 27-Sep-2011 02:19 -
COPYING.LIB 27-Sep-2011 02:19 26k
ChangeLog 27-Sep-2011 02:19 244k
ChangeLog.gcc43 02-Dec-2013 04:07 2k
Makefile.in 06-Dec-2012 04:09 41k
_doprnt.c 27-Sep-2011 02:19 7k
aclocal.m4 27-Sep-2011 02:19 6k
alloca.c 27-Sep-2011 02:19 14k
argv.c 27-Sep-2011 02:19 12k
asprintf.c 27-Sep-2011 02:19 2k
at-file.texi 27-Sep-2011 02:19 1k
atexit.c 27-Sep-2011 02:19 1k
basename.c 27-Sep-2011 02:19 1k
bcmp.c 27-Sep-2011 02:19 1k
bcopy.c 27-Sep-2011 02:19 1k
bsearch.c 27-Sep-2011 02:19 4k
bzero.c 27-Sep-2011 02:19 1k
calloc.c 27-Sep-2011 02:19 1k
choose-temp.c 02-Dec-2013 04:07 2k
clock.c 27-Sep-2011 02:19 3k
concat.c 27-Sep-2011 02:19 6k
config.h-vms 27-Sep-2011 02:19 1k
config.in 27-Sep-2011 02:19 12k
config/ 27-Sep-2011 02:19 -
configure 27-Sep-2011 02:19 275k
configure.ac 27-Sep-2011 02:19 20k
copying-lib.texi 27-Sep-2011 02:19 26k
copysign.c 27-Sep-2011 02:19 3k
cp-demangle.c 02-Dec-2013 04:07 110k
cp-demangle.h 02-Dec-2013 04:07 5k
cp-demint.c 27-Sep-2011 02:19 7k
cplus-dem.c 27-Sep-2011 02:19 116k
dyn-string.c 27-Sep-2011 02:19 11k
fdmatch.c 27-Sep-2011 02:19 2k
ffs.c 27-Sep-2011 02:19 1k
fibheap.c 27-Sep-2011 02:19 11k
floatformat.c 02-Dec-2013 04:07 17k
fnmatch.c 27-Sep-2011 02:19 5k
fnmatch.txh 27-Sep-2011 02:19 2k
fopen_unlocked.c 27-Sep-2011 02:19 3k
functions.texi 02-Dec-2013 04:07 56k
gather-docs 27-Sep-2011 02:19 3k
getcwd.c 27-Sep-2011 02:19 1k
getopt.c 27-Sep-2011 02:19 30k
getopt1.c 27-Sep-2011 02:19 4k
getpagesize.c 27-Sep-2011 02:19 2k
getpwd.c 27-Sep-2011 02:19 3k
getruntime.c 27-Sep-2011 02:19 3k
gettimeofday.c 27-Sep-2011 02:19 1k
hashtab.c 27-Sep-2011 02:19 27k
hex.c 27-Sep-2011 02:19 7k
index.c 27-Sep-2011 02:19 1k
insque.c 27-Sep-2011 02:19 1k
lbasename.c 27-Sep-2011 02:19 2k
libiberty.texi 27-Sep-2011 02:19 11k
lrealpath.c 27-Sep-2011 02:19 5k
maint-tool 27-Sep-2011 02:19 6k
make-relative-prefix.c 27-Sep-2011 02:19 10k
make-temp-file.c 27-Sep-2011 02:19 4k
makefile.vms 27-Sep-2011 02:19 1k
md5.c 27-Sep-2011 02:19 14k
memchr.c 27-Sep-2011 02:19 1k
memcmp.c 27-Sep-2011 02:19 1k
memcpy.c 27-Sep-2011 02:19 1k
memmove.c 27-Sep-2011 02:19 1k
mempcpy.c 27-Sep-2011 02:19 1k
memset.c 27-Sep-2011 02:19 1k
mkstemps.c 27-Sep-2011 02:19 4k
msdos.c 27-Sep-2011 02:19 1k
objalloc.c 27-Sep-2011 02:19 7k
obstack.c 27-Sep-2011 02:19 16k
obstacks.texi 27-Sep-2011 02:19 29k
partition.c 27-Sep-2011 02:19 5k
pex-common.c 27-Sep-2011 02:19 14k
pex-common.h 27-Sep-2011 02:19 6k
pex-djgpp.c 27-Sep-2011 02:19 7k
pex-msdos.c 27-Sep-2011 02:19 7k
pex-one.c 27-Sep-2011 02:19 1k
pex-unix.c 02-Dec-2013 04:07 12k
pex-win32.c 27-Sep-2011 02:19 23k
pexecute.c 27-Sep-2011 02:19 3k
pexecute.txh 27-Sep-2011 02:19 11k
physmem.c 05-Jan-2014 04:27 8k
putenv.c 27-Sep-2011 02:19 2k
random.c 27-Sep-2011 02:19 14k
regex.c 27-Sep-2011 02:19 253k
rename.c 27-Sep-2011 02:19 1k
rindex.c 27-Sep-2011 02:19 1k
safe-ctype.c 27-Sep-2011 02:19 10k
setenv.c 27-Sep-2011 02:19 4k
sigsetmask.c 27-Sep-2011 02:19 1k
snprintf.c 27-Sep-2011 02:19 2k
sort.c 27-Sep-2011 02:19 5k
spaces.c 27-Sep-2011 02:19 2k
splay-tree.c 27-Sep-2011 02:19 13k
stpcpy.c 27-Sep-2011 02:19 1k
stpncpy.c 27-Sep-2011 02:19 2k
strcasecmp.c 27-Sep-2011 02:19 4k
strchr.c 27-Sep-2011 02:19 1k
strdup.c 27-Sep-2011 02:19 1k
strerror.c 27-Sep-2011 02:19 21k
strncasecmp.c 27-Sep-2011 02:19 3k
strncmp.c 27-Sep-2011 02:19 1k
strndup.c 27-Sep-2011 02:19 2k
strrchr.c 27-Sep-2011 02:19 1k
strsignal.c 02-Dec-2013 04:07 15k
strstr.c 27-Sep-2011 02:19 1k
strtod.c 27-Sep-2011 02:19 3k
strtol.c 27-Sep-2011 02:19 5k
strtoul.c 27-Sep-2011 02:19 3k
strverscmp.c 27-Sep-2011 02:19 5k
ternary.c 27-Sep-2011 02:19 4k
testsuite/ 02-Dec-2013 04:07 -
tmpnam.c 27-Sep-2011 02:19 1k
unlink-if-ordinary.c 27-Sep-2011 02:19 2k
vasprintf.c 27-Sep-2011 02:19 5k
vfork.c 27-Sep-2011 02:19 1k
vfprintf.c 27-Sep-2011 02:19 1k
vmsbuild.com 27-Sep-2011 02:19 5k
vprintf.c 27-Sep-2011 02:19 1k
vsnprintf.c 27-Sep-2011 02:19 4k
vsprintf.c 27-Sep-2011 02:19 2k
waitpid.c 27-Sep-2011 02:19 1k
xatexit.c 27-Sep-2011 02:19 2k
xexit.c 27-Sep-2011 02:19 2k
xmalloc.c 27-Sep-2011 02:19 5k
xmemdup.c 27-Sep-2011 02:19 1k
xstrdup.c 27-Sep-2011 02:19 1k
xstrerror.c 27-Sep-2011 02:19 2k
xstrndup.c 27-Sep-2011 02:19 2k
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.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.
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.