fortify-headers

standalone fortify-source implementation
git clone git://git.2f30.org/fortify-headers
Log | Files | Refs | README | LICENSE

commit 37eb2c9c1d71c2ff21605ecaf46cdd926244d361
parent d12254166a55d17932ea4143fbd50fb52539ff8b
Author: sin <sin@2f30.org>
Date:   Sat, 14 Mar 2015 09:38:11 +0000

Add __artificial__ to aid in debugging

Diffstat:
Minclude/poll.h | 4++--
Minclude/stdio.h | 14+++++++-------
Minclude/stdlib.h | 2+-
Minclude/string.h | 24++++++++++++------------
Minclude/strings.h | 4++--
Minclude/sys/select.h | 4++--
Minclude/sys/socket.h | 8++++----
Minclude/unistd.h | 24++++++++++++------------
Minclude/wchar.h | 32++++++++++++++++----------------
9 files changed, 58 insertions(+), 58 deletions(-)

diff --git a/include/poll.h b/include/poll.h @@ -13,7 +13,7 @@ extern "C" { extern int __poll_orig(struct pollfd *, nfds_t, int) __asm__(__USER_LABEL_PREFIX__ "poll"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) int poll(struct pollfd *fds, nfds_t nfds, int timeout) { __typeof__(sizeof 0) bos = __builtin_object_size(fds, 0); @@ -27,7 +27,7 @@ int poll(struct pollfd *fds, nfds_t nfds, int timeout) #undef ppoll extern int __ppoll_orig(struct pollfd *, nfds_t, const struct timespec *, const sigset_t *) __asm__(__USER_LABEL_PREFIX__ "ppoll"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, const sigset_t *mask) { __typeof__(sizeof 0) bos = __builtin_object_size(fds, 0); diff --git a/include/stdio.h b/include/stdio.h @@ -19,7 +19,7 @@ extern "C" { extern char *__fgets_orig(char *, int, FILE *) __asm__(__USER_LABEL_PREFIX__ "fgets"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline____,__artificial__)) char *fgets(char *s, int n, FILE *fp) { size_t bos = __builtin_object_size(s, 0); @@ -31,7 +31,7 @@ char *fgets(char *s, int n, FILE *fp) extern size_t __fread_orig(void *, size_t, size_t, FILE *) __asm__(__USER_LABEL_PREFIX__ "fread"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) size_t fread(void *dst, size_t n, size_t nmemb, FILE *fp) { size_t bos = __builtin_object_size(dst, 0); @@ -45,7 +45,7 @@ size_t fread(void *dst, size_t n, size_t nmemb, FILE *fp) extern size_t __fwrite_orig(const void *, size_t, size_t, FILE *) __asm__(__USER_LABEL_PREFIX__ "fwrite"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) size_t fwrite(const void *dst, size_t n, size_t nmemb, FILE *fp) { size_t bos = __builtin_object_size(dst, 0); @@ -59,7 +59,7 @@ size_t fwrite(const void *dst, size_t n, size_t nmemb, FILE *fp) extern int __vsnprintf_orig(char *, size_t, const char *, __builtin_va_list) __asm__(__USER_LABEL_PREFIX__ "vsnprintf"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) int vsnprintf(char *s, size_t n, const char *fmt, __builtin_va_list ap) { size_t bos = __builtin_object_size(s, 0); @@ -71,7 +71,7 @@ int vsnprintf(char *s, size_t n, const char *fmt, __builtin_va_list ap) extern int __vsprintf_orig(char *, const char *, __builtin_va_list) __asm__(__USER_LABEL_PREFIX__ "vsprintf"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) int vsprintf(char *s, const char *fmt, __builtin_va_list ap) { size_t bos = __builtin_object_size(s, 0); @@ -89,7 +89,7 @@ int vsprintf(char *s, const char *fmt, __builtin_va_list ap) extern int __snprintf_orig(char *, size_t, const char *, ...) __asm__(__USER_LABEL_PREFIX__ "snprintf"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) int snprintf(char *s, size_t n, const char *fmt, ...) { size_t bos = __builtin_object_size(s, 0); @@ -101,7 +101,7 @@ int snprintf(char *s, size_t n, const char *fmt, ...) extern int __sprintf_orig(char *, const char *, ...) __asm__(__USER_LABEL_PREFIX__ "sprintf"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) int sprintf(char *s, const char *fmt, ...) { size_t bos = __builtin_object_size(s, 0); diff --git a/include/stdlib.h b/include/stdlib.h @@ -17,7 +17,7 @@ extern "C" { #undef realpath extern char *__realpath_orig(const char *, char *) __asm__(__USER_LABEL_PREFIX__ "realpath"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) char *realpath(const char *path, char *resolved) { size_t bos; diff --git a/include/string.h b/include/string.h @@ -21,7 +21,7 @@ extern "C" { extern void *__memcpy_orig(void *, const void *, size_t) __asm__(__USER_LABEL_PREFIX__ "memcpy"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) void *memcpy(void *dest, const void *src, size_t n) { size_t bos = __builtin_object_size(dest, 0); @@ -40,7 +40,7 @@ void *memcpy(void *dest, const void *src, size_t n) extern void *__memmove_orig(void *, const void *, size_t) __asm__(__USER_LABEL_PREFIX__ "memmove"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) void *memmove(void *dest, const void *src, size_t n) { size_t bos = __builtin_object_size(dest, 0); @@ -52,7 +52,7 @@ void *memmove(void *dest, const void *src, size_t n) extern void *__memset_orig(void *, int, size_t) __asm__(__USER_LABEL_PREFIX__ "memset"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) void *memset(void *dest, int c, size_t n) { size_t bos = __builtin_object_size(dest, 0); @@ -64,7 +64,7 @@ void *memset(void *dest, int c, size_t n) extern char *__stpcpy_orig(char *, const char *) __asm__(__USER_LABEL_PREFIX__ "stpcpy"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) char *stpcpy(char *dest, const char *src) { size_t bos = __builtin_object_size(dest, 0); @@ -76,7 +76,7 @@ char *stpcpy(char *dest, const char *src) extern char *__stpncpy_orig(char *, const char *, size_t) __asm__(__USER_LABEL_PREFIX__ "stpncpy"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) char *stpncpy(char *dest, const char *src, size_t n) { size_t bos = __builtin_object_size(dest, 0); @@ -88,7 +88,7 @@ char *stpncpy(char *dest, const char *src, size_t n) extern char *__strcat_orig(char *, const char *) __asm__(__USER_LABEL_PREFIX__ "strcat"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) char *strcat(char *dest, const char *src) { size_t bos = __builtin_object_size(dest, 0); @@ -100,7 +100,7 @@ char *strcat(char *dest, const char *src) extern char *__strcpy_orig(char *, const char *) __asm__(__USER_LABEL_PREFIX__ "strcpy"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) char *strcpy(char *dest, const char *src) { size_t bos = __builtin_object_size(dest, 0); @@ -112,7 +112,7 @@ char *strcpy(char *dest, const char *src) extern char *__strncat_orig(char *, const char *, size_t) __asm__(__USER_LABEL_PREFIX__ "strncat"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) char *strncat(char *dest, const char *src, size_t n) { size_t bos = __builtin_object_size(dest, 0); @@ -131,7 +131,7 @@ char *strncat(char *dest, const char *src, size_t n) extern char *__strncpy_orig(char *, const char *, size_t) __asm__(__USER_LABEL_PREFIX__ "strncpy"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) char *strncpy(char *dest, const char *src, size_t n) { size_t bos = __builtin_object_size(dest, 0); @@ -145,7 +145,7 @@ char *strncpy(char *dest, const char *src, size_t n) #undef mempcpy extern void *__mempcpy_orig(void *, const void *, size_t n) __asm__(__USER_LABEL_PREFIX__ "mempcpy"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) void *mempcpy(void *dest, const void *src, size_t n) { size_t bos = __builtin_object_size(dest, 0); @@ -161,7 +161,7 @@ void *mempcpy(void *dest, const void *src, size_t n) #undef strlcpy extern size_t __strlcat_orig(char *, const char *, size_t) __asm__(__USER_LABEL_PREFIX__ "strlcat"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) size_t strlcat(char *dest, const char *src, size_t n) { size_t bos = __builtin_object_size(dest, 0); @@ -173,7 +173,7 @@ size_t strlcat(char *dest, const char *src, size_t n) extern size_t __strlcpy_orig(char *, const char *, size_t) __asm__(__USER_LABEL_PREFIX__ "strlcpy"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) size_t strlcpy(char *dest, const char *src, size_t n) { size_t bos = __builtin_object_size(dest, 0); diff --git a/include/strings.h b/include/strings.h @@ -16,7 +16,7 @@ extern "C" { #undef bzero extern void __bcopy_orig(const void *, void *, size_t) __asm__(__USER_LABEL_PREFIX__ "bcopy"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) void bcopy(const void *src, void *dest, size_t n) { size_t bos = __builtin_object_size(dest, 0); @@ -28,7 +28,7 @@ void bcopy(const void *src, void *dest, size_t n) extern void __bzero_orig(void *, size_t) __asm__(__USER_LABEL_PREFIX__ "bzero"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) void bzero(void *src, size_t n) { size_t bos = __builtin_object_size(src, 0); diff --git a/include/sys/select.h b/include/sys/select.h @@ -9,7 +9,7 @@ extern "C" { #endif -static __inline __attribute__((__always_inline__,__gnu_inline__)) +static __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) int __fortify_FD_CLR(int fd, fd_set *set) { size_t bos = __builtin_object_size(set, 0); @@ -19,7 +19,7 @@ int __fortify_FD_CLR(int fd, fd_set *set) return FD_CLR(fd, set); } -static __inline __attribute__((__always_inline__,__gnu_inline__)) +static __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) int __fortify_FD_SET(int fd, fd_set *set) { size_t bos = __builtin_object_size(set, 0); diff --git a/include/sys/socket.h b/include/sys/socket.h @@ -16,7 +16,7 @@ extern "C" { extern ssize_t __recv_orig(int, void *, size_t, int) __asm__(__USER_LABEL_PREFIX__ "recv"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) ssize_t recv(int sockfd, void *buf, size_t n, int flags) { size_t bos = __builtin_object_size(buf, 0); @@ -28,7 +28,7 @@ ssize_t recv(int sockfd, void *buf, size_t n, int flags) extern ssize_t __recvfrom_orig(int, void *, size_t, int, struct sockaddr *, socklen_t *) __asm__(__USER_LABEL_PREFIX__ "recvfrom"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) ssize_t recvfrom(int sockfd, void *buf, size_t n, int flags, struct sockaddr *sa, socklen_t *salen) { @@ -41,7 +41,7 @@ ssize_t recvfrom(int sockfd, void *buf, size_t n, int flags, extern ssize_t __send_orig(int, const void *, size_t, int) __asm__(__USER_LABEL_PREFIX__ "send"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) ssize_t send(int sockfd, const void *buf, size_t n, int flags) { size_t bos = __builtin_object_size(buf, 0); @@ -53,7 +53,7 @@ ssize_t send(int sockfd, const void *buf, size_t n, int flags) extern ssize_t __sendto_orig(int, const void *, size_t, int, const struct sockaddr *, socklen_t) __asm__(__USER_LABEL_PREFIX__ "sendto"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) ssize_t sendto(int sockfd, const void *buf, size_t n, int flags, const struct sockaddr *sa, socklen_t salen) { diff --git a/include/unistd.h b/include/unistd.h @@ -23,7 +23,7 @@ extern "C" { extern size_t __confstr_orig(int, char *, size_t) __asm__(__USER_LABEL_PREFIX__ "confstr"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) size_t confstr(int name, char *buf, size_t len) { size_t bos = __builtin_object_size(buf, 0); @@ -35,7 +35,7 @@ size_t confstr(int name, char *buf, size_t len) extern char *__getcwd_orig(char *, size_t) __asm__(__USER_LABEL_PREFIX__ "getcwd"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) char *getcwd(char *buf, size_t len) { size_t bos = __builtin_object_size(buf, 0); @@ -49,7 +49,7 @@ char *getcwd(char *buf, size_t len) #undef getdomainname extern int __getdomainname_orig(char *, size_t) __asm__(__USER_LABEL_PREFIX__ "getdomainname"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) int getdomainname(char *name, size_t len) { size_t bos = __builtin_object_size(name, 0); @@ -62,7 +62,7 @@ int getdomainname(char *name, size_t len) extern int __getgroups_orig(int, gid_t *) __asm__(__USER_LABEL_PREFIX__ "getgroups"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) int getgroups(int len, gid_t *set) { size_t bos = __builtin_object_size(set, 0); @@ -74,7 +74,7 @@ int getgroups(int len, gid_t *set) extern int __gethostname_orig(char *, size_t) __asm__(__USER_LABEL_PREFIX__ "gethostname"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) int gethostname(char *name, size_t len) { size_t bos = __builtin_object_size(name, 0); @@ -86,7 +86,7 @@ int gethostname(char *name, size_t len) extern int __getlogin_r_orig(char *, size_t) __asm__(__USER_LABEL_PREFIX__ "getlogin_r"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) int getlogin_r(char *name, size_t len) { size_t bos = __builtin_object_size(name, 0); @@ -98,7 +98,7 @@ int getlogin_r(char *name, size_t len) extern ssize_t __pread_orig(int, void *, size_t, off_t) __asm__(__USER_LABEL_PREFIX__ "pread"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) ssize_t pread(int fd, void *buf, size_t n, off_t offset) { size_t bos = __builtin_object_size(buf, 0); @@ -110,7 +110,7 @@ ssize_t pread(int fd, void *buf, size_t n, off_t offset) extern ssize_t __read_orig(int, void *, size_t) __asm__(__USER_LABEL_PREFIX__ "read"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) ssize_t read(int fd, void *buf, size_t n) { size_t bos = __builtin_object_size(buf, 0); @@ -122,7 +122,7 @@ ssize_t read(int fd, void *buf, size_t n) extern ssize_t __readlink_orig(const char *, char *, size_t) __asm__(__USER_LABEL_PREFIX__ "readlink"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) ssize_t readlink(const char *path, char *buf, size_t n) { size_t bos = __builtin_object_size(buf, 0); @@ -134,7 +134,7 @@ ssize_t readlink(const char *path, char *buf, size_t n) extern ssize_t __readlinkat_orig(int, const char *, char *, size_t) __asm__(__USER_LABEL_PREFIX__ "readlinkat"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) ssize_t readlinkat(int fd, const char *path, char *buf, size_t n) { size_t bos = __builtin_object_size(buf, 0); @@ -146,7 +146,7 @@ ssize_t readlinkat(int fd, const char *path, char *buf, size_t n) extern int __ttyname_r_orig(int, char *, size_t) __asm__(__USER_LABEL_PREFIX__ "ttyname_r"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) int ttyname_r(int fd, char *name, size_t n) { size_t bos = __builtin_object_size(name, 0); @@ -158,7 +158,7 @@ int ttyname_r(int fd, char *name, size_t n) extern ssize_t __write_orig(int, const void *, size_t) __asm__(__USER_LABEL_PREFIX__ "write"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) ssize_t write(int fd, const void *buf, size_t n) { size_t bos = __builtin_object_size(buf, 0); diff --git a/include/wchar.h b/include/wchar.h @@ -29,7 +29,7 @@ extern "C" { extern wchar_t *__fgetws_orig(wchar_t *, int, FILE *) __asm__(__USER_LABEL_PREFIX__ "fgetws"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) wchar_t *fgetws(wchar_t *s, int n, FILE *fp) { size_t bos = __builtin_object_size(s, 0); @@ -41,7 +41,7 @@ wchar_t *fgetws(wchar_t *s, int n, FILE *fp) extern size_t __mbsnrtowcs_orig(wchar_t *, const char **, size_t, size_t, mbstate_t *) __asm__(__USER_LABEL_PREFIX__ "mbsnrtowcs"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) size_t mbsnrtowcs(wchar_t *d, const char **s, size_t n, size_t wn, mbstate_t *st) { size_t bos = __builtin_object_size(d, 0); @@ -62,7 +62,7 @@ size_t mbsnrtowcs(wchar_t *d, const char **s, size_t n, size_t wn, mbstate_t *st extern size_t __mbsrtowcs_orig(wchar_t *, const char **, size_t, mbstate_t *) __asm__(__USER_LABEL_PREFIX__ "mbsrtowcs"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) size_t mbsrtowcs(wchar_t *d, const char **s, size_t wn, mbstate_t *st) { size_t bos = __builtin_object_size(d, 0); @@ -77,7 +77,7 @@ size_t mbsrtowcs(wchar_t *d, const char **s, size_t wn, mbstate_t *st) extern size_t __mbstowcs_orig(wchar_t *, const char *, size_t) __asm__(__USER_LABEL_PREFIX__ "mbstowcs"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) size_t mbstowcs(wchar_t *ws, const char *s, size_t wn) { size_t bos = __builtin_object_size(ws, 0); @@ -89,7 +89,7 @@ size_t mbstowcs(wchar_t *ws, const char *s, size_t wn) extern size_t __wcrtomb_orig(char *, wchar_t, mbstate_t *) __asm__(__USER_LABEL_PREFIX__ "wcrtomb"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) size_t wcrtomb(char *s, wchar_t wc, mbstate_t *st) { size_t bos = __builtin_object_size(s, 0); @@ -101,7 +101,7 @@ size_t wcrtomb(char *s, wchar_t wc, mbstate_t *st) extern wchar_t *__wcscat_orig(wchar_t *, const wchar_t *) __asm__(__USER_LABEL_PREFIX__ "wcscat"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) wchar_t *wcscat(wchar_t *d, const wchar_t *s) { size_t bos = __builtin_object_size(d, 0); @@ -113,7 +113,7 @@ wchar_t *wcscat(wchar_t *d, const wchar_t *s) extern wchar_t *__wcscpy_orig(wchar_t *, const wchar_t *) __asm__(__USER_LABEL_PREFIX__ "wcscpy"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) wchar_t *wcscpy(wchar_t *d, const wchar_t *s) { size_t bos = __builtin_object_size(d, 0); @@ -125,7 +125,7 @@ wchar_t *wcscpy(wchar_t *d, const wchar_t *s) extern wchar_t *__wcsncat_orig(wchar_t *, const wchar_t *, size_t) __asm__(__USER_LABEL_PREFIX__ "wcsncat"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) wchar_t *wcsncat(wchar_t *d, const wchar_t *s, size_t n) { size_t bos = __builtin_object_size(d, 0); @@ -144,7 +144,7 @@ wchar_t *wcsncat(wchar_t *d, const wchar_t *s, size_t n) extern wchar_t *__wcsncpy_orig(wchar_t *, const wchar_t *, size_t) __asm__(__USER_LABEL_PREFIX__ "wcsncpy"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) wchar_t *wcsncpy(wchar_t *d, const wchar_t *s, size_t n) { size_t bos = __builtin_object_size(d, 0); @@ -156,7 +156,7 @@ wchar_t *wcsncpy(wchar_t *d, const wchar_t *s, size_t n) extern size_t __wcsnrtombs_orig(char *, const wchar_t **, size_t, size_t, mbstate_t *) __asm__(__USER_LABEL_PREFIX__ "wcsnrtombs"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) size_t wcsnrtombs(char *d, const wchar_t **s, size_t wn, size_t n, mbstate_t *st) { size_t bos = __builtin_object_size(d, 0); @@ -177,7 +177,7 @@ size_t wcsnrtombs(char *d, const wchar_t **s, size_t wn, size_t n, mbstate_t *st extern size_t __wcsrtombs_orig(char *, const wchar_t **, size_t, mbstate_t *) __asm__(__USER_LABEL_PREFIX__ "wcsrtombs"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) size_t wcsrtombs(char *d, const wchar_t **s, size_t n, mbstate_t *st) { size_t bos = __builtin_object_size(d, 0); @@ -191,7 +191,7 @@ size_t wcsrtombs(char *d, const wchar_t **s, size_t n, mbstate_t *st) extern size_t __wcstombs_orig(char *, const wchar_t *, size_t) __asm__(__USER_LABEL_PREFIX__ "wcstombs"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) size_t wcstombs(char *s, const wchar_t *ws, size_t n) { size_t bos = __builtin_object_size(s, 0); @@ -203,7 +203,7 @@ size_t wcstombs(char *s, const wchar_t *ws, size_t n) extern int __wctomb_orig(char *, wchar_t) __asm__(__USER_LABEL_PREFIX__ "wctomb"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) int wctomb(char *s, wchar_t wc) { size_t bos = __builtin_object_size(s, 0); @@ -215,7 +215,7 @@ int wctomb(char *s, wchar_t wc) extern wchar_t *__wmemcpy_orig(wchar_t *, const wchar_t *, size_t) __asm__(__USER_LABEL_PREFIX__ "wmemcpy"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) wchar_t *wmemcpy(wchar_t *d, const wchar_t *s, size_t n) { size_t bos = __builtin_object_size(d, 0); @@ -227,7 +227,7 @@ wchar_t *wmemcpy(wchar_t *d, const wchar_t *s, size_t n) extern wchar_t *__wmemmove_orig(wchar_t *, const wchar_t *, size_t) __asm__(__USER_LABEL_PREFIX__ "wmemmove"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) wchar_t *wmemmove(wchar_t *d, const wchar_t *s, size_t n) { size_t bos = __builtin_object_size(d, 0); @@ -239,7 +239,7 @@ wchar_t *wmemmove(wchar_t *d, const wchar_t *s, size_t n) extern wchar_t *__wmemset_orig(wchar_t *, wchar_t, size_t) __asm__(__USER_LABEL_PREFIX__ "wmemset"); -extern __inline __attribute__((__always_inline__,__gnu_inline__)) +extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) wchar_t *wmemset(wchar_t *s, wchar_t c, size_t n) { size_t bos = __builtin_object_size(s, 0);