summaryrefslogtreecommitdiffstats
path: root/include/string.h
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2014-05-11 13:48:21 +0000
committerjilles <jilles@FreeBSD.org>2014-05-11 13:48:21 +0000
commite47308fc84d8eb2e6e15bb12fafc0792d878a58d (patch)
treee3e7e2d2f693854c41c7eea431d0ace7bd6145fe /include/string.h
parent9ef9db396904b527fb74edb432f42a2b02d6bc6c (diff)
downloadFreeBSD-src-e47308fc84d8eb2e6e15bb12fafc0792d878a58d.zip
FreeBSD-src-e47308fc84d8eb2e6e15bb12fafc0792d878a58d.tar.gz
include: Remove checks for __BSD_VISIBLE where redundant with __XSI_VISIBLE
or __POSIX_VISIBLE. Whenever <sys/cdefs.h> sets __BSD_VISIBLE to non-zero, it also sets __POSIX_VISIBLE and __XSI_VISIBLE to the newest version supported. No functional change is intended.
Diffstat (limited to 'include/string.h')
-rw-r--r--include/string.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/string.h b/include/string.h
index ceffcf6..af8b0d4 100644
--- a/include/string.h
+++ b/include/string.h
@@ -65,7 +65,7 @@ void *memmem(const void *, size_t, const void *, size_t) __pure;
#endif
void *memmove(void *, const void *, size_t);
void *memset(void *, int, size_t);
-#if __POSIX_VISIBLE >= 200809 || __BSD_VISIBLE
+#if __POSIX_VISIBLE >= 200809
char *stpcpy(char * __restrict, const char * __restrict);
char *stpncpy(char * __restrict, const char * __restrict, size_t);
#endif
@@ -99,7 +99,7 @@ void strmode(int, char *);
char *strncat(char * __restrict, const char * __restrict, size_t);
int strncmp(const char *, const char *, size_t) __pure;
char *strncpy(char * __restrict, const char * __restrict, size_t);
-#if __POSIX_VISIBLE >= 200809 || __BSD_VISIBLE
+#if __POSIX_VISIBLE >= 200809
char *strndup(const char *, size_t) __malloc_like;
size_t strnlen(const char *, size_t) __pure;
#endif
@@ -111,7 +111,7 @@ char *strrchr(const char *, int) __pure;
#if __BSD_VISIBLE
char *strsep(char **, const char *);
#endif
-#if __POSIX_VISIBLE >= 200809 || __BSD_VISIBLE
+#if __POSIX_VISIBLE >= 200809
char *strsignal(int);
#endif
size_t strspn(const char *, const char *) __pure;
OpenPOWER on IntegriCloud