summary refs log tree commit diff
path: root/dirent/dirent.h
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 /dirent/dirent.h
parentd6585e0b91f3348822add766da656eeec0302be0 (diff)
downloadglibc-fb4dfa0c81812d64197d65f8c0c7e57467e09280.tar.gz
glibc-fb4dfa0c81812d64197d65f8c0c7e57467e09280.tar.xz
glibc-fb4dfa0c81812d64197d65f8c0c7e57467e09280.zip
Add some pure attributes.
Diffstat (limited to 'dirent/dirent.h')
-rw-r--r--dirent/dirent.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/dirent/dirent.h b/dirent/dirent.h
index 0888e46dc7..dcbeab6946 100644
--- a/dirent/dirent.h
+++ b/dirent/dirent.h
@@ -252,11 +252,13 @@ extern int scandir64 (__const char *__restrict __dir,
 
 /* Function to compare two `struct dirent's alphabetically.  */
 # ifndef __USE_FILE_OFFSET64
-extern int alphasort (__const void *__e1, __const void *__e2) __THROW;
+extern int alphasort (__const void *__e1, __const void *__e2)
+     __THROW __attribute_pure__;
 # else
 #  ifdef __REDIRECT
 extern int __REDIRECT (alphasort,
-		       (__const void *__e1, __const void *__e2) __THROW,
+		       (__const void *__e1, __const void *__e2)
+		       __THROW __attribute_pure__,
 		       alphasort64);
 #  else
 #   define alphasort alphasort64
@@ -264,17 +266,20 @@ extern int __REDIRECT (alphasort,
 # endif
 
 # if defined __USE_GNU && defined __USE_LARGEFILE64
-extern int alphasort64 (__const void *__e1, __const void *__e2) __THROW;
+extern int alphasort64 (__const void *__e1, __const void *__e2)
+     __THROW __attribute_pure__;
 # endif
 
 # ifdef __USE_GNU
 /* Function to compare two `struct dirent's by name & version.  */
 #  ifndef __USE_FILE_OFFSET64
-extern int versionsort (__const void *__e1, __const void *__e2) __THROW;
+extern int versionsort (__const void *__e1, __const void *__e2)
+     __THROW __attribute_pure__;
 #  else
 #   ifdef __REDIRECT
 extern int __REDIRECT (versionsort,
-		       (__const void *__e1, __const void *__e2) __THROW,
+		       (__const void *__e1, __const void *__e2)
+		       __THROW __attribute_pure__,
 		       versionsort64);
 #   else
 #    define versionsort versionsort64
@@ -282,7 +287,8 @@ extern int __REDIRECT (versionsort,
 #  endif
 
 #  ifdef __USE_LARGEFILE64
-extern int versionsort64 (__const void *__e1, __const void *__e2) __THROW;
+extern int versionsort64 (__const void *__e1, __const void *__e2)
+     __THROW __attribute_pure__;
 #  endif
 # endif