/ast/src/lib/libast/misc/ |
H A D | optjoin.c | 29 * int fun(char** argv, int last) 31 * each fun() argument parses as much of argv as 35 * if last!=0 then fun is the last pass to view 36 * the current arg, otherwise fun sets opt_info.again=1 39 * 0 fun() return causes immediate optjoin() 0 return 53 register Optpass_f fun; local 72 while (fun = va_arg(ap, Optpass_f)) 77 user = (*fun)(argv, 0); 104 err = fun; 113 rep = fun; [all...] |
H A D | signal.c | 26 * fun==SIG_DFL also unblocks signal 75 signal(int sig, Sig_handler_t fun) argument 90 unblock = fun == SIG_DFL; 96 na.sa_handler = fun;
|
/ast/src/lib/libcmd/ |
H A D | cmd.h | 102 Shbltin_f fun; local 122 if (fun = (Shbltin_f)dlsym(dll, buf + 1)) 124 if (fun = (Shbltin_f)dlsym(dll, buf)) 129 if (fun = (Shbltin_f)dlsym(dll, buf + 1)) 131 if (fun = (Shbltin_f)dlsym(dll, buf)) 136 return (*fun)(argc, argv, NiL);
|
/ast/src/lib/librecsort/ |
H A D | rslib.c | 44 Rslib_f fun; local 58 if (!(fun = (Rslib_f)dlllook(dll, symbol))) 69 disc = (*fun)(kp, s);
|
/ast/src/lib/libcs/ |
H A D | cslocal.c | 56 Handler_t fun; local 59 if ((fun = signal(SIGCHLD, child)) == SIG_DFL) signal(SIGCHLD, fun); 73 if (fun != SIG_DFL) 75 signal(SIGCHLD, fun); 76 if (fun != SIG_IGN) 78 (*fun)(SIGCHLD);
|
/ast/src/cmd/ksh93/tests/ |
H A D | namespace.sh | 42 function fun function 44 print global fun $foo 76 [[ $(fun) == 'global fun abc' ]] || err_exit 'global fun run from namespace not working'
|
H A D | functions.sh | 138 fun() /bin/echo hello function 139 if [[ $(fun) != hello ]] 313 val=$(myexport dgk fun) 314 if [[ $val != fun ]] 315 then err_exit "export inside function not working -- expected 'fun', got '$val'" 321 val=$(myexport dgk fun fun2) 338 val=$(myexport zzz fun) 339 if [[ $val != fun ]] 340 then err_exit "export inside function not working -- expected 'fun', got '$val'" 454 print ${.sh.fun} 842 function fun function [all...] |
H A D | variables.sh | 445 function fun function 460 [[ $(fun .sh.file) == $tmp/script ]] || err_exit ".sh.file not working for functions" 461 [[ $(posixfun .sh.fun) == posixfun ]] || err_exit ".sh.fun not working for posix functions" 462 [[ $(fun .sh.fun) == fun ]] || err_exit ".sh.fun not working for functions" 464 [[ $(fun .sh.subshell) == 1 ]] || err_exit ".sh.subshell not working for functions" 467 [[ $(fun [all...] |
H A D | substring.sh | 211 if [[ $(myexport dgk fun) != fun ]] 218 if [[ $(myexport dgk fun fun2) != fun2 ]] 233 if [[ $(myexport zzz fun) != fun ]]
|
H A D | cubetype.sh | 112 fun() function 130 [[ $(c.fun) == 'hello world' ]] || err_exit '$(c.fun) != "hello world"' 131 [[ ${c.fun} == 'hello world' ]] || err_exit '${c.fun} != "hello world"'
|
/ast/src/cmd/re/ |
H A D | testfmt.c | 160 report(char* comment, char* fun, char* re, char* msg, int expand) argument 165 if (fun) 166 sfprintf(sfstdout, " %s", fun); 323 char* fun; local 514 fun = "fmtmatch"; 519 fun = "fmtre"; 526 sfprintf(sfstdout, "test %-3d %s \"%s\" \"%s\"\n", state.lineno, fun, re, ans ? ans : "NIL"); 539 report("failed: ", fun, re, msg, expand);
|
H A D | testmatch.c | 280 report(char* comment, char* fun, char* re, char* s, char* msg, int flags, int unspecified, int expand) argument 303 if (fun) 304 printf(" %s", fun); 627 char* fun; local 1028 fun = "strgrpmatch"; 1031 printf("[%s]", fun); 1035 fun = "strmatch"; 1043 fun = "strgrpmatch"; 1046 printf("[%s]", fun); 1050 fun [all...] |
H A D | testregex.c | 654 report(char* comment, char* fun, char* re, char* s, int len, char* msg, int flags, unsigned long test) argument 680 if (fun) 681 printf(" %s", fun); 1246 char* fun; local 1922 fun = "regcomp"; 1952 fun = "regsubcomp"; 1977 fun = "regdecomp"; 1994 report("failed", fun, re, s, nstr, msg, flags, test); 2000 report("failed", fun, re, s, nstr, msg, flags, test); 2034 report("re_nsub incorrect", fun, r [all...] |
/ast/src/cmd/ksh93/include/ |
H A D | streval.h | 76 Sfdouble_t (*fun)(Sfdouble_t,...); member in struct:lval 100 Sfdouble_t (*fun)(const char**,struct lval*,int,Sfdouble_t); member in struct:_arith_
|
/ast/src/cmd/kshlib/dss/ |
H A D | dss.c | 56 Namfun_t fun; member in struct:Namchld 63 Namfun_t fun; member in struct:type 73 Namfun_t fun; member in struct:Namtype 86 Namfun_t fun; member in struct:dsstype 467 tp = (struct type*)nv_hasdisc(mp=dp->hdr.fun.type,&type_disc); 469 pp = (struct parent*)tp->fun.next; 472 if(mp!=dp->hdr.np && pp && pp->hdr.fun.disc==&parent_disc && pp->hdr.nodes) 486 nv_disc(np,&dp->hdr.childfun.fun,NV_FIRST); 523 tp->pfun = &dp->fun; 529 return(&dp->fun); 856 add_discipline(const char *typename, const char *name, int (*fun)(int, char*[],Shbltin_t*), void* context) argument [all...] |
/ast/src/lib/libast/comp/ |
H A D | iconv.c | 75 _ast_iconv_f fun; member in struct:Map_s 1117 cc->from.fun = (_ast_iconv_f)iconv; 1121 cc->from.fun = (_ast_iconv_f)_win_iconv; 1128 cc->from.fun = utf2bin; 1131 cc->from.fun = ume2bin; 1134 cc->from.fun = ucs2bin; 1137 cc->from.fun = scu2bin; 1150 cc->to.fun = bin2utf; 1153 cc->to.fun = bin2ume; 1156 cc->to.fun [all...] |
/ast/src/cmd/ksh93/sh/ |
H A D | array.c | 127 (*ap->fun)(np, NIL(char*), NV_AFREE); 142 if(!ap->header.fun && aq) 208 mp = (Namval_t*)((*arp->fun)(np,NIL(char*),NV_ACURRENT)); 215 return((union Value*)((*arp->fun)(np,NIL(char*),0))); 301 (*ap->header.fun)(np,"0",flag==ARRAY_ASSIGN?NV_AADD:0); 317 mp = (Namval_t*)((*arp->fun)(np,NIL(char*),NV_ACURRENT)); 504 if(ap->fun) 505 (*ap->fun)(np,(char*)np,0); 650 (*ap->fun)(np,NIL(char*),NV_ADELETE); 684 (*ap->fun)(n 931 nv_changearray(Namval_t *np, void *(*fun)(Namval_t*,const char*,int)) argument 977 nv_setarray(Namval_t *np, void *(*fun)(Namval_t*,const char*,int)) argument [all...] |
H A D | nvtype.c | 74 Namfun_t fun; member in struct:Namchld 81 Namfun_t fun; member in struct:Namtype 243 if(mp->nvalue.cp >= pp->ttype->data && mp->nvalue.cp < (char*)pp+pp->ttype->fun.dsize) 333 if(nq->nvalue.cp >= pp->data && nq->nvalue.cp < (char*)pp +pp->fun.dsize) 336 if(data >= pp->data && data < (char*)pp +pp->fun.dsize) 360 nv_disc(nq, &dp->childfun.fun, NV_LAST); 398 dp->fun.nofree = (flags&NV_RDONLY?1:0); 402 dp->childfun.ttype = (Namtype_t*)nv_hasdisc(dp->fun.type,&type_disc); 450 cp = (char*)((*ap->fun)(nr,NIL(char*),NV_ANAME)); 456 Namval_t *mp = (Namval_t*)((*ap->fun)(n [all...] |
H A D | fcin.c | 131 void fcnotify(void (*fun)(Sfio_t*,const char*,int,void*),void* context) argument 133 _Fcin.fcfun = fun;
|
H A D | fault.c | 279 void (*fun)(int); 286 if((fun=signal(sig,sh_fault))==SIG_IGN) 294 if(sig==SIGALRM && fun!=SIG_DFL && fun!=sh_fault) 295 signal(sig,fun); 595 if(ap && ap->fun) 596 (*ap->fun)(np, 0, NV_AFREE);
|
H A D | nvdisc.c | 171 Namfun_t fun; member in struct:vardisc 455 if(vp->fun.disc && (vp->fun.disc->setdisc || vp->fun.disc->putval == assign)) 457 vp = (struct vardisc*)vp->fun.next; 459 if(vp && !vp->fun.disc) 508 if(vp && vp->fun.disc->putval!=assign) 518 vp->fun.disc = dp; 533 Namdisc_t *dp = (Namdisc_t*)vp->fun.disc; 663 vp->fun 1270 Namfun_t fun; member in struct:table [all...] |
/ast/src/cmd/kshlib/open/ |
H A D | open.c | 41 Namfun_t fun; member in struct:dctime 114 dp->fun.disc = &timedisc; 115 nv_stack(np,&dp->fun); 218 Namfun_t fun; member in struct:dcclass 378 tcp->fun.disc = &classdisc; 381 nv_stack(np,&tcp->fun);
|
/ast/src/cmd/builtin/ |
H A D | od.c | 196 Format_f fun; member in struct:Type_s 205 Format_f fun; member in struct:Format_s 768 if (!(zp = tp->size) && !tp->fun) 870 if (!(fp->fun = tp->fun)) 890 fp->fun = form_long_double; 894 fp->fun = form_double; 896 fp->fun = form_float; 902 fp->fun = form_uint8; 905 fp->fun [all...] |
/ast/src/lib/libast/regex/ |
H A D | regclass.c | 254 * associate the ctype function fun with name 258 regaddclass(const char* name, regclass_t fun) argument 268 cp->ctype = fun; 275 np->ctype = fun;
|
/ast/src/cmd/3d/ |
H A D | 3d.sh | 301 *:$dir/fun:*) ;; 302 *) export FPATH=$dir/fun${FPATH:+:$FPATH} ;;
|