diff options
| author | sin | 2015-03-14 09:38:11 +0000 |
|---|---|---|
| committer | sin | 2015-03-14 09:38:22 +0000 |
| commit | 37eb2c9c1d71c2ff21605ecaf46cdd926244d361 (patch) | |
| tree | 9670721c2b0caa931efa40f00a64a3fadf6c9619 /include/string.h | |
| parent | d12254166a55d17932ea4143fbd50fb52539ff8b (diff) | |
Add __artificial__ to aid in debugging
Diffstat (limited to 'include/string.h')
| -rw-r--r-- | include/string.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/include/string.h b/include/string.h index f11e388..e6fceb3 100644 --- a/include/string.h +++ b/include/string.h | |||
| @@ -21,7 +21,7 @@ extern "C" { | |||
| 21 | 21 | ||
| 22 | extern void *__memcpy_orig(void *, const void *, size_t) | 22 | extern void *__memcpy_orig(void *, const void *, size_t) |
| 23 | __asm__(__USER_LABEL_PREFIX__ "memcpy"); | 23 | __asm__(__USER_LABEL_PREFIX__ "memcpy"); |
| 24 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 24 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 25 | void *memcpy(void *dest, const void *src, size_t n) | 25 | void *memcpy(void *dest, const void *src, size_t n) |
| 26 | { | 26 | { |
| 27 | size_t bos = __builtin_object_size(dest, 0); | 27 | size_t bos = __builtin_object_size(dest, 0); |
| @@ -40,7 +40,7 @@ void *memcpy(void *dest, const void *src, size_t n) | |||
| 40 | 40 | ||
| 41 | extern void *__memmove_orig(void *, const void *, size_t) | 41 | extern void *__memmove_orig(void *, const void *, size_t) |
| 42 | __asm__(__USER_LABEL_PREFIX__ "memmove"); | 42 | __asm__(__USER_LABEL_PREFIX__ "memmove"); |
| 43 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 43 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 44 | void *memmove(void *dest, const void *src, size_t n) | 44 | void *memmove(void *dest, const void *src, size_t n) |
| 45 | { | 45 | { |
| 46 | size_t bos = __builtin_object_size(dest, 0); | 46 | size_t bos = __builtin_object_size(dest, 0); |
| @@ -52,7 +52,7 @@ void *memmove(void *dest, const void *src, size_t n) | |||
| 52 | 52 | ||
| 53 | extern void *__memset_orig(void *, int, size_t) | 53 | extern void *__memset_orig(void *, int, size_t) |
| 54 | __asm__(__USER_LABEL_PREFIX__ "memset"); | 54 | __asm__(__USER_LABEL_PREFIX__ "memset"); |
| 55 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 55 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 56 | void *memset(void *dest, int c, size_t n) | 56 | void *memset(void *dest, int c, size_t n) |
| 57 | { | 57 | { |
| 58 | size_t bos = __builtin_object_size(dest, 0); | 58 | size_t bos = __builtin_object_size(dest, 0); |
| @@ -64,7 +64,7 @@ void *memset(void *dest, int c, size_t n) | |||
| 64 | 64 | ||
| 65 | extern char *__stpcpy_orig(char *, const char *) | 65 | extern char *__stpcpy_orig(char *, const char *) |
| 66 | __asm__(__USER_LABEL_PREFIX__ "stpcpy"); | 66 | __asm__(__USER_LABEL_PREFIX__ "stpcpy"); |
| 67 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 67 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 68 | char *stpcpy(char *dest, const char *src) | 68 | char *stpcpy(char *dest, const char *src) |
| 69 | { | 69 | { |
| 70 | size_t bos = __builtin_object_size(dest, 0); | 70 | size_t bos = __builtin_object_size(dest, 0); |
| @@ -76,7 +76,7 @@ char *stpcpy(char *dest, const char *src) | |||
| 76 | 76 | ||
| 77 | extern char *__stpncpy_orig(char *, const char *, size_t) | 77 | extern char *__stpncpy_orig(char *, const char *, size_t) |
| 78 | __asm__(__USER_LABEL_PREFIX__ "stpncpy"); | 78 | __asm__(__USER_LABEL_PREFIX__ "stpncpy"); |
| 79 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 79 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 80 | char *stpncpy(char *dest, const char *src, size_t n) | 80 | char *stpncpy(char *dest, const char *src, size_t n) |
| 81 | { | 81 | { |
| 82 | size_t bos = __builtin_object_size(dest, 0); | 82 | size_t bos = __builtin_object_size(dest, 0); |
| @@ -88,7 +88,7 @@ char *stpncpy(char *dest, const char *src, size_t n) | |||
| 88 | 88 | ||
| 89 | extern char *__strcat_orig(char *, const char *) | 89 | extern char *__strcat_orig(char *, const char *) |
| 90 | __asm__(__USER_LABEL_PREFIX__ "strcat"); | 90 | __asm__(__USER_LABEL_PREFIX__ "strcat"); |
| 91 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 91 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 92 | char *strcat(char *dest, const char *src) | 92 | char *strcat(char *dest, const char *src) |
| 93 | { | 93 | { |
| 94 | size_t bos = __builtin_object_size(dest, 0); | 94 | size_t bos = __builtin_object_size(dest, 0); |
| @@ -100,7 +100,7 @@ char *strcat(char *dest, const char *src) | |||
| 100 | 100 | ||
| 101 | extern char *__strcpy_orig(char *, const char *) | 101 | extern char *__strcpy_orig(char *, const char *) |
| 102 | __asm__(__USER_LABEL_PREFIX__ "strcpy"); | 102 | __asm__(__USER_LABEL_PREFIX__ "strcpy"); |
| 103 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 103 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 104 | char *strcpy(char *dest, const char *src) | 104 | char *strcpy(char *dest, const char *src) |
| 105 | { | 105 | { |
| 106 | size_t bos = __builtin_object_size(dest, 0); | 106 | size_t bos = __builtin_object_size(dest, 0); |
| @@ -112,7 +112,7 @@ char *strcpy(char *dest, const char *src) | |||
| 112 | 112 | ||
| 113 | extern char *__strncat_orig(char *, const char *, size_t) | 113 | extern char *__strncat_orig(char *, const char *, size_t) |
| 114 | __asm__(__USER_LABEL_PREFIX__ "strncat"); | 114 | __asm__(__USER_LABEL_PREFIX__ "strncat"); |
| 115 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 115 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 116 | char *strncat(char *dest, const char *src, size_t n) | 116 | char *strncat(char *dest, const char *src, size_t n) |
| 117 | { | 117 | { |
| 118 | size_t bos = __builtin_object_size(dest, 0); | 118 | size_t bos = __builtin_object_size(dest, 0); |
| @@ -131,7 +131,7 @@ char *strncat(char *dest, const char *src, size_t n) | |||
| 131 | 131 | ||
| 132 | extern char *__strncpy_orig(char *, const char *, size_t) | 132 | extern char *__strncpy_orig(char *, const char *, size_t) |
| 133 | __asm__(__USER_LABEL_PREFIX__ "strncpy"); | 133 | __asm__(__USER_LABEL_PREFIX__ "strncpy"); |
| 134 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 134 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 135 | char *strncpy(char *dest, const char *src, size_t n) | 135 | char *strncpy(char *dest, const char *src, size_t n) |
| 136 | { | 136 | { |
| 137 | size_t bos = __builtin_object_size(dest, 0); | 137 | size_t bos = __builtin_object_size(dest, 0); |
| @@ -145,7 +145,7 @@ char *strncpy(char *dest, const char *src, size_t n) | |||
| 145 | #undef mempcpy | 145 | #undef mempcpy |
| 146 | extern void *__mempcpy_orig(void *, const void *, size_t n) | 146 | extern void *__mempcpy_orig(void *, const void *, size_t n) |
| 147 | __asm__(__USER_LABEL_PREFIX__ "mempcpy"); | 147 | __asm__(__USER_LABEL_PREFIX__ "mempcpy"); |
| 148 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 148 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 149 | void *mempcpy(void *dest, const void *src, size_t n) | 149 | void *mempcpy(void *dest, const void *src, size_t n) |
| 150 | { | 150 | { |
| 151 | size_t bos = __builtin_object_size(dest, 0); | 151 | size_t bos = __builtin_object_size(dest, 0); |
| @@ -161,7 +161,7 @@ void *mempcpy(void *dest, const void *src, size_t n) | |||
| 161 | #undef strlcpy | 161 | #undef strlcpy |
| 162 | extern size_t __strlcat_orig(char *, const char *, size_t) | 162 | extern size_t __strlcat_orig(char *, const char *, size_t) |
| 163 | __asm__(__USER_LABEL_PREFIX__ "strlcat"); | 163 | __asm__(__USER_LABEL_PREFIX__ "strlcat"); |
| 164 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 164 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 165 | size_t strlcat(char *dest, const char *src, size_t n) | 165 | size_t strlcat(char *dest, const char *src, size_t n) |
| 166 | { | 166 | { |
| 167 | size_t bos = __builtin_object_size(dest, 0); | 167 | size_t bos = __builtin_object_size(dest, 0); |
| @@ -173,7 +173,7 @@ size_t strlcat(char *dest, const char *src, size_t n) | |||
| 173 | 173 | ||
| 174 | extern size_t __strlcpy_orig(char *, const char *, size_t) | 174 | extern size_t __strlcpy_orig(char *, const char *, size_t) |
| 175 | __asm__(__USER_LABEL_PREFIX__ "strlcpy"); | 175 | __asm__(__USER_LABEL_PREFIX__ "strlcpy"); |
| 176 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 176 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 177 | size_t strlcpy(char *dest, const char *src, size_t n) | 177 | size_t strlcpy(char *dest, const char *src, size_t n) |
| 178 | { | 178 | { |
| 179 | size_t bos = __builtin_object_size(dest, 0); | 179 | size_t bos = __builtin_object_size(dest, 0); |
