diff options
author | Andreas Jaeger <aj@suse.de> | 2000-08-23 07:23:46 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2000-08-23 07:23:46 +0000 |
commit | fb4dfa0c81812d64197d65f8c0c7e57467e09280 (patch) | |
tree | 2443677e21835887f61363ea823668e955b2a5a4 /dirent | |
parent | d6585e0b91f3348822add766da656eeec0302be0 (diff) | |
download | glibc-fb4dfa0c81812d64197d65f8c0c7e57467e09280.zip glibc-fb4dfa0c81812d64197d65f8c0c7e57467e09280.tar.gz glibc-fb4dfa0c81812d64197d65f8c0c7e57467e09280.tar.bz2 |
Add some pure attributes.
Diffstat (limited to 'dirent')
-rw-r--r-- | dirent/dirent.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/dirent/dirent.h b/dirent/dirent.h index 0888e46..dcbeab6 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 |