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

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.