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

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.