~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/asm-generic/string.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/asm-generic/string.h (Version linux-6.12-rc7) and /include/asm-alpha/string.h (Version linux-2.4.37.11)


  1 #ifndef __ASM_GENERIC_STRING_H                 !!   1 #ifndef __ALPHA_STRING_H__
  2 #define __ASM_GENERIC_STRING_H                 !!   2 #define __ALPHA_STRING_H__
                                                   >>   3 
                                                   >>   4 #ifdef __KERNEL__
                                                   >>   5 
  3 /*                                                  6 /*
  4  * The kernel provides all required functions  !!   7  * GCC of any recent vintage doesn't do stupid things with bcopy.
                                                   >>   8  * EGCS 1.1 knows all about expanding memcpy inline, others don't.
  5  *                                                  9  *
  6  * Architectures probably want to provide at l !!  10  * Similarly for a memset with data = 0.
  7  * memcpy and memset functions though.         << 
  8  */                                                11  */
  9                                                    12 
 10 #endif /* __ASM_GENERIC_STRING_H */            !!  13 #define __HAVE_ARCH_MEMCPY
                                                   >>  14 extern void * memcpy(void *, const void *, size_t);
                                                   >>  15 #define __HAVE_ARCH_MEMMOVE
                                                   >>  16 extern void * memmove(void *, const void *, size_t);
                                                   >>  17 
                                                   >>  18 /* For backward compatibility with modules.  Unused otherwise.  */
                                                   >>  19 extern void * __memcpy(void *, const void *, size_t);
                                                   >>  20 
                                                   >>  21 #define memcpy __builtin_memcpy
                                                   >>  22 
                                                   >>  23 #define __HAVE_ARCH_MEMSET
                                                   >>  24 extern void * __constant_c_memset(void *, unsigned long, size_t);
                                                   >>  25 extern void * __memset(void *, int, size_t);
                                                   >>  26 extern void * memset(void *, int, size_t);
                                                   >>  27 
                                                   >>  28 #define memset(s, c, n)                                                     \
                                                   >>  29 (__builtin_constant_p(c)                                                    \
                                                   >>  30  ? (__builtin_constant_p(n) && (c) == 0                                     \
                                                   >>  31     ? __builtin_memset((s),0,(n))                                           \
                                                   >>  32     : __constant_c_memset((s),0x0101010101010101UL*(unsigned char)(c),(n))) \
                                                   >>  33  : __memset((s),(c),(n)))
                                                   >>  34 
                                                   >>  35 #define __HAVE_ARCH_STRCPY
                                                   >>  36 extern char * strcpy(char *,const char *);
                                                   >>  37 #define __HAVE_ARCH_STRNCPY
                                                   >>  38 extern char * strncpy(char *, const char *, size_t);
                                                   >>  39 #define __HAVE_ARCH_STRCAT
                                                   >>  40 extern char * strcat(char *, const char *);
                                                   >>  41 #define __HAVE_ARCH_STRNCAT
                                                   >>  42 extern char * strncat(char *, const char *, size_t);
                                                   >>  43 #define __HAVE_ARCH_STRCHR
                                                   >>  44 extern char * strchr(const char *,int);
                                                   >>  45 #define __HAVE_ARCH_STRRCHR
                                                   >>  46 extern char * strrchr(const char *,int);
                                                   >>  47 #define __HAVE_ARCH_STRLEN
                                                   >>  48 extern size_t strlen(const char *);
                                                   >>  49 #define __HAVE_ARCH_MEMCHR
                                                   >>  50 extern void * memchr(const void *, int, size_t);
                                                   >>  51 
                                                   >>  52 /* The following routine is like memset except that it writes 16-bit
                                                   >>  53    aligned values.  The DEST and COUNT parameters must be even for 
                                                   >>  54    correct operation.  */
                                                   >>  55 
                                                   >>  56 #define __HAVE_ARCH_MEMSETW
                                                   >>  57 extern void * __memsetw(void *dest, unsigned short, size_t count);
                                                   >>  58 
                                                   >>  59 #define memsetw(s, c, n)                                                 \
                                                   >>  60 (__builtin_constant_p(c)                                                 \
                                                   >>  61  ? __constant_c_memset((s),0x0001000100010001UL*(unsigned short)(c),(n)) \
                                                   >>  62  : __memsetw((s),(c),(n)))
                                                   >>  63 
                                                   >>  64 extern int strcasecmp(const char *, const char *);
                                                   >>  65 
                                                   >>  66 #endif /* __KERNEL__ */
                                                   >>  67 
                                                   >>  68 #endif /* __ALPHA_STRING_H__ */
 11                                                    69 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php