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/unistd.h | |
| parent | d12254166a55d17932ea4143fbd50fb52539ff8b (diff) | |
Add __artificial__ to aid in debugging
Diffstat (limited to 'include/unistd.h')
| -rw-r--r-- | include/unistd.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/include/unistd.h b/include/unistd.h index 0e5119e..df6c676 100644 --- a/include/unistd.h +++ b/include/unistd.h | |||
| @@ -23,7 +23,7 @@ extern "C" { | |||
| 23 | 23 | ||
| 24 | extern size_t __confstr_orig(int, char *, size_t) | 24 | extern size_t __confstr_orig(int, char *, size_t) |
| 25 | __asm__(__USER_LABEL_PREFIX__ "confstr"); | 25 | __asm__(__USER_LABEL_PREFIX__ "confstr"); |
| 26 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 26 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 27 | size_t confstr(int name, char *buf, size_t len) | 27 | size_t confstr(int name, char *buf, size_t len) |
| 28 | { | 28 | { |
| 29 | size_t bos = __builtin_object_size(buf, 0); | 29 | size_t bos = __builtin_object_size(buf, 0); |
| @@ -35,7 +35,7 @@ size_t confstr(int name, char *buf, size_t len) | |||
| 35 | 35 | ||
| 36 | extern char *__getcwd_orig(char *, size_t) | 36 | extern char *__getcwd_orig(char *, size_t) |
| 37 | __asm__(__USER_LABEL_PREFIX__ "getcwd"); | 37 | __asm__(__USER_LABEL_PREFIX__ "getcwd"); |
| 38 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 38 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 39 | char *getcwd(char *buf, size_t len) | 39 | char *getcwd(char *buf, size_t len) |
| 40 | { | 40 | { |
| 41 | size_t bos = __builtin_object_size(buf, 0); | 41 | size_t bos = __builtin_object_size(buf, 0); |
| @@ -49,7 +49,7 @@ char *getcwd(char *buf, size_t len) | |||
| 49 | #undef getdomainname | 49 | #undef getdomainname |
| 50 | extern int __getdomainname_orig(char *, size_t) | 50 | extern int __getdomainname_orig(char *, size_t) |
| 51 | __asm__(__USER_LABEL_PREFIX__ "getdomainname"); | 51 | __asm__(__USER_LABEL_PREFIX__ "getdomainname"); |
| 52 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 52 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 53 | int getdomainname(char *name, size_t len) | 53 | int getdomainname(char *name, size_t len) |
| 54 | { | 54 | { |
| 55 | size_t bos = __builtin_object_size(name, 0); | 55 | size_t bos = __builtin_object_size(name, 0); |
| @@ -62,7 +62,7 @@ int getdomainname(char *name, size_t len) | |||
| 62 | 62 | ||
| 63 | extern int __getgroups_orig(int, gid_t *) | 63 | extern int __getgroups_orig(int, gid_t *) |
| 64 | __asm__(__USER_LABEL_PREFIX__ "getgroups"); | 64 | __asm__(__USER_LABEL_PREFIX__ "getgroups"); |
| 65 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 65 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 66 | int getgroups(int len, gid_t *set) | 66 | int getgroups(int len, gid_t *set) |
| 67 | { | 67 | { |
| 68 | size_t bos = __builtin_object_size(set, 0); | 68 | size_t bos = __builtin_object_size(set, 0); |
| @@ -74,7 +74,7 @@ int getgroups(int len, gid_t *set) | |||
| 74 | 74 | ||
| 75 | extern int __gethostname_orig(char *, size_t) | 75 | extern int __gethostname_orig(char *, size_t) |
| 76 | __asm__(__USER_LABEL_PREFIX__ "gethostname"); | 76 | __asm__(__USER_LABEL_PREFIX__ "gethostname"); |
| 77 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 77 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 78 | int gethostname(char *name, size_t len) | 78 | int gethostname(char *name, size_t len) |
| 79 | { | 79 | { |
| 80 | size_t bos = __builtin_object_size(name, 0); | 80 | size_t bos = __builtin_object_size(name, 0); |
| @@ -86,7 +86,7 @@ int gethostname(char *name, size_t len) | |||
| 86 | 86 | ||
| 87 | extern int __getlogin_r_orig(char *, size_t) | 87 | extern int __getlogin_r_orig(char *, size_t) |
| 88 | __asm__(__USER_LABEL_PREFIX__ "getlogin_r"); | 88 | __asm__(__USER_LABEL_PREFIX__ "getlogin_r"); |
| 89 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 89 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 90 | int getlogin_r(char *name, size_t len) | 90 | int getlogin_r(char *name, size_t len) |
| 91 | { | 91 | { |
| 92 | size_t bos = __builtin_object_size(name, 0); | 92 | size_t bos = __builtin_object_size(name, 0); |
| @@ -98,7 +98,7 @@ int getlogin_r(char *name, size_t len) | |||
| 98 | 98 | ||
| 99 | extern ssize_t __pread_orig(int, void *, size_t, off_t) | 99 | extern ssize_t __pread_orig(int, void *, size_t, off_t) |
| 100 | __asm__(__USER_LABEL_PREFIX__ "pread"); | 100 | __asm__(__USER_LABEL_PREFIX__ "pread"); |
| 101 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 101 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 102 | ssize_t pread(int fd, void *buf, size_t n, off_t offset) | 102 | ssize_t pread(int fd, void *buf, size_t n, off_t offset) |
| 103 | { | 103 | { |
| 104 | size_t bos = __builtin_object_size(buf, 0); | 104 | 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) | |||
| 110 | 110 | ||
| 111 | extern ssize_t __read_orig(int, void *, size_t) | 111 | extern ssize_t __read_orig(int, void *, size_t) |
| 112 | __asm__(__USER_LABEL_PREFIX__ "read"); | 112 | __asm__(__USER_LABEL_PREFIX__ "read"); |
| 113 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 113 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 114 | ssize_t read(int fd, void *buf, size_t n) | 114 | ssize_t read(int fd, void *buf, size_t n) |
| 115 | { | 115 | { |
| 116 | size_t bos = __builtin_object_size(buf, 0); | 116 | size_t bos = __builtin_object_size(buf, 0); |
| @@ -122,7 +122,7 @@ ssize_t read(int fd, void *buf, size_t n) | |||
| 122 | 122 | ||
| 123 | extern ssize_t __readlink_orig(const char *, char *, size_t) | 123 | extern ssize_t __readlink_orig(const char *, char *, size_t) |
| 124 | __asm__(__USER_LABEL_PREFIX__ "readlink"); | 124 | __asm__(__USER_LABEL_PREFIX__ "readlink"); |
| 125 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 125 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 126 | ssize_t readlink(const char *path, char *buf, size_t n) | 126 | ssize_t readlink(const char *path, char *buf, size_t n) |
| 127 | { | 127 | { |
| 128 | size_t bos = __builtin_object_size(buf, 0); | 128 | size_t bos = __builtin_object_size(buf, 0); |
| @@ -134,7 +134,7 @@ ssize_t readlink(const char *path, char *buf, size_t n) | |||
| 134 | 134 | ||
| 135 | extern ssize_t __readlinkat_orig(int, const char *, char *, size_t) | 135 | extern ssize_t __readlinkat_orig(int, const char *, char *, size_t) |
| 136 | __asm__(__USER_LABEL_PREFIX__ "readlinkat"); | 136 | __asm__(__USER_LABEL_PREFIX__ "readlinkat"); |
| 137 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 137 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 138 | ssize_t readlinkat(int fd, const char *path, char *buf, size_t n) | 138 | ssize_t readlinkat(int fd, const char *path, char *buf, size_t n) |
| 139 | { | 139 | { |
| 140 | size_t bos = __builtin_object_size(buf, 0); | 140 | 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) | |||
| 146 | 146 | ||
| 147 | extern int __ttyname_r_orig(int, char *, size_t) | 147 | extern int __ttyname_r_orig(int, char *, size_t) |
| 148 | __asm__(__USER_LABEL_PREFIX__ "ttyname_r"); | 148 | __asm__(__USER_LABEL_PREFIX__ "ttyname_r"); |
| 149 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 149 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 150 | int ttyname_r(int fd, char *name, size_t n) | 150 | int ttyname_r(int fd, char *name, size_t n) |
| 151 | { | 151 | { |
| 152 | size_t bos = __builtin_object_size(name, 0); | 152 | size_t bos = __builtin_object_size(name, 0); |
| @@ -158,7 +158,7 @@ int ttyname_r(int fd, char *name, size_t n) | |||
| 158 | 158 | ||
| 159 | extern ssize_t __write_orig(int, const void *, size_t) | 159 | extern ssize_t __write_orig(int, const void *, size_t) |
| 160 | __asm__(__USER_LABEL_PREFIX__ "write"); | 160 | __asm__(__USER_LABEL_PREFIX__ "write"); |
| 161 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 161 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 162 | ssize_t write(int fd, const void *buf, size_t n) | 162 | ssize_t write(int fd, const void *buf, size_t n) |
| 163 | { | 163 | { |
| 164 | size_t bos = __builtin_object_size(buf, 0); | 164 | size_t bos = __builtin_object_size(buf, 0); |
