Home
last modified time | relevance | path

Searched refs:__attribute__ (Results 1 – 25 of 192) 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))); // !!!!
9 static void h(void) __attribute__((context (1,2))); // OK
10 static void i(void) __attribute__((context(0,1))); // OK
14 static void x(void) __attribute__((context(0,1,v)));
15 static void y(void) __attribute__((context(0,u,1)));
[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 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 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 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)))
110 #define __sun_attr___pure__ __attribute__((__pure__))
117 #define __sun_attr___const__ __attribute__((__const__))
120 #define __aligned(x) __attribute__((__aligned__(x)))
158 #define __packed __attribute__((__packed__))
159 #define __section(x) __attribute__((__section__(x)))
161 #define __used __attribute__((__used__))
[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__))
345 #define __pure __attribute__((__pure__))
372 #define __fastcall __attribute__((__fastcall__))
[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));
813 __attribute__ ((noreturn));
816 __attribute__ ((noreturn));
819 void linux_boot (void) __attribute__ ((noreturn));
[all …]
/illumos-gate/usr/src/compat/bhyve/sys/
H A Dcdefs.h49 #define __dead2 __attribute__((__noreturn__))
50 #define __used __attribute__((__used__))
51 #define __packed __attribute__((__packed__))
52 #define __aligned(x) __attribute__((__aligned__(x)))
53 #define __section(x) __attribute__((__section__(x)))
54 #define __weak_symbol __attribute__((__weak__))
/illumos-gate/usr/src/lib/libresolv2/include/
H A Derr.h50 __dead void err __P((int, const char *, ...)) __attribute__((__volatile));
52 __attribute__((__volatile));
53 __dead void errx __P((int, const char *, ...)) __attribute__((__volatile));
55 __attribute__((__volatile));
/illumos-gate/usr/src/test/elf-tests/tests/linker-sets/
H A Dsimple-src.c38 static __attribute__((section("set_" #set), used)) \
45 extern __attribute__((weak)) ptype *__start_set_ ## set; \
46 extern __attribute__((weak)) ptype *__stop_set_ ## set
85 main(int __attribute__((unused)) argc, char __attribute__((unused)) **argv) in main()
/illumos-gate/usr/src/cmd/sendmail/include/sm/
H A Dcdefs.h74 # define SM_DEAD(proto) proto __attribute__((__noreturn__))
92 # define SM_UNUSED(decl) decl __attribute__((__unused__))
135 # define PRINTFLIKE(x,y) __attribute__ ((__format__ (__printf__, x, y)))
143 # define SCANFLIKE(x,y) __attribute__ ((__format__ (__scanf__, x, y)))
/illumos-gate/usr/src/lib/libsasl/lib/
H A Dexternal.c73 external_server_mech_new(void *glob_context __attribute__((unused)), in external_server_mech_new()
75 const char *challenge __attribute__((unused)), in external_server_mech_new()
76 unsigned challen __attribute__((unused)), in external_server_mech_new()
94 external_server_mech_step(void *conn_context __attribute__((unused)), in external_server_mech_step()
168 external_server_mech_avail(void *glob_context __attribute__((unused)), in external_server_mech_avail()
170 void **conn_context __attribute__((unused))) in external_server_mech_avail()
239 static int external_client_mech_new(void *glob_context __attribute__((unused)), in external_client_mech_new()
271 const char *serverin __attribute__((unused)), in external_client_mech_step()
388 const sasl_utils_t *utils __attribute__((unused))) in external_client_mech_dispose()
/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.c80 static int plain_server_mech_new(void *glob_context __attribute__((unused)), in plain_server_mech_new()
82 const char *challenge __attribute__((unused)), in plain_server_mech_new()
83 unsigned challen __attribute__((unused)), in plain_server_mech_new()
97 static int plain_server_mech_step(void *conn_context __attribute__((unused)), in plain_server_mech_step()
282 static int plain_client_mech_new(void *glob_context __attribute__((unused)), in plain_client_mech_new()
304 const char *serverin __attribute__((unused)), in plain_client_mech_step()
305 unsigned serverinlen __attribute__((unused)), in plain_client_mech_step()

12345678