diff options
author | Jan-Benedict Glaw <jbglaw@lug-owl.de> | 2015-01-14 22:10:15 +0100 |
---|---|---|
committer | Jan-Benedict Glaw <jbglaw@lug-owl.de> | 2015-01-14 22:15:02 +0100 |
commit | edabaaee81ee7ab2e38471b016e13bedbec17dde (patch) | |
tree | 285e19d48a33ac0728959c3dbab107c648aaf265 /include/libiberty.h | |
parent | 52db4ec2d13f511ef3dfe5b9a159869da6e4c3eb (diff) | |
download | gdb-edabaaee81ee7ab2e38471b016e13bedbec17dde.zip gdb-edabaaee81ee7ab2e38471b016e13bedbec17dde.tar.gz gdb-edabaaee81ee7ab2e38471b016e13bedbec17dde.tar.bz2 |
Merge include/libiberty.h from GCC
This pulls in some missing prototypes and also adds corresponding entries
to the ChangeLog file. Please note that for one function, strverscmp(),
the ChangeLog entry was already there, but the actual prototype wasn't.
These ChangeLog entries are added:
2014-10-28 Yury Gribov <y.gribov@samsung.com>
* libiberty.h (strtol, strtoul, strtoll, strtoull): New prototypes.
2014-10-15 David Malcolm <dmalcolm@redhat.com>
* libiberty.h (choose_tmpdir): New prototype.
Diffstat (limited to 'include/libiberty.h')
-rw-r--r-- | include/libiberty.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/libiberty.h b/include/libiberty.h index eec8009..b33dd65 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -226,6 +226,11 @@ extern char *make_relative_prefix (const char *, const char *, extern char *make_relative_prefix_ignore_links (const char *, const char *, const char *) ATTRIBUTE_MALLOC; +/* Returns a pointer to a directory path suitable for creating temporary + files in. */ + +extern const char *choose_tmpdir (void) ATTRIBUTE_RETURNS_NONNULL; + /* Choose a temporary directory to use for scratch files. */ extern char *choose_temp_base (void) ATTRIBUTE_MALLOC ATTRIBUTE_RETURNS_NONNULL; @@ -659,6 +664,33 @@ extern size_t strnlen (const char *, size_t); extern int strverscmp (const char *, const char *); #endif +#if defined(HAVE_DECL_STRTOL) && !HAVE_DECL_STRTOL +extern long int strtol (const char *nptr, + char **endptr, int base); +#endif + +#if defined(HAVE_DECL_STRTOUL) && !HAVE_DECL_STRTOUL +extern unsigned long int strtoul (const char *nptr, + char **endptr, int base); +#endif + +#if defined(HAVE_LONG_LONG) && defined(HAVE_DECL_STRTOLL) && !HAVE_DECL_STRTOLL +__extension__ +extern long long int strtoll (const char *nptr, + char **endptr, int base); +#endif + +#if defined(HAVE_LONG_LONG) && defined(HAVE_DECL_STRTOULL) && !HAVE_DECL_STRTOULL +__extension__ +extern unsigned long long int strtoull (const char *nptr, + char **endptr, int base); +#endif + +#if defined(HAVE_DECL_STRVERSCMP) && !HAVE_DECL_STRVERSCMP +/* Compare version strings. */ +extern int strverscmp (const char *, const char *); +#endif + /* Set the title of a process */ extern void setproctitle (const char *name, ...); |