You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
higepi 6c0debd407 projet 1 year ago
..
config projet 1 year ago
testsuite projet 1 year ago
.gitignore projet 1 year ago
COPYING.LIB projet 1 year ago
ChangeLog projet 1 year ago
ChangeLog.jit projet 1 year ago
Makefile.in projet 1 year ago
README projet 1 year ago
_doprnt.c projet 1 year ago
acinclude.m4 projet 1 year ago
aclocal.m4 projet 1 year ago
alloca.c projet 1 year ago
argv.c projet 1 year ago
asprintf.c projet 1 year ago
at-file.texi projet 1 year ago
atexit.c projet 1 year ago
basename.c projet 1 year ago
bcmp.c projet 1 year ago
bcopy.c projet 1 year ago
bsearch.c projet 1 year ago
bsearch_r.c projet 1 year ago
bzero.c projet 1 year ago
calloc.c projet 1 year ago
choose-temp.c projet 1 year ago
clock.c projet 1 year ago
concat.c projet 1 year ago
config.h-vms projet 1 year ago
config.in projet 1 year ago
configure projet 1 year ago
configure.ac projet 1 year ago
configure.com projet 1 year ago
copying-lib.texi projet 1 year ago
copysign.c projet 1 year ago
cp-demangle.c projet 1 year ago
cp-demangle.h projet 1 year ago
cp-demint.c projet 1 year ago
cplus-dem.c projet 1 year ago
crc32.c projet 1 year ago
d-demangle.c projet 1 year ago
dwarfnames.c projet 1 year ago
dyn-string.c projet 1 year ago
fdmatch.c projet 1 year ago
ffs.c projet 1 year ago
fibheap.c projet 1 year ago
filedescriptor.c projet 1 year ago
filename_cmp.c projet 1 year ago
floatformat.c projet 1 year ago
fnmatch.c projet 1 year ago
fnmatch.txh projet 1 year ago
fopen_unlocked.c projet 1 year ago
functions.texi projet 1 year ago
gather-docs projet 1 year ago
getcwd.c projet 1 year ago
getopt.c projet 1 year ago
getopt1.c projet 1 year ago
getpagesize.c projet 1 year ago
getpwd.c projet 1 year ago
getruntime.c projet 1 year ago
gettimeofday.c projet 1 year ago
hashtab.c projet 1 year ago
hex.c projet 1 year ago
index.c projet 1 year ago
insque.c projet 1 year ago
lbasename.c projet 1 year ago
libiberty.texi projet 1 year ago
lrealpath.c projet 1 year ago
maint-tool projet 1 year ago
make-relative-prefix.c projet 1 year ago
make-temp-file.c projet 1 year ago
makefile.vms projet 1 year ago
md5.c projet 1 year ago
memchr.c projet 1 year ago
memcmp.c projet 1 year ago
memcpy.c projet 1 year ago
memmem.c projet 1 year ago
memmove.c projet 1 year ago
mempcpy.c projet 1 year ago
memset.c projet 1 year ago
mkstemps.c projet 1 year ago
msdos.c projet 1 year ago
objalloc.c projet 1 year ago
obstack.c projet 1 year ago
obstacks.texi projet 1 year ago
partition.c projet 1 year ago
pex-common.c projet 1 year ago
pex-common.h projet 1 year ago
pex-djgpp.c projet 1 year ago
pex-msdos.c projet 1 year ago
pex-one.c projet 1 year ago
pex-unix.c projet 1 year ago
pex-win32.c projet 1 year ago
pexecute.c projet 1 year ago
pexecute.txh projet 1 year ago
physmem.c projet 1 year ago
putenv.c projet 1 year ago
random.c projet 1 year ago
regex.c projet 1 year ago
rename.c projet 1 year ago
rindex.c projet 1 year ago
rust-demangle.c projet 1 year ago
safe-ctype.c projet 1 year ago
setenv.c projet 1 year ago
setproctitle.c projet 1 year ago
sha1.c projet 1 year ago
sigsetmask.c projet 1 year ago
simple-object-coff.c projet 1 year ago
simple-object-common.h projet 1 year ago
simple-object-elf.c projet 1 year ago
simple-object-mach-o.c projet 1 year ago
simple-object-xcoff.c projet 1 year ago
simple-object.c projet 1 year ago
simple-object.txh projet 1 year ago
snprintf.c projet 1 year ago
sort.c projet 1 year ago
spaces.c projet 1 year ago
splay-tree.c projet 1 year ago
stack-limit.c projet 1 year ago
stpcpy.c projet 1 year ago
stpncpy.c projet 1 year ago
strcasecmp.c projet 1 year ago
strchr.c projet 1 year ago
strdup.c projet 1 year ago
strerror.c projet 1 year ago
strncasecmp.c projet 1 year ago
strncmp.c projet 1 year ago
strndup.c projet 1 year ago
strnlen.c projet 1 year ago
strrchr.c projet 1 year ago
strsignal.c projet 1 year ago
strstr.c projet 1 year ago
strtod.c projet 1 year ago
strtol.c projet 1 year ago
strtoll.c projet 1 year ago
strtoul.c projet 1 year ago
strtoull.c projet 1 year ago
strverscmp.c projet 1 year ago
timeval-utils.c projet 1 year ago
tmpnam.c projet 1 year ago
unlink-if-ordinary.c projet 1 year ago
vasprintf.c projet 1 year ago
vfork.c projet 1 year ago
vfprintf.c projet 1 year ago
vprintf-support.c projet 1 year ago
vprintf-support.h projet 1 year ago
vprintf.c projet 1 year ago
vsnprintf.c projet 1 year ago
vsprintf.c projet 1 year ago
waitpid.c projet 1 year ago
xasprintf.c projet 1 year ago
xatexit.c projet 1 year ago
xexit.c projet 1 year ago
xmalloc.c projet 1 year ago
xmemdup.c projet 1 year ago
xstrdup.c projet 1 year ago
xstrerror.c projet 1 year ago
xstrndup.c projet 1 year ago
xvasprintf.c projet 1 year ago

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.