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

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.