Add __pure and __pure2 where appropriate.
This commit is contained in:
parent
e9b497dbf6
commit
f0000ca014
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132577
@ -38,19 +38,19 @@ typedef __size_t size_t;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
int bcmp(const void *, const void *, size_t); /* LEGACY */
|
int bcmp(const void *, const void *, size_t) __pure; /* LEGACY */
|
||||||
void bcopy(const void *, void *, size_t); /* LEGACY */
|
void bcopy(const void *, void *, size_t); /* LEGACY */
|
||||||
void bzero(void *, size_t); /* LEGACY */
|
void bzero(void *, size_t); /* LEGACY */
|
||||||
int ffs(int);
|
int ffs(int) __pure2;
|
||||||
#ifdef __BSD_VISIBLE
|
#ifdef __BSD_VISIBLE
|
||||||
int ffsl(long);
|
int ffsl(long) __pure2;
|
||||||
int fls(int);
|
int fls(int) __pure2;
|
||||||
int flsl(long);
|
int flsl(long) __pure2;
|
||||||
#endif
|
#endif
|
||||||
char *index(const char *, int); /* LEGACY */
|
char *index(const char *, int) __pure; /* LEGACY */
|
||||||
char *rindex(const char *, int); /* LEGACY */
|
char *rindex(const char *, int) __pure; /* LEGACY */
|
||||||
int strcasecmp(const char *, const char *);
|
int strcasecmp(const char *, const char *) __pure;
|
||||||
int strncasecmp(const char *, const char *, size_t);
|
int strncasecmp(const char *, const char *, size_t) __pure;
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
#endif /* _STRINGS_H_ */
|
#endif /* _STRINGS_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user