/ast/src/cmd/ksh93/tests/ |
H A D | namespace.sh | 38 function fn function 40 print global fn $foo 71 function fn function 73 print local fn $foo 75 [[ $(fn) == 'local fn bar' ]] || err_exit 'fn inside namespace should run local function' 96 [[ $(fn) == 'global fn abc' ]] || err_exit 'fn outsid [all...] |
H A D | functions.sh | 949 typeset fn=$2
|
/ast/src/lib/libast/string/ |
H A D | base64.c | 51 base64encode(const void* fb, size_t fz, void** fn, void* tb, size_t tz, void** tn) argument 78 if (fn) 79 *fn = fp; 95 if (fn) 96 *fn = fp; 124 if (fn) 125 *fn = fp; 151 if (fn) 152 *fn = fp; 162 base64decode(const void* fb, size_t fz, void** fn, voi argument [all...] |
H A D | strsort.c | 24 * strsort - sort an array pointers using fn 26 * fn follows strcmp(3) conventions 37 strsort(char** argv, int n, int(*fn)(const char*, const char*)) 52 if ((*fn)(ap[m], ap[0]) >= 0) break;
|
/ast/src/lib/libtksh/src/ |
H A D | shcompat.c | 15 int _nv_scan(Hashtab_t *root, void (*fn)(Namval_t *,void*), void *data, int mask, int flags) 17 return nv_scan(root, (void (*)(Namval_t *)) fn, mask, flags);
|
/ast/src/lib/libast/comp/ |
H A D | iconv.c | 66 #define RETURN(e,n,fn) \ 67 if (*fn && !e) e = E2BIG; \ 260 _win_iconv(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn) argument 280 fz = tz = (*fn < *tn) ? *fn : *tn; 286 un = *fn; 294 if ((tz = MultiByteToWideChar(cc->from.index, 0, (LPCSTR)*fb, (int)*fn, (LPWSTR)*tb, *tn)) && tz <= *tn) 296 fz = *fn; 307 pz = *fn / 2; 308 fz = *fn 531 utf2bin(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn) argument 605 bin2utf(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn) argument 715 ume2bin(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn) argument 791 bin2ume(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn) argument 865 ucs2bin(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn) argument 910 bin2ucs(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn) argument 956 scu2bin(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn) argument 1001 bin2scu(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn) argument 1235 _ast_iconv(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn) argument 1342 _ast_iconv_write(_ast_iconv_t cd, Sfio_t* op, char** fb, size_t* fn, Iconv_disc_t* disc) argument 1445 size_t fn; local [all...] |
/ast/src/lib/libcodex/ |
H A D | code-iconv.c | 163 size_t fn; local 167 fn = sizeof(state->buf) - (state->bp - state->buf); 168 if (n < fn) 169 fn = n; 170 if ((r = sfrd(sp, state->bp, fn, disc)) <= 0) 173 fn = r + (state->bp - state->buf); 177 while (fn > 0 && tn > 0) 179 if ((r = iconv(state->cvt, &fb, &fn, &tb, &tn)) == -1) 187 if (fn && fb > state->buf) 190 while (fn 203 size_t fn; local [all...] |
/ast/src/cmd/ksh93/sh/ |
H A D | io.c | 1034 static Sfoff_t file_offset(Shell_t *shp, int fn, char *fname) argument 1036 Sfio_t *sp = shp->sftable[fn]; 1043 endf.fd = fn; 1142 int trunc=0, clexec=0, fn, traceon; local 1155 fn = (iof&IOUFD); 1156 if(fn==1 && shp->subshell && !shp->subshare && (flag==2 || isstring)) 1158 if(shp->redir0 && fn==0 && !(iof&IOMOV)) 1217 fn = nv_getnum(np); 1219 if(fn>=shp->gd->lim.open_max && !sh_iovalidfd(shp,fn)) [all...] |
H A D | timers.c | 176 Handler_t fn = *(Handler_t*)handle; local 178 (*fn)(SIGALRM); 185 Handler_t fn; local 203 fn = (Handler_t)signal(SIGALRM,sigalrm); 204 if((t= setalarm(t))>0 && fn && fn!=(Handler_t)sigalrm) 209 *hp = fn;
|
H A D | xec.c | 1798 int fn,fd = (type&FPIN)?0:1; local 1800 fn = sh_open(shp->fifo,fd?O_WRONLY:O_RDONLY); 1802 sh_iorenumber(shp,fn,fd); 1803 sh_close(fn);
|
H A D | name.c | 2320 int nv_scan(Dt_t *root, void (*fn)(Namval_t*,void*), void *data,int mask, int flags) argument 2328 sdata.scanfn = fn;
|
/ast/src/lib/libtksh/include/ |
H A D | shcompat.h | 34 int _nv_scan(Hashtab_t *root, void (*fn)(Namval_t *,void*), void *data,
|
/ast/src/lib/libast/vmalloc/ |
H A D | vmprofile.c | 111 { reg Pfobj_t* fn; local 120 for(fn = Pftable[n]; fn; fn = fn->next) 121 if(PFLINE(fn) < 0 && strcmp(PFNAME(fn),file) == 0) 123 if(!fn) 126 if(!(fn = (Pfobj_t*)vmalloc(Vmheap,s)) ) 128 fn [all...] |
H A D | vmhdr.h | 217 void(* fn)(); member in union:_align_u 381 #define VMFLF(vm,fi,ln,fn) ((fi) = (vm)->file, (vm)->file = NIL(char*), \ 383 (fn) = (vm)->func, (vm)->func = NIL(Void_t*) )
|
/ast/src/lib/libast/sfio/ |
H A D | vthread.h | 200 #define vtrun(vt,fn,arg) (-1)
|
H A D | sfhdr.h | 707 #define FP_SET(fp,fn) (fp < 0 ? (fn += 1) : (fn = fp) )
|
/ast/src/lib/libvcodex/ |
H A D | vcodex.h | 230 #define VCDISC(dc,dt,sz,fn) \ 231 ((dc)->data = (dt), (dc)->size = (sz), (dc)->eventf = (fn) )
|