Home
last modified time | relevance | path

Searched refs:__attribute__ (Results 1 – 25 of 198) sorted by relevance

12345678

/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dattr-context.c1 static void a(void) __attribute__((context)); // KO
2 static void b(void) __attribute__((context())); // KO
3 static void c(void) __attribute__((context 1)); // KO
4 static void d(void) __attribute__((context 1,2)); // KO
5 static void e(void) __attribute__((context (1))); // !!!!
6 static void f(void) __attribute__((context(0))); // !!!!
7 static void g(void) __attribute__((context(0,1,2,3))); // KO
9 static void h(void) __attribute__((context (1,2))); // OK
10 static void i(void) __attribute__((context(0,1))); // OK
11 static void j(void) __attribute__((context(0,1,2))); // OK
[all …]
H A Dcalling-convention-attributes.c1 extern void __attribute__((cdecl)) c1(void);
2 typedef void (__attribute__((cdecl)) *c2)(void);
5 extern void __attribute__((__cdecl__)) c_1(void);
6 typedef void (__attribute__((__cdecl__)) *c_2)(void);
9 extern void __attribute__((stdcall)) s1(void);
10 typedef void (__attribute__((stdcall)) *s2)(void);
13 extern void __attribute__((__stdcall__)) s_1(void);
14 typedef void (__attribute__((__stdcall__)) *s_2)(void);
17 extern void __attribute__((fastcall)) f1(void);
18 typedef void (__attribute__((fastcall)) *f2)(void);
[all …]
H A Dfunction-redecl2.c1 extern void exit (int __status) __attribute__ ((__noreturn__));
3 int func0(int a) __attribute__ ((pure));
5 __attribute__ ((pure))
11 __attribute__ ((noreturn)) void func1(int a);
18 void func2(int a) __attribute__ ((noreturn));
20 __attribute__ ((noreturn))
H A Dattr-inline.c2 static inline __attribute__((__always_inline__)) int gt(int lhs, int rhs) in gt()
7 extern inline __attribute__((__gnu_inline__)) int ge(int lhs, int rhs) in ge()
12 static __attribute__((__warning__("That's junk!"))) __attribute__((__unused__))
13 __attribute__((__noinline__))
H A Dtype-compare.c1 #define __user __attribute__((address_space(1)))
2 #define __safe __attribute__((safe))
3 #define __nocast __attribute__((nocast))
4 #define __bitwise __attribute__((bitwise))
5 #define __noderef __attribute__((noderef))
H A Dptr-inherit.c1 #define __user __attribute__((address_space(1)))
2 #define __noderef __attribute__((noderef))
3 #define __bitwise __attribute__((bitwise))
4 #define __nocast __attribute__((nocast))
5 #define __safe __attribute__((safe))
H A Dcontext.c3 static void a(void) __attribute__((context(0,1))) in a()
8 static void r(void) __attribute__((context(1,0))) in r()
38 static void good_lock1(void) __attribute__((context(0,1))) in good_lock1()
43 static void good_lock2(void) __attribute__((context(0,1))) in good_lock2()
50 static void good_lock3(void) __attribute__((context(0,1))) in good_lock3()
57 static void good_unlock1(void) __attribute__((context(1,0))) in good_unlock1()
62 static void good_unlock2(void) __attribute__((context(1,0))) in good_unlock2()
H A DWaddress-space-from.c2 #define __kernel __attribute__((address_space(0)))
3 #define __user __attribute__((address_space(__user)))
4 #define __iomem __attribute__((address_space(__iomem)))
5 #define __percpu __attribute__((address_space(__percpu)))
6 #define __rcu __attribute__((address_space(__rcu)))
H A DWaddress-space-all-attr.c2 #define __kernel __attribute__((address_space(0)))
3 #define __user __attribute__((address_space(1)))
4 #define __iomem __attribute__((address_space(2)))
5 #define __percpu __attribute__((address_space(3)))
6 #define __rcu __attribute__((address_space(4)))
H A DWaddress-weak.c1 extern int var __attribute__((weak));
2 extern int arr[] __attribute__((weak));
3 extern int fun(void) __attribute__((weak));
H A Dbool-cast-restricted.c1 typedef unsigned int __attribute__((bitwise)) large_t;
2 #define LBIT ((__attribute__((force)) large_t) 1)
18 typedef unsigned short __attribute__((bitwise)) small_t;
19 #define SBIT ((__attribute__((force)) small_t) 1)
H A Denum+mode.c4 enum e __attribute__ ((mode(__byte__))) b;
5 enum e __attribute__ ((mode(__word__))) w;
6 enum e __attribute__ ((mode(__TI__))) t;
H A Dattr_aligned.c1 void *foo(void) __attribute__((__assume_aligned__(4096)));
2 void *foo(void) __attribute__((assume_aligned(4096)));
/illumos-gate/usr/src/uts/common/sys/
H A Dccompile.h59 __attribute__((__format__(printf, __n, (__n)+1)))
61 __attribute__((__format__(printf, __n, 0)))
74 __attribute__((__format__(cmn_err, __n, (__n)+1)))
76 __attribute__((__format__(cmn_err, __n, 0)))
82 #define __sun_attr___noreturn__ __attribute__((__noreturn__))
91 #define __sun_attr___gnu_inline__ __attribute__((__gnu_inline__))
101 #define __sun_attr___returns_twice__ __attribute__((__returns_twice__))
110 #define __sun_attr___pure__ __attribute__((__pure__))
117 #define __sun_attr___const__ __attribute__((__const__))
120 #define __aligned(x) __attribute__((__aligned__(x)))
[all …]
H A Drds.h141 } __attribute__((packed));
165 } __attribute__((packed));
186 } __attribute__((packed));
211 } __attribute__((packed));
235 } __attribute__((packed));
261 } __attribute__((packed));
274 } __attribute__((packed));
/illumos-gate/usr/src/boot/sys/sys/
H A Dcdefs.h219 #define __weak_symbol __attribute__((__weak__))
226 #define __dead2 __attribute__((__noreturn__))
227 #define __pure2 __attribute__((__const__))
232 #define __dead2 __attribute__((__noreturn__))
233 #define __pure2 __attribute__((__const__))
234 #define __unused __attribute__((__unused__))
235 #define __used __attribute__((__used__))
236 #define __packed __attribute__((__packed__))
237 #define __aligned(x) __attribute__((__aligned__(x)))
238 #define __section(x) __attribute__((__section__(x)))
[all …]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Diso9660.h63 typedef int int8_t __attribute__((mode(QI)));
64 typedef unsigned int u_int8_t __attribute__((mode(QI)));
65 typedef int int16_t __attribute__((mode(HI)));
66 typedef unsigned int u_int16_t __attribute__((mode(HI)));
67 typedef int int32_t __attribute__((mode(SI)));
68 typedef unsigned int u_int32_t __attribute__((mode(SI)));
87 } __attribute__ ((packed));
92 } __attribute__ ((packed));
109 } __attribute__ ((packed));
145 } __attribute__ ((packed));
[all …]
H A Dshared.h447 } __attribute__ ((packed));
456 } __attribute__ ((packed));
473 } __attribute__ ((packed));
532 } __attribute__ ((packed));
776 __attribute__ ((noreturn));
784 void stop (void) __attribute__ ((noreturn));
787 void grub_reboot (void) __attribute__ ((noreturn));
791 void grub_halt (int no_apm) __attribute__ ((noreturn));
813 __attribute__ ((noreturn));
816 __attribute__ ((noreturn));
[all …]
/illumos-gate/usr/src/compat/bhyve/sys/
H A Dcdefs.h47 #define __dead2 __attribute__((__noreturn__))
48 #define __used __attribute__((__used__))
49 #define __packed __attribute__((__packed__))
50 #define __aligned(x) __attribute__((__aligned__(x)))
51 #define __section(x) __attribute__((__section__(x)))
52 #define __weak_symbol __attribute__((__weak__))
/illumos-gate/usr/src/lib/libresolv2/include/
H A Derr.h48 __dead void err __P((int, const char *, ...)) __attribute__((__volatile));
50 __attribute__((__volatile));
51 __dead void errx __P((int, const char *, ...)) __attribute__((__volatile));
53 __attribute__((__volatile));
/illumos-gate/usr/src/lib/libsasl/lib/
H A Dexternal.c72 external_server_mech_new(void *glob_context __attribute__((unused)), in external_server_mech_new()
74 const char *challenge __attribute__((unused)), in external_server_mech_new()
75 unsigned challen __attribute__((unused)), in external_server_mech_new()
93 external_server_mech_step(void *conn_context __attribute__((unused)), in external_server_mech_step()
167 external_server_mech_avail(void *glob_context __attribute__((unused)), in external_server_mech_avail()
169 void **conn_context __attribute__((unused))) in external_server_mech_avail()
238 static int external_client_mech_new(void *glob_context __attribute__((unused)), in external_client_mech_new()
270 const char *serverin __attribute__((unused)), in external_client_mech_step()
387 const sasl_utils_t *utils __attribute__((unused))) in external_client_mech_dispose()
H A Dcheckpw.c152 const char *service __attribute__((unused)), in auxprop_verify_password()
153 const char *user_realm __attribute__((unused))) in auxprop_verify_password()
266 const char *user_realm __attribute__((unused))) in _sasl_auxprop_verify_apop()
409 const char *service __attribute__((unused)), in pwcheck_verify_password()
411 __attribute__((unused))) in pwcheck_verify_password()
673 const char *passwd __attribute__((unused)), in always_true()
674 const char *service __attribute__((unused)), in always_true()
675 const char *user_realm __attribute__((unused))) in always_true()
/illumos-gate/usr/src/cmd/sendmail/include/sm/
H A Dcdefs.h72 # define SM_DEAD(proto) proto __attribute__((__noreturn__))
90 # define SM_UNUSED(decl) decl __attribute__((__unused__))
133 # define PRINTFLIKE(x,y) __attribute__ ((__format__ (__printf__, x, y)))
141 # define SCANFLIKE(x,y) __attribute__ ((__format__ (__scanf__, x, y)))
/illumos-gate/usr/src/uts/common/sys/nxge/
H A Dnxge_flow.h148 } __attribute__((packed));
208 } __attribute__((packed));
229 } __attribute__((packed));
287 } __attribute__((packed));
296 } __attribute__((packed));
/illumos-gate/usr/src/lib/sasl_plugins/plain/
H A Dplain.c79 static int plain_server_mech_new(void *glob_context __attribute__((unused)), in plain_server_mech_new()
81 const char *challenge __attribute__((unused)), in plain_server_mech_new()
82 unsigned challen __attribute__((unused)), in plain_server_mech_new()
96 static int plain_server_mech_step(void *conn_context __attribute__((unused)), in plain_server_mech_step()
281 static int plain_client_mech_new(void *glob_context __attribute__((unused)), in plain_client_mech_new()
303 const char *serverin __attribute__((unused)), in plain_client_mech_step()
304 unsigned serverinlen __attribute__((unused)), in plain_client_mech_step()

12345678