Subversion Repositories Kolibri OS

Rev

Rev 5056 | Rev 6082 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5056 Rev 5270
Line 4... Line 4...
4
 
4
 
5
#include 	/* for inline */
5
#include 	/* for inline */
6
#include 	/* for size_t */
6
#include 	/* for size_t */
7
#include 	/* for NULL */
7
#include 	/* for NULL */
-
 
8
#include 
Line 8... Line 9...
8
#include 
9
#include 
9
 
10
 
Line 10... Line 11...
10
extern char *strndup_user(const char __user *, long);
11
extern char *strndup_user(const char __user *, long);
Line 38... Line 39...
38
#endif
39
#endif
39
#ifndef __HAVE_ARCH_STRNCMP
40
#ifndef __HAVE_ARCH_STRNCMP
40
extern int strncmp(const char *,const char *,__kernel_size_t);
41
extern int strncmp(const char *,const char *,__kernel_size_t);
41
#endif
42
#endif
42
#ifndef __HAVE_ARCH_STRNICMP
43
#ifndef __HAVE_ARCH_STRNICMP
43
extern int strnicmp(const char *, const char *, __kernel_size_t);
44
#define strnicmp strncasecmp
44
#endif
45
#endif
45
#ifndef __HAVE_ARCH_STRCASECMP
46
#ifndef __HAVE_ARCH_STRCASECMP
46
extern int strcasecmp(const char *s1, const char *s2);
47
extern int strcasecmp(const char *s1, const char *s2);
47
#endif
48
#endif
48
#ifndef __HAVE_ARCH_STRNCASECMP
49
#ifndef __HAVE_ARCH_STRNCASECMP
Line 141... Line 142...
141
static inline bool strstarts(const char *str, const char *prefix)
142
static inline bool strstarts(const char *str, const char *prefix)
142
{
143
{
143
	return strncmp(str, prefix, strlen(prefix)) == 0;
144
	return strncmp(str, prefix, strlen(prefix)) == 0;
144
}
145
}
Line 145... Line 146...
145
 
146
 
-
 
147
size_t memweight(const void *ptr, size_t bytes);
Line 146... Line 148...
146
extern size_t memweight(const void *ptr, size_t bytes);
148
void memzero_explicit(void *s, size_t count);
147
 
149
 
148
/**
150
/**
149
 * kbasename - return the last part of a pathname.
151
 * kbasename - return the last part of a pathname.