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

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.