Home
last modified time | relevance | path

Searched refs:fun (Results 1 – 25 of 115) sorted by relevance

12345

/illumos-gate/usr/src/tools/smatch/src/validation/
H A DWaddress.c1 extern int fun(void);
8 if (fun()) return -1; in test_address()
16 if (fun) return 1; in test_address()
17 if (&fun) return 1; in test_address()
18 if (*fun) return 1; in test_address()
29 if (!fun()) return -1; in test_address_not()
37 if (!fun) return 0; in test_address_not()
38 if (!&fun) return 0; in test_address_not()
39 if (!*fun) return 0; in test_address_not()
63 if (fun == 0) return 0; in test_address_cmp()
[all …]
H A Dbuiltin-arith.c3 void test(void (*fun)(void));
4 void test(void (*fun)(void)) in test()
22 i = (__builtin_trap > fun); in test()
23 i = (__builtin_trap == fun); in test()
24 i = (fun < __builtin_trap); in test()
25 i = (fun == __builtin_trap); in test()
27 __builtin_trap - fun; in test()
28 fun - __builtin_trap; in test()
H A DWaddress-weak.c3 extern int fun(void) __attribute__((weak));
10 if ( fun) return 1; in test_addr_weak_fun()
11 if ( &fun) return 1; in test_addr_weak_fun()
12 if ( *fun) return 1; in test_addr_weak_fun()
16 if (! fun) return 0; in test_addr_weak_fun()
17 if (!&fun) return 0; in test_addr_weak_fun()
18 if (!*fun) return 0; in test_addr_weak_fun()
H A Dfunction-pointer-type.c1 extern int fun(void);
3 void fa(void) { int (*f)(void); f = &fun; } in fa()
4 void f0(void) { int (*f)(void); f = fun; } // C99,C11 6.3.2.1p4 in f0()
5 void f1(void) { int (*f)(void); f = *fun; } // C99,C11 6.5.3.2p4 in f1()
6 void f2(void) { int (*f)(void); f = **fun; } // C99,C11 6.5.3.2p4 in f2()
7 void f3(void) { int (*f)(void); f = ***fun; } // C99,C11 6.5.3.2p4 in f3()
H A Dsizeof-function.c1 extern int fun(void);
16 s += sizeof &fun; in test()
22 s += sizeof fun; in test()
23 s += sizeof *fun; in test()
/illumos-gate/usr/src/tools/smatch/src/validation/backend/
H A Ddegenerate-ptr.c22 fvp(fun); in call()
23 fvp(&fun); in call()
24 ffp(fun); in call()
25 ffp(&fun); in call()
42 vp = fun; in local()
43 vp = &fun; in local()
44 fp = fun; in local()
45 fp = &fun; in local()
63 vp = fun; in global()
64 vp = &fun; in global()
[all …]
H A Dfunction-ptr.c5 extern int fun(int);
40 fvp(fun); in arg()
41 fvp(&fun); in arg()
42 ffp(fun); in arg()
43 ffp(&fun); in arg()
88 fvp(fun); in glb()
89 fvp(&fun); in glb()
90 ffp(fun); in glb()
91 ffp(&fun); in glb()
141 ops->fvp(fun); in ops()
[all …]
/illumos-gate/usr/src/tools/smatch/src/validation/linear/
H A Dcall-indirect.c1 int gg(int (*fun)(void)) { return fun(); } in gg()
3 int g0(int (*fun)(void)) { return (fun)(); } in g0()
4 int g1(int (*fun)(void)) { return (*fun)(); } // C99,C11 6.5.3.2p4 in g1()
5 int g2(int (*fun)(void)) { return (**fun)(); } // C99,C11 6.5.3.2p4 in g2()
6 int g3(int (*fun)(void)) { return (***fun)(); } // C99,C11 6.5.3.2p4 in g3()
H A Dphi-order02.c1 int fun(void);
3 static int foo(int a) { return 0 || fun(); } in foo()
4 static int bar(int a) { return 1 || fun(); } in bar()
5 static int baz(int a) { return 0 && fun(); } in baz()
6 static int qux(int a) { return 1 && fun(); } in qux()
8 static int oof(int a) { return fun() || 1; } in oof()
9 static int rab(int a) { return fun() || 0; } in rab()
10 static int zab(int a) { return fun() && 1; } in zab()
11 static int xuq(int a) { return fun() && 0; } in xuq()
H A Dcall-casted-pointer.c3 int foo(void *a, void *fun) in foo() argument
5 return ((fun_t)fun)(a); in foo()
8 int bar(void *a, void *fun) in bar() argument
10 return ((int (*)(void *))fun)(a); in bar()
13 int qux(void *a, void *fun) in qux() argument
15 return (*(fun_t)fun)(a); in qux()
18 int quz(void *a, void *fun) in quz() argument
20 return (*(int (*)(void *))fun)(a); in quz()
H A Dcall-direct.c1 extern int fun(void);
3 int ff(void) { return fun(); } in ff()
5 int f0(void) { return (fun)(); } in f0()
6 int f1(void) { return (*fun)(); } // C99,C11 6.5.3.2p4 in f1()
7 int f2(void) { return (**fun)(); } // C99,C11 6.5.3.2p4 in f2()
8 int f3(void) { return (***fun)(); } // C99,C11 6.5.3.2p4 in f3()
H A Dcall-inline.c1 static inline int fun(void) { return 42; } in fun() function
3 int fi(void) { return fun(); } in fi()
5 int i0(void) { return (fun)(); } in i0()
6 int i1(void) { return (*fun)(); } // C99,C11 6.5.3.2p4 in i1()
7 int i2(void) { return (**fun)(); } // C99,C11 6.5.3.2p4 in i2()
8 int i3(void) { return (***fun)(); } // C99,C11 6.5.3.2p4 in i3()
H A Dcall-basic.c1 extern int fun(int a);
5 fun(a); in symbol()
8 void pointer0(int a, int (*fun)(int)) in pointer0()
10 fun(a); in pointer0()
13 void pointer1(int a, int (*fun)(int)) in pointer1()
15 (*fun)(a); in pointer1()
H A Ddegen-function.c1 extern int fun(int);
5 fun_t fa(void) { return &fun; } in fa()
6 fun_t f0(void) { return fun; } in f0()
7 fun_t f1(void) { return *fun; } in f1()
H A Dphi-order03.c1 int fun(void);
3 static int foo(void) { return ((0 || fun()) && fun()); } in foo()
H A Dphi-order01.c1 int fun(void);
5 return a && fun(); in foo()
10 return a || fun(); in bar()
H A Ddegen-log-not.c20 extern int fun(void);
23 if (!&fun) return 1; in test_fun_addr()
29 if (!fun) return 1; in test_fun_degen()
H A Dbool-cast.c1 extern int fun(void);
17 static _Bool ffun_i(void) { return fun; } in ffun_i()
18 static _Bool ffun_e(void) { return (_Bool)fun; } in ffun_e()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dstreval.c165 Math_f fun; in arith_exec() local
440 num = (*((Math_1f_f)fun))(num); in arith_exec()
588 lvalue.fun = 0; in expr()
722 fun = lvalue.fun; in expr()
723 lvalue.fun = 0; in expr()
724 if(fun) in expr()
734 stakpush(vp,fun,Math_f); in expr()
745 if(fun) in expr()
886 if(lvalue.fun) in expr()
915 cur.convert = fun; in arith_compile()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Doptjoin.c53 register Optpass_f fun; in optjoin() local
72 while (fun = va_arg(ap, Optpass_f)) in optjoin()
77 user = (*fun)(argv, 0); in optjoin()
104 err = fun; in optjoin()
113 rep = fun; in optjoin()
114 else if (fun == rep) in optjoin()
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dcmd.h102 Shbltin_f fun; in main() local
122 if (fun = (Shbltin_f)dlsym(dll, buf + 1)) in main()
124 if (fun = (Shbltin_f)dlsym(dll, buf)) in main()
129 if (fun = (Shbltin_f)dlsym(dll, buf + 1)) in main()
131 if (fun = (Shbltin_f)dlsym(dll, buf)) in main()
136 return (*fun)(argc, argv, NiL); in main()
/illumos-gate/usr/src/tools/smatch/src/validation/mem2reg/
H A Dcond-expr.c1 int fun(int);
5 return a ? fun(b) : fun(c); in foo()
/illumos-gate/usr/src/cmd/ypcmd/
H A Dypserv_proc.c128 char *fun = "ypdomain"; in ypdomain() local
197 char *fun = "ypmatch"; in ypmatch() local
305 char *fun = "ypfirst"; in ypfirst() local
345 char *fun = "ypnext"; in ypnext() local
393 char *fun = "ypxfr"; in ypxfr() local
514 char *fun = "ypall"; in ypall() local
595 char *fun = "ypmaster"; in ypmaster() local
639 char *fun = "yporder"; in yporder() local
685 char *fun = "ypmaplist"; in ypmaplist() local
1160 char *fun = "ypoldnext"; in ypoldnext() local
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_rtmp.c36 rtmp_func_long(uint8_t fun) in rtmp_func_long() argument
38 switch (fun) { in rtmp_func_long()
51 rtmp_func_short(uint8_t fun) in rtmp_func_short() argument
53 switch (fun) { in rtmp_func_short()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/
H A Dfunctions.sh138 fun() /bin/echo hello function
139 if [[ $(fun) != hello ]]
313 val=$(myexport dgk fun)
314 if [[ $val != fun ]]
321 val=$(myexport dgk fun fun2)
338 val=$(myexport zzz fun)
339 if [[ $val != fun ]]
454 print ${.sh.fun}
921 function .sh.fun.set
935 unset -f .sh.fun.set
[all …]

12345