summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-07-23 07:13:35 +0000
committertjr <tjr@FreeBSD.org>2004-07-23 07:13:35 +0000
commitf83c5fa3cae7a33cee64b24a2a840959aed5c1ee (patch)
treed9943cea474df4699927a8faded7f112c10f0ba1
parent11aa416bcbb5b9eab0ea9d59c39d155dcc37bd93 (diff)
downloadFreeBSD-src-f83c5fa3cae7a33cee64b24a2a840959aed5c1ee.zip
FreeBSD-src-f83c5fa3cae7a33cee64b24a2a840959aed5c1ee.tar.gz
Add __pure and __pure2 where appropriate.
-rw-r--r--include/strings.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/include/strings.h b/include/strings.h
index 84f5b5e..4b19d0e 100644
--- a/include/strings.h
+++ b/include/strings.h
@@ -38,19 +38,19 @@ typedef __size_t size_t;
#endif
__BEGIN_DECLS
-int bcmp(const void *, const void *, size_t); /* LEGACY */
-void bcopy(const void *, void *, size_t); /* LEGACY */
-void bzero(void *, size_t); /* LEGACY */
-int ffs(int);
+int bcmp(const void *, const void *, size_t) __pure; /* LEGACY */
+void bcopy(const void *, void *, size_t); /* LEGACY */
+void bzero(void *, size_t); /* LEGACY */
+int ffs(int) __pure2;
#ifdef __BSD_VISIBLE
-int ffsl(long);
-int fls(int);
-int flsl(long);
+int ffsl(long) __pure2;
+int fls(int) __pure2;
+int flsl(long) __pure2;
#endif
-char *index(const char *, int); /* LEGACY */
-char *rindex(const char *, int); /* LEGACY */
-int strcasecmp(const char *, const char *);
-int strncasecmp(const char *, const char *, size_t);
+char *index(const char *, int) __pure; /* LEGACY */
+char *rindex(const char *, int) __pure; /* LEGACY */
+int strcasecmp(const char *, const char *) __pure;
+int strncasecmp(const char *, const char *, size_t) __pure;
__END_DECLS
#endif /* _STRINGS_H_ */
OpenPOWER on IntegriCloud