summaryrefslogtreecommitdiffstats
path: root/include/string.h
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-04-15 03:21:21 +0000
committermike <mike@FreeBSD.org>2002-04-15 03:21:21 +0000
commit4b145d739f5579795e55f73bc8743fb9b77fff26 (patch)
tree6c6df9a81cc482cb3cc4bbabf62e410ffad6f928 /include/string.h
parent88095cb94f707d2545177a1102c36205d5a79795 (diff)
downloadFreeBSD-src-4b145d739f5579795e55f73bc8743fb9b77fff26.zip
FreeBSD-src-4b145d739f5579795e55f73bc8743fb9b77fff26.tar.gz
Add support for X/Open.
PR: 37078
Diffstat (limited to 'include/string.h')
-rw-r--r--include/string.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/string.h b/include/string.h
index dc05807..7b3dbc6 100644
--- a/include/string.h
+++ b/include/string.h
@@ -81,13 +81,16 @@ char *strstr(const char *, const char *);
char *strtok(char * __restrict, const char * __restrict);
size_t strxfrm(char * __restrict, const char * __restrict, size_t);
-#if __POSIX_VISIBLE >= 200112
+#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE >= 500
void *memccpy(void * __restrict, const void * __restrict, int, size_t);
char *strdup(const char *);
-int strerror_r(int, char *, size_t);
char *strtok_r(char *, const char *, char **);
#endif
+#if __POSIX_VISIBLE >= 200112
+int strerror_r(int, char *, size_t);
+#endif
+
#if __BSD_VISIBLE
char *strcasestr(const char *, const char *);
size_t strlcat(char *, const char *, size_t);
OpenPOWER on IntegriCloud