徐启航 0ef513762e Init 2 gadi atpakaļ
..
config 0ef513762e Init 2 gadi atpakaļ
testsuite 0ef513762e Init 2 gadi atpakaļ
.gitignore 0ef513762e Init 2 gadi atpakaļ
COPYING.LIB 0ef513762e Init 2 gadi atpakaļ
ChangeLog 0ef513762e Init 2 gadi atpakaļ
ChangeLog.jit 0ef513762e Init 2 gadi atpakaļ
Makefile.in 0ef513762e Init 2 gadi atpakaļ
README 0ef513762e Init 2 gadi atpakaļ
_doprnt.c 0ef513762e Init 2 gadi atpakaļ
acinclude.m4 0ef513762e Init 2 gadi atpakaļ
aclocal.m4 0ef513762e Init 2 gadi atpakaļ
alloca.c 0ef513762e Init 2 gadi atpakaļ
argv.c 0ef513762e Init 2 gadi atpakaļ
asprintf.c 0ef513762e Init 2 gadi atpakaļ
at-file.texi 0ef513762e Init 2 gadi atpakaļ
atexit.c 0ef513762e Init 2 gadi atpakaļ
basename.c 0ef513762e Init 2 gadi atpakaļ
bcmp.c 0ef513762e Init 2 gadi atpakaļ
bcopy.c 0ef513762e Init 2 gadi atpakaļ
bsearch.c 0ef513762e Init 2 gadi atpakaļ
bsearch_r.c 0ef513762e Init 2 gadi atpakaļ
bzero.c 0ef513762e Init 2 gadi atpakaļ
calloc.c 0ef513762e Init 2 gadi atpakaļ
choose-temp.c 0ef513762e Init 2 gadi atpakaļ
clock.c 0ef513762e Init 2 gadi atpakaļ
concat.c 0ef513762e Init 2 gadi atpakaļ
config.h-vms 0ef513762e Init 2 gadi atpakaļ
config.in 0ef513762e Init 2 gadi atpakaļ
configure 0ef513762e Init 2 gadi atpakaļ
configure.ac 0ef513762e Init 2 gadi atpakaļ
configure.com 0ef513762e Init 2 gadi atpakaļ
copying-lib.texi 0ef513762e Init 2 gadi atpakaļ
copysign.c 0ef513762e Init 2 gadi atpakaļ
cp-demangle.c 0ef513762e Init 2 gadi atpakaļ
cp-demangle.h 0ef513762e Init 2 gadi atpakaļ
cp-demint.c 0ef513762e Init 2 gadi atpakaļ
cplus-dem.c 0ef513762e Init 2 gadi atpakaļ
crc32.c 0ef513762e Init 2 gadi atpakaļ
d-demangle.c 0ef513762e Init 2 gadi atpakaļ
dwarfnames.c 0ef513762e Init 2 gadi atpakaļ
dyn-string.c 0ef513762e Init 2 gadi atpakaļ
fdmatch.c 0ef513762e Init 2 gadi atpakaļ
ffs.c 0ef513762e Init 2 gadi atpakaļ
fibheap.c 0ef513762e Init 2 gadi atpakaļ
filedescriptor.c 0ef513762e Init 2 gadi atpakaļ
filename_cmp.c 0ef513762e Init 2 gadi atpakaļ
floatformat.c 0ef513762e Init 2 gadi atpakaļ
fnmatch.c 0ef513762e Init 2 gadi atpakaļ
fnmatch.txh 0ef513762e Init 2 gadi atpakaļ
fopen_unlocked.c 0ef513762e Init 2 gadi atpakaļ
functions.texi 0ef513762e Init 2 gadi atpakaļ
gather-docs 0ef513762e Init 2 gadi atpakaļ
getcwd.c 0ef513762e Init 2 gadi atpakaļ
getopt.c 0ef513762e Init 2 gadi atpakaļ
getopt1.c 0ef513762e Init 2 gadi atpakaļ
getpagesize.c 0ef513762e Init 2 gadi atpakaļ
getpwd.c 0ef513762e Init 2 gadi atpakaļ
getruntime.c 0ef513762e Init 2 gadi atpakaļ
gettimeofday.c 0ef513762e Init 2 gadi atpakaļ
hashtab.c 0ef513762e Init 2 gadi atpakaļ
hex.c 0ef513762e Init 2 gadi atpakaļ
index.c 0ef513762e Init 2 gadi atpakaļ
insque.c 0ef513762e Init 2 gadi atpakaļ
lbasename.c 0ef513762e Init 2 gadi atpakaļ
libiberty.texi 0ef513762e Init 2 gadi atpakaļ
lrealpath.c 0ef513762e Init 2 gadi atpakaļ
maint-tool 0ef513762e Init 2 gadi atpakaļ
make-relative-prefix.c 0ef513762e Init 2 gadi atpakaļ
make-temp-file.c 0ef513762e Init 2 gadi atpakaļ
makefile.vms 0ef513762e Init 2 gadi atpakaļ
md5.c 0ef513762e Init 2 gadi atpakaļ
memchr.c 0ef513762e Init 2 gadi atpakaļ
memcmp.c 0ef513762e Init 2 gadi atpakaļ
memcpy.c 0ef513762e Init 2 gadi atpakaļ
memmem.c 0ef513762e Init 2 gadi atpakaļ
memmove.c 0ef513762e Init 2 gadi atpakaļ
mempcpy.c 0ef513762e Init 2 gadi atpakaļ
memset.c 0ef513762e Init 2 gadi atpakaļ
mkstemps.c 0ef513762e Init 2 gadi atpakaļ
msdos.c 0ef513762e Init 2 gadi atpakaļ
objalloc.c 0ef513762e Init 2 gadi atpakaļ
obstack.c 0ef513762e Init 2 gadi atpakaļ
obstacks.texi 0ef513762e Init 2 gadi atpakaļ
partition.c 0ef513762e Init 2 gadi atpakaļ
pex-common.c 0ef513762e Init 2 gadi atpakaļ
pex-common.h 0ef513762e Init 2 gadi atpakaļ
pex-djgpp.c 0ef513762e Init 2 gadi atpakaļ
pex-msdos.c 0ef513762e Init 2 gadi atpakaļ
pex-one.c 0ef513762e Init 2 gadi atpakaļ
pex-unix.c 0ef513762e Init 2 gadi atpakaļ
pex-win32.c 0ef513762e Init 2 gadi atpakaļ
pexecute.c 0ef513762e Init 2 gadi atpakaļ
pexecute.txh 0ef513762e Init 2 gadi atpakaļ
physmem.c 0ef513762e Init 2 gadi atpakaļ
putenv.c 0ef513762e Init 2 gadi atpakaļ
random.c 0ef513762e Init 2 gadi atpakaļ
regex.c 0ef513762e Init 2 gadi atpakaļ
rename.c 0ef513762e Init 2 gadi atpakaļ
rindex.c 0ef513762e Init 2 gadi atpakaļ
rust-demangle.c 0ef513762e Init 2 gadi atpakaļ
safe-ctype.c 0ef513762e Init 2 gadi atpakaļ
setenv.c 0ef513762e Init 2 gadi atpakaļ
setproctitle.c 0ef513762e Init 2 gadi atpakaļ
sha1.c 0ef513762e Init 2 gadi atpakaļ
sigsetmask.c 0ef513762e Init 2 gadi atpakaļ
simple-object-coff.c 0ef513762e Init 2 gadi atpakaļ
simple-object-common.h 0ef513762e Init 2 gadi atpakaļ
simple-object-elf.c 0ef513762e Init 2 gadi atpakaļ
simple-object-mach-o.c 0ef513762e Init 2 gadi atpakaļ
simple-object-xcoff.c 0ef513762e Init 2 gadi atpakaļ
simple-object.c 0ef513762e Init 2 gadi atpakaļ
simple-object.txh 0ef513762e Init 2 gadi atpakaļ
snprintf.c 0ef513762e Init 2 gadi atpakaļ
sort.c 0ef513762e Init 2 gadi atpakaļ
spaces.c 0ef513762e Init 2 gadi atpakaļ
splay-tree.c 0ef513762e Init 2 gadi atpakaļ
stack-limit.c 0ef513762e Init 2 gadi atpakaļ
stpcpy.c 0ef513762e Init 2 gadi atpakaļ
stpncpy.c 0ef513762e Init 2 gadi atpakaļ
strcasecmp.c 0ef513762e Init 2 gadi atpakaļ
strchr.c 0ef513762e Init 2 gadi atpakaļ
strdup.c 0ef513762e Init 2 gadi atpakaļ
strerror.c 0ef513762e Init 2 gadi atpakaļ
strncasecmp.c 0ef513762e Init 2 gadi atpakaļ
strncmp.c 0ef513762e Init 2 gadi atpakaļ
strndup.c 0ef513762e Init 2 gadi atpakaļ
strnlen.c 0ef513762e Init 2 gadi atpakaļ
strrchr.c 0ef513762e Init 2 gadi atpakaļ
strsignal.c 0ef513762e Init 2 gadi atpakaļ
strstr.c 0ef513762e Init 2 gadi atpakaļ
strtod.c 0ef513762e Init 2 gadi atpakaļ
strtol.c 0ef513762e Init 2 gadi atpakaļ
strtoll.c 0ef513762e Init 2 gadi atpakaļ
strtoul.c 0ef513762e Init 2 gadi atpakaļ
strtoull.c 0ef513762e Init 2 gadi atpakaļ
strverscmp.c 0ef513762e Init 2 gadi atpakaļ
timeval-utils.c 0ef513762e Init 2 gadi atpakaļ
tmpnam.c 0ef513762e Init 2 gadi atpakaļ
unlink-if-ordinary.c 0ef513762e Init 2 gadi atpakaļ
vasprintf.c 0ef513762e Init 2 gadi atpakaļ
vfork.c 0ef513762e Init 2 gadi atpakaļ
vfprintf.c 0ef513762e Init 2 gadi atpakaļ
vprintf-support.c 0ef513762e Init 2 gadi atpakaļ
vprintf-support.h 0ef513762e Init 2 gadi atpakaļ
vprintf.c 0ef513762e Init 2 gadi atpakaļ
vsnprintf.c 0ef513762e Init 2 gadi atpakaļ
vsprintf.c 0ef513762e Init 2 gadi atpakaļ
waitpid.c 0ef513762e Init 2 gadi atpakaļ
xasprintf.c 0ef513762e Init 2 gadi atpakaļ
xatexit.c 0ef513762e Init 2 gadi atpakaļ
xexit.c 0ef513762e Init 2 gadi atpakaļ
xmalloc.c 0ef513762e Init 2 gadi atpakaļ
xmemdup.c 0ef513762e Init 2 gadi atpakaļ
xstrdup.c 0ef513762e Init 2 gadi atpakaļ
xstrerror.c 0ef513762e Init 2 gadi atpakaļ
xstrndup.c 0ef513762e Init 2 gadi atpakaļ
xvasprintf.c 0ef513762e Init 2 gadi atpakaļ

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.