linux-old/include/linux/string.h
<<
>>
Prefs
   1#ifndef _LINUX_STRING_H_
   2#define _LINUX_STRING_H_
   3
   4/* We don't want strings.h stuff being user by user stuff by accident */
   5
   6#ifdef __KERNEL__
   7
   8#include <linux/types.h>        /* for size_t */
   9#include <linux/stddef.h>       /* for NULL */
  10
  11#ifdef __cplusplus
  12extern "C" {
  13#endif
  14
  15extern char * ___strtok;
  16extern char * strpbrk(const char *,const char *);
  17extern char * strtok(char *,const char *);
  18extern char * strsep(char **,const char *);
  19extern __kernel_size_t strspn(const char *,const char *);
  20
  21
  22/*
  23 * Include machine specific inline routines
  24 */
  25#include <asm/string.h>
  26
  27#ifndef __HAVE_ARCH_STRCPY
  28extern char * strcpy(char *,const char *);
  29#endif
  30#ifndef __HAVE_ARCH_STRNCPY
  31extern char * strncpy(char *,const char *, __kernel_size_t);
  32#endif
  33#ifndef __HAVE_ARCH_STRCAT
  34extern char * strcat(char *, const char *);
  35#endif
  36#ifndef __HAVE_ARCH_STRNCAT
  37extern char * strncat(char *, const char *, __kernel_size_t);
  38#endif
  39#ifndef __HAVE_ARCH_STRCMP
  40extern int strcmp(const char *,const char *);
  41#endif
  42#ifndef __HAVE_ARCH_STRNCMP
  43extern int strncmp(const char *,const char *,__kernel_size_t);
  44#endif
  45#ifndef __HAVE_ARCH_STRNICMP
  46extern int strnicmp(const char *, const char *, __kernel_size_t);
  47#endif
  48#ifndef __HAVE_ARCH_STRCHR
  49extern char * strchr(const char *,int);
  50#endif
  51#ifndef __HAVE_ARCH_STRRCHR
  52extern char * strrchr(const char *,int);
  53#endif
  54#ifndef __HAVE_ARCH_STRSTR
  55extern char * strstr(const char *,const char *);
  56#endif
  57#ifndef __HAVE_ARCH_STRLEN
  58extern __kernel_size_t strlen(const char *);
  59#endif
  60#ifndef __HAVE_ARCH_STRNLEN
  61extern __kernel_size_t strnlen(const char *,__kernel_size_t);
  62#endif
  63
  64#ifndef __HAVE_ARCH_MEMSET
  65extern void * memset(void *,int,__kernel_size_t);
  66#endif
  67#ifndef __HAVE_ARCH_MEMCPY
  68extern void * memcpy(void *,const void *,__kernel_size_t);
  69#endif
  70#ifndef __HAVE_ARCH_MEMMOVE
  71extern void * memmove(void *,const void *,__kernel_size_t);
  72#endif
  73#ifndef __HAVE_ARCH_MEMSCAN
  74extern void * memscan(void *,int,__kernel_size_t);
  75#endif
  76#ifndef __HAVE_ARCH_MEMCMP
  77extern int memcmp(const void *,const void *,__kernel_size_t);
  78#endif
  79#ifndef __HAVE_ARCH_MEMCHR
  80extern void * memchr(const void *,int,__kernel_size_t);
  81#endif
  82
  83#ifdef __cplusplus
  84}
  85#endif
  86
  87#endif
  88#endif /* _LINUX_STRING_H_ */
  89
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.