summaryrefslogtreecommitdiff
path: root/include/unistd.h
diff options
context:
space:
mode:
authorsin2015-03-14 09:38:11 +0000
committersin2015-03-14 09:38:22 +0000
commit37eb2c9c1d71c2ff21605ecaf46cdd926244d361 (patch)
tree9670721c2b0caa931efa40f00a64a3fadf6c9619 /include/unistd.h
parentd12254166a55d17932ea4143fbd50fb52539ff8b (diff)
Add __artificial__ to aid in debugging
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h24
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
24extern size_t __confstr_orig(int, char *, size_t) 24extern size_t __confstr_orig(int, char *, size_t)
25 __asm__(__USER_LABEL_PREFIX__ "confstr"); 25 __asm__(__USER_LABEL_PREFIX__ "confstr");
26extern __inline __attribute__((__always_inline__,__gnu_inline__)) 26extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__))
27size_t confstr(int name, char *buf, size_t len) 27size_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
36extern char *__getcwd_orig(char *, size_t) 36extern char *__getcwd_orig(char *, size_t)
37 __asm__(__USER_LABEL_PREFIX__ "getcwd"); 37 __asm__(__USER_LABEL_PREFIX__ "getcwd");
38extern __inline __attribute__((__always_inline__,__gnu_inline__)) 38extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__))
39char *getcwd(char *buf, size_t len) 39char *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
50extern int __getdomainname_orig(char *, size_t) 50extern int __getdomainname_orig(char *, size_t)
51 __asm__(__USER_LABEL_PREFIX__ "getdomainname"); 51 __asm__(__USER_LABEL_PREFIX__ "getdomainname");
52extern __inline __attribute__((__always_inline__,__gnu_inline__)) 52extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__))
53int getdomainname(char *name, size_t len) 53int 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
63extern int __getgroups_orig(int, gid_t *) 63extern int __getgroups_orig(int, gid_t *)
64 __asm__(__USER_LABEL_PREFIX__ "getgroups"); 64 __asm__(__USER_LABEL_PREFIX__ "getgroups");
65extern __inline __attribute__((__always_inline__,__gnu_inline__)) 65extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__))
66int getgroups(int len, gid_t *set) 66int 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
75extern int __gethostname_orig(char *, size_t) 75extern int __gethostname_orig(char *, size_t)
76 __asm__(__USER_LABEL_PREFIX__ "gethostname"); 76 __asm__(__USER_LABEL_PREFIX__ "gethostname");
77extern __inline __attribute__((__always_inline__,__gnu_inline__)) 77extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__))
78int gethostname(char *name, size_t len) 78int 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
87extern int __getlogin_r_orig(char *, size_t) 87extern int __getlogin_r_orig(char *, size_t)
88 __asm__(__USER_LABEL_PREFIX__ "getlogin_r"); 88 __asm__(__USER_LABEL_PREFIX__ "getlogin_r");
89extern __inline __attribute__((__always_inline__,__gnu_inline__)) 89extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__))
90int getlogin_r(char *name, size_t len) 90int 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
99extern ssize_t __pread_orig(int, void *, size_t, off_t) 99extern ssize_t __pread_orig(int, void *, size_t, off_t)
100 __asm__(__USER_LABEL_PREFIX__ "pread"); 100 __asm__(__USER_LABEL_PREFIX__ "pread");
101extern __inline __attribute__((__always_inline__,__gnu_inline__)) 101extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__))
102ssize_t pread(int fd, void *buf, size_t n, off_t offset) 102ssize_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
111extern ssize_t __read_orig(int, void *, size_t) 111extern ssize_t __read_orig(int, void *, size_t)
112 __asm__(__USER_LABEL_PREFIX__ "read"); 112 __asm__(__USER_LABEL_PREFIX__ "read");
113extern __inline __attribute__((__always_inline__,__gnu_inline__)) 113extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__))
114ssize_t read(int fd, void *buf, size_t n) 114ssize_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
123extern ssize_t __readlink_orig(const char *, char *, size_t) 123extern ssize_t __readlink_orig(const char *, char *, size_t)
124 __asm__(__USER_LABEL_PREFIX__ "readlink"); 124 __asm__(__USER_LABEL_PREFIX__ "readlink");
125extern __inline __attribute__((__always_inline__,__gnu_inline__)) 125extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__))
126ssize_t readlink(const char *path, char *buf, size_t n) 126ssize_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
135extern ssize_t __readlinkat_orig(int, const char *, char *, size_t) 135extern ssize_t __readlinkat_orig(int, const char *, char *, size_t)
136 __asm__(__USER_LABEL_PREFIX__ "readlinkat"); 136 __asm__(__USER_LABEL_PREFIX__ "readlinkat");
137extern __inline __attribute__((__always_inline__,__gnu_inline__)) 137extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__))
138ssize_t readlinkat(int fd, const char *path, char *buf, size_t n) 138ssize_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
147extern int __ttyname_r_orig(int, char *, size_t) 147extern int __ttyname_r_orig(int, char *, size_t)
148 __asm__(__USER_LABEL_PREFIX__ "ttyname_r"); 148 __asm__(__USER_LABEL_PREFIX__ "ttyname_r");
149extern __inline __attribute__((__always_inline__,__gnu_inline__)) 149extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__))
150int ttyname_r(int fd, char *name, size_t n) 150int 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
159extern ssize_t __write_orig(int, const void *, size_t) 159extern ssize_t __write_orig(int, const void *, size_t)
160 __asm__(__USER_LABEL_PREFIX__ "write"); 160 __asm__(__USER_LABEL_PREFIX__ "write");
161extern __inline __attribute__((__always_inline__,__gnu_inline__)) 161extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__))
162ssize_t write(int fd, const void *buf, size_t n) 162ssize_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);