aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-08-23 07:23:46 +0000
committerAndreas Jaeger <aj@suse.de>2000-08-23 07:23:46 +0000
commitfb4dfa0c81812d64197d65f8c0c7e57467e09280 (patch)
tree2443677e21835887f61363ea823668e955b2a5a4 /stdlib
parentd6585e0b91f3348822add766da656eeec0302be0 (diff)
downloadglibc-fb4dfa0c81812d64197d65f8c0c7e57467e09280.tar
glibc-fb4dfa0c81812d64197d65f8c0c7e57467e09280.tar.gz
glibc-fb4dfa0c81812d64197d65f8c0c7e57467e09280.tar.bz2
glibc-fb4dfa0c81812d64197d65f8c0c7e57467e09280.zip
Add some pure attributes.
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/stdlib.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h
index bdf618f152..4b8b4674c2 100644
--- a/stdlib/stdlib.h
+++ b/stdlib/stdlib.h
@@ -134,15 +134,16 @@ extern size_t __ctype_get_mb_cur_max (void) __THROW;
/* Convert a string to a floating-point number. */
-extern double atof (__const char *__nptr) __THROW;
+extern double atof (__const char *__nptr) __THROW __attribute_pure__;
/* Convert a string to an integer. */
-extern int atoi (__const char *__nptr) __THROW;
+extern int atoi (__const char *__nptr) __THROW __attribute_pure__;
/* Convert a string to a long integer. */
-extern long int atol (__const char *__nptr) __THROW;
+extern long int atol (__const char *__nptr) __THROW __attribute_pure__;
#if defined __USE_ISOC99 || (defined __GNUC__ && defined __USE_MISC)
-/* These functions will part of the standard C library in ISO C99. */
-__extension__ extern long long int atoll (__const char *__nptr) __THROW;
+/* Convert a string to a long long integer. */
+__extension__ extern long long int atoll (__const char *__nptr)
+ __THROW __attribute_pure__;
#endif
/* Convert a string to a floating-point number. */
@@ -384,7 +385,7 @@ atoll (__const char *__nptr) __THROW
extern char *l64a (long int __n) __THROW;
/* Read a number from a string S in base 64 as above. */
-extern long int a64l (__const char *__s) __THROW;
+extern long int a64l (__const char *__s) __THROW __attribute_pure__;
# include <sys/types.h> /* we need int32_t... */
@@ -552,7 +553,7 @@ extern void *valloc (size_t __size) __THROW __attribute_malloc__;
#ifdef __USE_XOPEN2K
/* Allocate memory of SIZE bytes with an alignment of ALIGNMENT. */
extern int posix_memalign (void **memptr, size_t alignment, size_t size)
- __THROW;
+ __THROW __attribute_malloc__;
#endif
/* Abort execution and generate a core-dump. */