1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
2000-05-11  Jan Hubicka  <jh@suse.cz>

	* misc/sys/cdefs.h: Add support for pure attribute.

	* include/string.h: Add __attribute_pure__ to various functions.
	* string/string.h: Likewise.
This commit is contained in:
Andreas Jaeger
2000-05-12 07:01:25 +00:00
parent b227a3a6ad
commit ca5a4c3c9f
4 changed files with 72 additions and 35 deletions

View File

@ -5,23 +5,29 @@
extern void *__memccpy (void *__dest, __const void *__src,
int __c, size_t __n);
extern size_t __strnlen (__const char *__string, size_t __maxlen);
extern size_t __strnlen (__const char *__string, size_t __maxlen)
__attribute_pure__;
extern char *__strsep (char **__stringp, __const char *__delim);
extern int __strverscmp (__const char *__s1, __const char *__s2);
extern int __strverscmp (__const char *__s1, __const char *__s2)
__attribute_pure__;
extern int __strncasecmp (__const char *__s1, __const char *__s2,
size_t __n);
size_t __n)
__attribute_pure__;
extern char *__strndup (__const char *__string, size_t __n)
__attribute_malloc__;
extern void *__rawmemchr (__const void *__s, int __c);
extern void *__rawmemchr (__const void *__s, int __c)
__attribute_pure__;
extern char *__strchrnul (__const char *__s, int __c);
extern char *__strchrnul (__const char *__s, int __c)
__attribute_pure__;
extern void *__memrchr (__const void *__s, int __c, size_t __n);
extern void *__memrchr (__const void *__s, int __c, size_t __n)
__attribute_pure__;
/* Now the real definitions. We do this here since some of the functions
above are defined as macros in the headers. */