/ast/src/cmd/kshlib/codex/ |
H A D | lib.c | 28 lib_init(int flag, void* context) argument 30 if (!flag)
|
/ast/src/cmd/ksh93/bltins/ |
H A D | umask.c | 44 register int flag = 0, sflag = 0; local 69 flag = (flag<<3) + (c-'0'); 77 flag = umask(0); 78 c = strperm(cp,&cp,~flag&0777); 81 umask(flag); 84 flag = (~c&0777); 86 umask(flag); 90 umask(flag=umask(0)); 92 sfprintf(sfstdout,"%s\n",fmtperm(~flag [all...] |
H A D | hist.c | 46 register int flag,fdo; local 62 while((flag = optget(argv,sh_opthist))) switch(flag) 87 if((flag = hist_max(hp) - opt_info.num-1) < 0) 88 flag = 1; 89 range[++indx] = flag; 109 flag = hist_expand(arg,&replace); 110 if(!(flag & HIST_ERROR)) 121 flag = indx; 122 while(flag< [all...] |
H A D | typeset.c | 89 register int flag; local 96 while((flag = optget(argv,*command=='e'?sh_optexport:sh_optreadonly))) switch(flag) 112 flag = (NV_ASSIGN|NV_RDONLY|NV_VARNAME); 128 flag = (NV_ASSIGN|NV_EXPORT|NV_IDENT); 132 return(setall(argv,flag,tdata.sh->var_tree, &tdata)); 138 register unsigned flag = NV_NOARRAY|NV_NOSCOPE|NV_ASSIGN; local 147 flag = NV_TAGGED; 161 flag |= NV_TAGGED; 164 flag | 210 register int n, flag = NV_VARNAME|NV_ASSIGN; local 527 setall(char **argv,register int flag,Dt_t *troot,struct tdata *tp) argument 968 register int n, r=0, flag=0; local 1277 print_namval(Sfio_t *file,register Namval_t *np,register int flag, struct tdata *tp) argument 1422 print_scan(Sfio_t *file, int flag, Dt_t *root, int option,struct tdata *tp) argument [all...] |
H A D | cd_pwd.c | 59 int rval,flag=0; local 67 flag = 0; 70 flag = 1; 166 if(!flag) 200 if(flag) 216 flag = strlen(dir); 218 while(--flag>0 && dir[flag]=='/') 219 dir[flag] = 0; 233 register int n, flag local [all...] |
H A D | getopts.c | 61 register int flag, mode; local 77 while((flag = optget(argv,sh_optgetopts))) switch(flag) 125 switch(opt_info.index>=0 && opt_info.index<=argc?(opt_info.num= LONG_MIN,flag=optget(argv,options)):0) 135 flag = '?'; 142 flag = '?'; 144 *(options = value) = flag; 158 flag = opt_info.index; 161 opt_info.index = flag;
|
H A D | trap.c | 170 register int sig=SIGTERM, flag=0, n; local 186 flag |= S_FLAG; 192 flag |= L_FLAG; 202 if(error_info.errors || flag==(L_FLAG|S_FLAG) || (!(*argv) && !(flag&L_FLAG))) 206 if(flag&L_FLAG) 226 if(flag&S_FLAG) 355 * if <flag> is positive, then print signal name corresponding to <flag> 356 * if <flag> i 360 sig_list(register Shell_t *shp,register int flag) argument [all...] |
H A D | misc.c | 398 register int flag = **argv; local 423 if(flag=='d' && *argv==0) 425 if(job_walk(sfstdout,job_switch,flag,argv)) 432 register int flag = 0; local 437 flag = JOB_LFLAG; 440 flag = JOB_NFLAG; 443 flag = JOB_PFLAG; 457 if(job_walk(sfstdout,job_list,flag,argv)) 513 register int flag, n; local 520 flag [all...] |
/ast/src/lib/libast/comp/ |
H A D | getopt.h | 43 int* flag; member in struct:option
|
H A D | getoptl.c | 56 if (o->flag || o->val <= 0 || o->val > UCHAR_MAX || !isalnum(o->val)) 128 if (o->flag) 130 *o->flag = o->val;
|
H A D | catopen.c | 72 _ast_catopen(const char* name, int flag) argument 86 if ((s = mcfind(NiL, name, LC_MESSAGES, flag, path, sizeof(path))) && (ip = sfopen(NiL, s, "r"))) 106 if (s && (d = catopen(s, flag)) != (nl_catd)(-1) || !(s = 0) && (d = catopen(name, flag)) != (nl_catd)(-1))
|
/ast/src/cmd/tests/sfio/ |
H A D | tputgetd.c | 25 int i, flag; local 40 for(flag = 0, f = BEGV, i = 0; f < ENDV; ++i, f += INCR) 45 else if(!flag) 47 flag = 1;
|
/ast/src/cmd/kshlib/cmdtst/ |
H A D | lib.c | 35 cmdtst_init(int flag, void* context) argument 37 if (!flag)
|
/ast/src/cmd/ksh93/edit/ |
H A D | hexpand.c | 47 #define DONE() {flag |= HIST_ERROR; cp = 0; stakseek(0); goto done;} 140 p, /* flag */ 142 flag=0; /* HIST_* flags */ 214 flag &= HIST_EVENT; /* save event flag for returning later */ 220 flag |= HIST_QUICKSUBST; 240 flag |= HIST_HASH; 275 flag |= HIST_QUESTION; 283 if((!(flag&HIST_QUESTION) && 289 || ((flag [all...] |
/ast/src/cmd/ksh93/sh/ |
H A D | fault.c | 66 register int flag=0; local 114 flag = shp->sigflag[sig]&~SH_SIGOFF; 119 if(flag&SH_SIGIGNORE) 126 if(flag&SH_SIGDONE) 129 if((flag&SH_SIGINTERACTIVE) && sh_isstate(SH_INTERACTIVE) && !sh_isstate(SH_FORKED) && ! shp->subshell) 171 if(pp->mode==SH_JMPCMD || (pp->mode==1 && shp->bltinfun) && !(flag&SH_SIGIGNORE)) 180 flag = SH_SIGTRAP; 185 flag = SH_SIGSET; 210 shp->trapnote |= flag; 212 shp->sigflag[sig] |= flag; 278 register int flag; local 307 register int flag, sig = shgd->sigmax; local 325 register int flag, sig=sh.st.trapmax; local 368 register int flag = sh.sigflag[sig]; local [all...] |
H A D | deparse.c | 362 * increment indent level for flag==BEGIN 363 * decrement indent level for flag==END 365 static void p_keyword(const char *word,int flag) argument 368 if(flag==END) 374 if(flag!=BEGIN) 383 if(flag!=END) 390 register int flag; local 394 flag = endchar; 399 flag = endchar; 402 flag 517 register int flag = end_line; local 541 register int flag = ' ', special; local [all...] |
H A D | arith.c | 62 register int flag = lvalue->flag; local 80 int c = cp[flag]; 81 cp[flag] = 0; 87 cp[flag] = c; 92 cp[flag] = c; 96 if(cp[flag+1]=='[') 97 flag++; 99 flag = 0; 127 if(!nosub && flag) [all...] |
/ast/src/cmd/ie/ |
H A D | history.c | 612 if(fd->flag&IOERR) 671 * If flag==0 then line must begin with string 675 histloc hist_find(string,index1,flag,direction) 678 int flag; 689 if(flag) 696 flag=0; 715 if((location.his_line=hist_match(offset,string,flag))>=0) 731 * If flag==0 then line must begin with string 735 int hist_match(offset,string,flag) 738 int flag; 855 register int flag = 0; local [all...] |
H A D | io.h | 129 int flag; member in struct:fileblk 141 #define fnobuff(fp) ((fp)->flag&IONBF) /* file is unbuffered */ 229 #define fiseof(fp) ((fp)->flag&IOEOF) 230 #define fiserror(fp) ((fp)->flag&IOERR) 234 # define clearerr(fp) ((fp)->flag &= ~(IOERR|IOEOF))
|
H A D | editlib.c | 172 register int r, flag; local 176 flag = (fd==editfd?opt_flag&EDITMASK:0); 177 switch(flag) 279 fp->flag &= ~(IOREAD|IOERR|IOEOF); 298 fp->flag |= IOERR;
|
/ast/src/cmd/tests/vmalloc/ |
H A D | tsharemem.c | 110 int test, flag, code = 2; local 147 flag = 1; 152 flag = -1; 160 vm = vmmopen(store, flag, size);
|
/ast/src/cmd/kshlib/open/ |
H A D | open.c | 55 static void put_time(Namval_t* np, const char* val, int flag, Namfun_t* nfp) argument 62 if(flag&NV_INTEGER) 64 if(flag&NV_LONG) 81 nv_putv(np,val,flag,nfp); 128 static void put_mode(Namval_t* np, const char* val, int flag, Namfun_t* nfp) argument 134 if(flag&NV_INTEGER) 136 if(flag&NV_LONG) 150 nv_putv(np,val,flag,nfp); 349 static void put_classval(Namval_t* np, const char* val, int flag, Namfun_t* nfp) argument 359 nv_putval(np,val,flag); [all...] |
/ast/src/cmd/cs/vcs_src/ |
H A D | vcs_search.c | 110 int flag; local 129 flag = (*s == '+') ? 0 : 1; 156 if (!flag) 387 int flag = 0; local 403 flag++; 412 flag++; 414 if (flag)
|
/ast/src/lib/libast/vmalloc/ |
H A D | vmmopen.c | 100 int flag; /* various modes */ member in struct:_mmdisc_s 211 mmdc->flag |= MM_INIT; 226 { /**/ASSERT(!(mmdc->flag&MM_INIT)); 277 if(mmdc->flag&MM_RELEASE) 281 if(mmdc->flag&MM_CLEANUP) 285 { if(mmdc->flag&MM_RELEASE) 289 if(mmdc->flag&MM_CLEANUP) 353 { /**/ASSERT(mmdc->flag&MM_INIT); 358 { /**/ASSERT(!(mmdc->flag&MM_INIT)); 367 { if(mmdc->flag [all...] |
/ast/src/lib/libtk/generic/ |
H A D | tkImgGIF.c | 74 int flag)); 77 static int LWZReadByte _ANSI_ARGS_((FILE *fd, int flag, 522 LWZReadByte(fd, flag, input_code_size) 524 int flag; 538 if (flag) { 652 GetCode(fd, code_size, flag) 655 int flag; 662 if (flag) {
|