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

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.