diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/dirent.h | 6 | ||||
-rw-r--r-- | include/wchar.h | 12 |
2 files changed, 12 insertions, 6 deletions
diff --git a/include/dirent.h b/include/dirent.h index 4bffb06a39..d0ca3f2ffb 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -18,6 +18,8 @@ extern __ssize_t __getdents (int __fd, char *__buf, size_t __nbytes) internal_function; extern __ssize_t __getdents64 (int __fd, char *__buf, size_t __nbytes) internal_function; -extern int __alphasort64 (const void *a, const void *b); -extern int __versionsort64 (const void *a, const void *b); +extern int __alphasort64 (const void *a, const void *b) + __attribute_pure__; +extern int __versionsort64 (const void *a, const void *b) + __attribute_pure__; #endif diff --git a/include/wchar.h b/include/wchar.h index 7187d76c05..ee12563e99 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -3,10 +3,13 @@ # ifdef _WCHAR_H /* Now define the internal interfaces. */ -extern int __wcscasecmp (__const wchar_t *__s1, __const wchar_t *__s2); +extern int __wcscasecmp (__const wchar_t *__s1, __const wchar_t *__s2) + __attribute_pure__; extern int __wcsncasecmp (__const wchar_t *__s1, __const wchar_t *__s2, - size_t __n); -extern size_t __wcsnlen (__const wchar_t *__s, size_t __maxlen); + size_t __n) + __attribute_pure__; +extern size_t __wcsnlen (__const wchar_t *__s, size_t __maxlen) + __attribute_pure__; extern wint_t __btowc (int __c); extern int __mbsinit (__const __mbstate_t *__ps); extern size_t __mbrtowc (wchar_t *__restrict __pwc, @@ -37,7 +40,8 @@ extern wchar_t *__wmempcpy (wchar_t *__restrict __s1, size_t __n); extern wchar_t *__wmemmove (wchar_t *__s1, __const wchar_t *__s2, size_t __n); -extern wchar_t *__wcschrnul (__const wchar_t *__s, wchar_t __wc); +extern wchar_t *__wcschrnul (__const wchar_t *__s, wchar_t __wc) + __attribute_pure__; extern int __vfwscanf (FILE *__restrict __s, __const wchar_t *__restrict __format, |