projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make arch __set_thread_area backends hidden
[oweals/musl.git]
/
include
/
string.h
diff --git
a/include/string.h
b/include/string.h
index f96f71ee0b5731fcc869bf00efca589efc8c4c95..795a2abcd990ac1ecd3b7592d6948b897ec9cb68 100644
(file)
--- a/
include/string.h
+++ b/
include/string.h
@@
-5,15
+5,10
@@
extern "C" {
#endif
extern "C" {
#endif
-#if __STDC_VERSION__ >= 199901L
-#define __restrict restrict
-#elif !defined(__GNUC__)
-#define __restrict
-#endif
+#include <features.h>
-#undef NULL
#ifdef __cplusplus
#ifdef __cplusplus
-#define NULL 0
+#define NULL 0
L
#else
#define NULL ((void*)0)
#endif
#else
#define NULL ((void*)0)
#endif
@@
-83,19
+78,19
@@
size_t strxfrm_l (char *__restrict, const char *__restrict, size_t, locale_t);
void *memccpy (void *__restrict, const void *__restrict, int, size_t);
#endif
void *memccpy (void *__restrict, const void *__restrict, int, size_t);
#endif
-#ifdef _BSD_SOURCE
+#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
+char *strsep(char **, const char *);
size_t strlcat (char *, const char *, size_t);
size_t strlcpy (char *, const char *, size_t);
size_t strlcat (char *, const char *, size_t);
size_t strlcpy (char *, const char *, size_t);
+void explicit_bzero (void *, size_t);
#endif
#ifdef _GNU_SOURCE
#define strdupa(x) strcpy(alloca(strlen(x)+1),x)
int strverscmp (const char *, const char *);
#endif
#ifdef _GNU_SOURCE
#define strdupa(x) strcpy(alloca(strlen(x)+1),x)
int strverscmp (const char *, const char *);
-int strcasecmp_l (const char *, const char *, locale_t);
-int strncasecmp_l (const char *, const char *, size_t, locale_t);
char *strchrnul(const char *, int);
char *strcasestr(const char *, const char *);
char *strchrnul(const char *, int);
char *strcasestr(const char *, const char *);
-
char *strsep(char **, const char *
);
+
void *memmem(const void *, size_t, const void *, size_t
);
void *memrchr(const void *, int, size_t);
void *mempcpy(void *, const void *, size_t);
#ifndef __cplusplus
void *memrchr(const void *, int, size_t);
void *mempcpy(void *, const void *, size_t);
#ifndef __cplusplus