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

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.