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

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.