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