mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 19:52:44 +00:00
- Remove bcmp, bcopy, bzero, index, and rindex from the POSIX.1-2008
namespace. - Add ffs to the XSI namespace.
This commit is contained in:
parent
65e8b12988
commit
dad39763d9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189350
@ -38,10 +38,14 @@ typedef __size_t size_t;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
#if __BSD_VISIBLE || __POSIX_VISIBLE <= 200112
|
||||||
int bcmp(const void *, const void *, size_t) __pure; /* 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 */
|
||||||
|
#endif
|
||||||
|
#if __XSI_VISIBLE
|
||||||
int ffs(int) __pure2;
|
int ffs(int) __pure2;
|
||||||
|
#endif
|
||||||
#ifdef __BSD_VISIBLE
|
#ifdef __BSD_VISIBLE
|
||||||
int ffsl(long) __pure2;
|
int ffsl(long) __pure2;
|
||||||
int ffsll(long long) __pure2;
|
int ffsll(long long) __pure2;
|
||||||
@ -49,8 +53,10 @@ int fls(int) __pure2;
|
|||||||
int flsl(long) __pure2;
|
int flsl(long) __pure2;
|
||||||
int flsll(long long) __pure2;
|
int flsll(long long) __pure2;
|
||||||
#endif
|
#endif
|
||||||
|
#if __BSD_VISIBLE || __POSIX_VISIBLE <= 200112
|
||||||
char *index(const char *, int) __pure; /* LEGACY */
|
char *index(const char *, int) __pure; /* LEGACY */
|
||||||
char *rindex(const char *, int) __pure; /* LEGACY */
|
char *rindex(const char *, int) __pure; /* LEGACY */
|
||||||
|
#endif
|
||||||
int strcasecmp(const char *, const char *) __pure;
|
int strcasecmp(const char *, const char *) __pure;
|
||||||
int strncasecmp(const char *, const char *, size_t) __pure;
|
int strncasecmp(const char *, const char *, size_t) __pure;
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
Loading…
Reference in New Issue
Block a user