~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to arch/h8300/include/asm/string.h

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

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