aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMike Barcroft <mike@FreeBSD.org>2002-04-15 03:21:21 +0000
committerMike Barcroft <mike@FreeBSD.org>2002-04-15 03:21:21 +0000
commit6e07075911f8bff7fc01a24b909acb50ab13dd59 (patch)
tree6c6df9a81cc482cb3cc4bbabf62e410ffad6f928 /include
parentd6c4eef6dd115b7d5cbf4d61476df2f8986bbcbe (diff)
downloadsrc-6e07075911f8bff7fc01a24b909acb50ab13dd59.tar.gz
src-6e07075911f8bff7fc01a24b909acb50ab13dd59.zip
Add support for X/Open.
PR: 37078
Notes
Notes: svn path=/head/; revision=94721
Diffstat (limited to 'include')
-rw-r--r--include/string.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/string.h b/include/string.h
index dc0580798f52..7b3dbc68b69c 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);