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