Subversion Repositories Kolibri OS

Rev

Rev 6099 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6099 Rev 6536
Line 41... Line 41...
41
#ifndef _REENT_ONLY
41
#ifndef _REENT_ONLY
42
char 	*_EXFUN(strtok,(char *__restrict, const char *__restrict));
42
char 	*_EXFUN(strtok,(char *__restrict, const char *__restrict));
43
#endif
43
#endif
44
size_t	 _EXFUN(strxfrm,(char *__restrict, const char *__restrict, size_t));
44
size_t	 _EXFUN(strxfrm,(char *__restrict, const char *__restrict, size_t));
Line 45... Line 45...
45
 
45
 
46
#if __POSIX_VISIBLE
46
#if __MISC_VISIBLE || __POSIX_VISIBLE
47
char 	*_EXFUN(strtok_r,(char *__restrict, const char *__restrict, char **__restrict));
47
char 	*_EXFUN(strtok_r,(char *__restrict, const char *__restrict, char **__restrict));
48
#endif
48
#endif
49
#if __BSD_VISIBLE
49
#if __BSD_VISIBLE || (__POSIX_VISIBLE && __POSIX_VISIBLE < 200809)
50
int	 _EXFUN(bcmp,(const void *, const void *, size_t));
50
int	 _EXFUN(bcmp,(const void *, const void *, size_t));
51
void	 _EXFUN(bcopy,(const void *, void *, size_t));
51
void	 _EXFUN(bcopy,(const void *, void *, size_t));
-
 
52
void	 _EXFUN(bzero,(void *, size_t));
-
 
53
#endif
-
 
54
#if __BSD_VISIBLE
-
 
55
void	 _EXFUN(explicit_bzero,(void *, size_t));
-
 
56
int	 _EXFUN(timingsafe_bcmp,(const void *, const void *, size_t));
-
 
57
int	 _EXFUN(timingsafe_memcmp,(const void *, const void *, size_t));
-
 
58
#endif
52
void	 _EXFUN(bzero,(void *, size_t));
59
#if __MISC_VISIBLE || __POSIX_VISIBLE >= 200809
-
 
60
int	 _EXFUN(ffs,(int));
-
 
61
#endif
53
int	 _EXFUN(ffs,(int));
62
#if __BSD_VISIBLE || (__POSIX_VISIBLE && __POSIX_VISIBLE < 200809)
54
char 	*_EXFUN(index,(const char *, int));
63
char 	*_EXFUN(index,(const char *, int));
55
#endif
64
#endif
56
#if __BSD_VISIBLE || __XSI_VISIBLE
65
#if __MISC_VISIBLE || __POSIX_VISIBLE
57
_PTR	 _EXFUN(memccpy,(_PTR __restrict, const _PTR __restrict, int, size_t));
66
_PTR	 _EXFUN(memccpy,(_PTR __restrict, const _PTR __restrict, int, size_t));
58
#endif
67
#endif
59
#if __GNU_VISIBLE
68
#if __GNU_VISIBLE
60
_PTR	 _EXFUN(mempcpy,(_PTR, const _PTR, size_t));
69
_PTR	 _EXFUN(mempcpy,(_PTR, const _PTR, size_t));
61
_PTR	 _EXFUN(memmem, (const _PTR, size_t, const _PTR, size_t));
-
 
62
#endif
70
_PTR	 _EXFUN(memmem, (const _PTR, size_t, const _PTR, size_t));
63
_PTR 	 _EXFUN(memrchr,(const _PTR, int, size_t));
-
 
64
#if __GNU_VISIBLE
71
_PTR 	 _EXFUN(memrchr,(const _PTR, int, size_t));
65
_PTR 	 _EXFUN(rawmemchr,(const _PTR, int));
72
_PTR 	 _EXFUN(rawmemchr,(const _PTR, int));
66
#endif
73
#endif
67
#if __BSD_VISIBLE
74
#if __BSD_VISIBLE || (__POSIX_VISIBLE && __POSIX_VISIBLE < 200809)
68
char 	*_EXFUN(rindex,(const char *, int));
75
char 	*_EXFUN(rindex,(const char *, int));
69
#endif
76
#endif
70
char 	*_EXFUN(stpcpy,(char *__restrict, const char *__restrict));
77
char 	*_EXFUN(stpcpy,(char *__restrict, const char *__restrict));
71
char 	*_EXFUN(stpncpy,(char *__restrict, const char *__restrict, size_t));
78
char 	*_EXFUN(stpncpy,(char *__restrict, const char *__restrict, size_t));
Line 74... Line 81...
74
#endif
81
#endif
75
#if __GNU_VISIBLE
82
#if __GNU_VISIBLE
76
char	*_EXFUN(strcasestr,(const char *, const char *));
83
char	*_EXFUN(strcasestr,(const char *, const char *));
77
char 	*_EXFUN(strchrnul,(const char *, int));
84
char 	*_EXFUN(strchrnul,(const char *, int));
78
#endif
85
#endif
79
#if __XSI_VISIBLE >= 500
86
#if __MISC_VISIBLE || __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE >= 4
80
char 	*_EXFUN(strdup,(const char *));
87
char 	*_EXFUN(strdup,(const char *));
81
#endif
88
#endif
82
#ifndef __STRICT_ANSI__
-
 
83
char 	*_EXFUN(_strdup_r,(struct _reent *, const char *));
89
char 	*_EXFUN(_strdup_r,(struct _reent *, const char *));
84
#endif
-
 
85
#if __XSI_VISIBLE >= 700
90
#if __POSIX_VISIBLE >= 200809
86
char 	*_EXFUN(strndup,(const char *, size_t));
91
char 	*_EXFUN(strndup,(const char *, size_t));
87
#endif
92
#endif
88
 
-
 
89
#ifndef __STRICT_ANSI__
-
 
90
char 	*_EXFUN(_strndup_r,(struct _reent *, const char *, size_t));
93
char 	*_EXFUN(_strndup_r,(struct _reent *, const char *, size_t));
91
#endif
-
 
Line 92... Line 94...
92
 
94
 
93
#if __GNU_VISIBLE
95
#if __GNU_VISIBLE
94
int	 _EXFUN(ffsl,(long));
96
int	 _EXFUN(ffsl,(long));
95
int	 _EXFUN(ffsll, (long long));
97
int	 _EXFUN(ffsll, (long long));
Line 99... Line 101...
99
   _GNU_SOURCE, you get the GNU version; otherwise you get the POSIX
101
   _GNU_SOURCE, you get the GNU version; otherwise you get the POSIX
100
   version.  POSIX requires that #undef strerror_r will still let you
102
   version.  POSIX requires that #undef strerror_r will still let you
101
   invoke the underlying function, but that requires gcc support.  */
103
   invoke the underlying function, but that requires gcc support.  */
102
#if __GNU_VISIBLE
104
#if __GNU_VISIBLE
103
char	*_EXFUN(strerror_r,(int, char *, size_t));
105
char	*_EXFUN(strerror_r,(int, char *, size_t));
104
#else
106
#elif __POSIX_VISIBLE >= 200112
105
# ifdef __GNUC__
107
# ifdef __GNUC__
106
int	_EXFUN(strerror_r,(int, char *, size_t))
108
int	_EXFUN(strerror_r,(int, char *, size_t))
107
#ifdef __ASMNAME
109
#ifdef __ASMNAME
108
             __asm__ (__ASMNAME ("__xpg_strerror_r"))
110
             __asm__ (__ASMNAME ("__xpg_strerror_r"))
109
#endif
111
#endif
Line 122... Line 124...
122
size_t	_EXFUN(strlcpy,(char *, const char *, size_t));
124
size_t	_EXFUN(strlcpy,(char *, const char *, size_t));
123
#endif
125
#endif
124
#if __BSD_VISIBLE || __POSIX_VISIBLE
126
#if __BSD_VISIBLE || __POSIX_VISIBLE
125
int	_EXFUN(strncasecmp,(const char *, const char *, size_t));
127
int	_EXFUN(strncasecmp,(const char *, const char *, size_t));
126
#endif
128
#endif
127
#if !defined(__STRICT_ANSI__) || __POSIX_VISIBLE >= 200809 || \
-
 
128
    __XSI_VISIBLE >= 700
129
#if __POSIX_VISIBLE >= 200809
129
size_t	 _EXFUN(strnlen,(const char *, size_t));
130
size_t	 _EXFUN(strnlen,(const char *, size_t));
130
#endif
131
#endif
131
#if __BSD_VISIBLE
132
#if __BSD_VISIBLE
132
char 	*_EXFUN(strsep,(char **, const char *));
133
char 	*_EXFUN(strsep,(char **, const char *));
133
#endif
134
#endif
Line 134... Line -...
134
 
-
 
135
/*
-
 
136
 * The origin of these is unknown to me so I am conditionalizing them
-
 
137
 * on __STRICT_ANSI__. Finetuning this is definitely needed. --joel
-
 
138
 */
135
 
139
#if !defined(__STRICT_ANSI__)
136
#if __MISC_VISIBLE
140
char	*_EXFUN(strlwr,(char *));
137
char	*_EXFUN(strlwr,(char *));
141
char	*_EXFUN(strupr,(char *));
138
char	*_EXFUN(strupr,(char *));
Line 142... Line 139...
142
#endif
139
#endif
Line 147... Line 144...
147
 
144
 
148
#ifdef __CYGWIN__
145
#ifdef __CYGWIN__
149
int	_EXFUN(strtosigno, (const char *__name));
146
int	_EXFUN(strtosigno, (const char *__name));
Line 150... Line 147...
150
#endif
147
#endif
151
 
148
 
152
#if defined _GNU_SOURCE && defined __GNUC__
149
#if __GNU_VISIBLE && defined(__GNUC__)
153
#define strdupa(__s) \
150
#define strdupa(__s) \
154
	(__extension__ ({const char *__in = (__s); \
151
	(__extension__ ({const char *__in = (__s); \
155
			 size_t __len = strlen (__in) + 1; \
152
			 size_t __len = strlen (__in) + 1; \
Line 159... Line 156...
159
	(__extension__ ({const char *__in = (__s); \
156
	(__extension__ ({const char *__in = (__s); \
160
			 size_t __len = strnlen (__in, (__n)) + 1; \
157
			 size_t __len = strnlen (__in, (__n)) + 1; \
161
			 char *__out = (char *) __builtin_alloca (__len); \
158
			 char *__out = (char *) __builtin_alloca (__len); \
162
			 __out[__len-1] = '\0'; \
159
			 __out[__len-1] = '\0'; \
163
			 (char *) memcpy (__out, __in, __len-1);}))
160
			 (char *) memcpy (__out, __in, __len-1);}))
164
#endif /* _GNU_SOURCE && __GNUC__ */
161
#endif /* __GNU_VISIBLE && __GNUC__ */
Line 165... Line 162...
165
 
162
 
166
/* There are two common basename variants.  If you do NOT #include 
163
/* There are two common basename variants.  If you do NOT #include 
Line 167... Line 164...
167
   and you do
164
   and you do