string.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef _H8300_STRING_H_
  2. #define _H8300_STRING_H_
  3. #ifdef __KERNEL__ /* only set these up for kernel code */
  4. #include <asm/setup.h>
  5. #include <asm/page.h>
  6. #define __HAVE_ARCH_MEMSET
  7. extern void * memset(void * s, int c, size_t count);
  8. #define __HAVE_ARCH_MEMCPY
  9. extern void * memcpy(void *d, const void *s, size_t count);
  10. #else /* KERNEL */
  11. /*
  12. * let user libraries deal with these,
  13. * IMHO the kernel has no place defining these functions for user apps
  14. */
  15. #define __HAVE_ARCH_STRCPY 1
  16. #define __HAVE_ARCH_STRNCPY 1
  17. #define __HAVE_ARCH_STRCAT 1
  18. #define __HAVE_ARCH_STRNCAT 1
  19. #define __HAVE_ARCH_STRCMP 1
  20. #define __HAVE_ARCH_STRNCMP 1
  21. #define __HAVE_ARCH_STRNICMP 1
  22. #define __HAVE_ARCH_STRCHR 1
  23. #define __HAVE_ARCH_STRRCHR 1
  24. #define __HAVE_ARCH_STRSTR 1
  25. #define __HAVE_ARCH_STRLEN 1
  26. #define __HAVE_ARCH_STRNLEN 1
  27. #define __HAVE_ARCH_MEMSET 1
  28. #define __HAVE_ARCH_MEMCPY 1
  29. #define __HAVE_ARCH_MEMMOVE 1
  30. #define __HAVE_ARCH_MEMSCAN 1
  31. #define __HAVE_ARCH_MEMCMP 1
  32. #define __HAVE_ARCH_MEMCHR 1
  33. #define __HAVE_ARCH_STRTOK 1
  34. #endif /* KERNEL */
  35. #endif /* _M68K_STRING_H_ */