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

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.