1:
2:
3:
4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33:
34:
35: #ifndef _STRING_H_
36: #define _STRING_H_
37:
38: #include <sys/cdefs.h>
39: #include <machine/_types.h>
40:
41: #ifndef _SIZE_T_DEFINED_
42: #define _SIZE_T_DEFINED_
43: typedef __size_t size_t;
44: #endif
45:
46: #ifndef NULL
47: #ifdef __GNUG__
48: #define NULL __null
49: #elif defined(__cplusplus)
50: #define NULL 0L
51: #else
52: #define NULL ((void *)0)
53: #endif
54: #endif
55:
56: __BEGIN_DECLS
57: void *memchr(const void *, int, size_t);
58: void *memrchr(const void *, int, size_t);
59: int memcmp(const void *, const void *, size_t);
60: void *memcpy(void *, const void *, size_t)
61:
62: ;
63: void *memmove(void *, const void *, size_t)
64:
65: ;
66: void *memset(void *, int, size_t)
67: ;
68: char *strcat(char *, const char *);
69: char *strchr(const char *, int);
70: int strcmp(const char *, const char *);
71: int strcoll(const char *, const char *);
72: char *strcpy(char *, const char *);
73: size_t strcspn(const char *, const char *);
74: char *strerror(int);
75: size_t strlen(const char *);
76: char *strncat(char *, const char *, size_t)
77: ;
78: int strncmp(const char *, const char *, size_t);
79: char *strncpy(char *, const char *, size_t)
80: ;
81: char *strpbrk(const char *, const char *);
82: char *strrchr(const char *, int);
83: size_t strspn(const char *, const char *);
84: char *strstr(const char *, const char *);
85: char *strtok(char *, const char *);
86: char *strtok_r(char *, const char *, char **);
87: size_t strxfrm(char *, const char *, size_t)
88: ;
89:
90: #if __BSD_VISIBLE || __XPG_VISIBLE
91: void *memccpy(void *, const void *, int, size_t)
92: ;
93: #endif
94:
95: #if __BSD_VISIBLE || __XPG_VISIBLE >= 420
96: int bcmp(const void *, const void *, size_t);
97: void bcopy(const void *, void *, size_t)
98:
99: ;
100: void bzero(void *, size_t)
101: ;
102: int ffs(int);
103: char *index(const char *, int);
104: char *rindex(const char *, int);
105: int strcasecmp(const char *, const char *);
106: int strncasecmp(const char *, const char *, size_t);
107: char *strdup(const char *);
108: #endif
109:
110: #if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112
111: int strerror_r(int, char *, size_t)
112: ;
113: #endif
114:
115: #if __POSIX_VISIBLE >= 200809
116: char *stpcpy(char *, const char *);
117: char *stpncpy(char *, const char *, size_t);
118: char *strndup(const char *, size_t);
119: size_t strnlen(const char *, size_t);
120: #endif
121:
122: #if __BSD_VISIBLE || __POSIX_VISIBLE >= 200809
123: char *strsignal(int);
124: #endif
125:
126: #if __BSD_VISIBLE
127: char *strcasestr(const char *, const char *);
128: size_t strlcat(char *, const char *, size_t)
129: ;
130: size_t strlcpy(char *, const char *, size_t)
131: ;
132: void strmode(int, char *);
133: char *strsep(char **, const char *);
134: int timingsafe_bcmp(const void *, const void *, size_t);
135: #endif
136: __END_DECLS
137:
138: #endif