/ast/src/cmd/3d/ |
H A D | rmdir3d.c | 32 register struct DIRdirent* ep; local 42 if (!(ep = (struct DIRdirent*)READDIR(dp))) 54 if (D_FILENO(ep) != ino) 58 strcpy(endpath, ep->d_name); 64 t = ep->d_name; 71 strcpy(endpath, ep->d_name);
|
H A D | execve3d.c | 57 register char* ep; local 114 ep = state.brk.beg + argn + 10 - sizeof(var_3d) + 1; 115 tp = strcopy(ep, var_3d); 130 arge[0] = ep;
|
H A D | pathnext.c | 33 register char* ep = sp + strlen(sp); local 51 ep = sp + (shift = strlen(sp)); 72 if (cp < ep) 92 if (cp < ep) 94 for (tmp = ep; tmp > cp; tmp--) 105 sp[vpathlen] = cp < ep ? '/' : 0; 108 strcpy(sp = ep + shift, extra);
|
H A D | open3d.c | 34 register char* ep; local 43 ep = cp = (char*)path + strlen(path); 48 namlen = ep - cp; 56 *ep = '/'; 121 *ep = 0; 127 strcpy(buf + dirlen + namlen + 5, ep + 1);
|
/ast/src/cmd/cs/vcs_src/ |
H A D | vcs_marker.c | 81 register rdirent_t* ep; local 83 for (ep=dir; ep ; ep = ep->next) 85 if (strcmp(ep->tag->version, s) == 0) 86 return (ep->tag); 95 register rdirent_t* ep; local 100 for (ep = dir; ep; e 131 register rdirent_t* ep; local [all...] |
/ast/src/lib/libcmd/ |
H A D | rev.c | 63 register char *ep, *bp, *cp; local 73 ep = bp + (n=sfvalue(in)) - 1; 84 while (cp < ep) 103 ep = bp + (n=sfvalue(in)) -1; 104 while(ep > bp) 106 c = *--ep; 107 *ep = *bp;
|
H A D | tee.c | 74 register const char* ep; local 82 ep = bp + n; 83 while (bp < ep) 85 if ((r = write(fd, bp, ep - bp)) <= 0)
|
H A D | paste.c | 180 char *ep; local 222 ep = delim + dlen; 224 while (cp < ep) 238 while (cp < ep)
|
H A D | uniq.c | 88 register char *cp, *ep, *mp, *bufp, *outp; local 108 ep = cp + n; 110 while (f-->0 && cp<ep) /* skip over fields */ 112 while (cp<ep && *cp==' ' || *cp=='\t') 114 while (cp<ep && *cp!=' ' && *cp!='\t') 136 while (reclen < width && mp < ep)
|
H A D | fmt.c | 140 register char* ep; local 147 for (ep = buf; *ep == ' '; ep++); 148 prefix = ep - buf; 154 if ((*ep == 0 || *buf == '.') && !isoption(fp, 'o')) 156 if (*ep) 170 cp = ep; 171 while (*ep == ' ') 172 ep 239 char* ep; local [all...] |
/ast/src/cmd/dsslib/ip_t/ |
H A D | ireexec.h | 49 IREINT* ep; local 67 ep = rp; 69 ep = lp + re->hi; 70 if ((rp - ep) < must) 71 ep = rp - must; 72 for (cp = lp; cp < ep; cp++) 80 ep += j + 1;
|
/ast/src/lib/libcs/ |
H A D | cspoll.c | 58 register fd_set* ep = &ex; local 69 FD_ZERO(ep); 93 FD_SET(pp->fd, ep); 103 ep = 0; 105 num = select(width + 1, rp, wp, ep, tp); 137 if (ep && FD_ISSET(pp->fd, ep))
|
/ast/src/cmd/mailx/ |
H A D | edit.c | 153 FILE* ep; local 164 if (!(ep = fileopen(state.tmp.edit, "EMw"))) 171 headout(ep, hp, editheaders|GNL); 173 if (filecopy(NiL, fp, state.tmp.edit, ep, NiL, size, NiL, NiL, 0)) 177 fileclose(ep); 178 ep = 0; 198 if (!(ep = fileopen(state.tmp.edit, "Ea+"))) 200 if (editheaders && headset(&pp, NiL, ep, hp, NiL, editheaders|GTO|GMETOO)) { 203 if (!(ep = fileopen(state.tmp.edit, "EMa+"))) 205 filecopy(NiL, pp.fp, state.tmp.edit, ep, Ni [all...] |
H A D | names.c | 396 register char* ep; local 400 ep = rp + sizeof(state.path.path) - 1; 403 if (state.var.outfolder && !strchr(METAFILE, *tp) && rp < ep) 405 while ((*rp = *tp++) && rp < ep) 407 if (*(rp - 1) != '/' && rp < ep) 410 else if (state.var.outfolder && rp < ep) 424 if (rp < ep) 436 if (rp < ep) 438 strncopy(rp, tp, ep - rp);
|
/ast/src/lib/libast/comp/ |
H A D | regexp.h | 79 _re_read(register regexp_t* re, const char* instring, char* ep, const char* endbuf, int seof) argument 121 if (c = _re_comp(re, _re_putc(0), ep, (char*)endbuf - ep))
|
/ast/src/lib/libast/tm/ |
H A D | tmxfmt.c | 101 register char* ep; local 133 ep = buf + len; 149 if (cp < ep) 237 if (cp < ep) 263 cp = number(cp, ep, (long)(1900 + tm->tm_year) / 100, 2, width, pad); 266 cp = number(cp, ep, (long)tm->tm_mday, 2, width, pad); 272 cp = number(cp, ep, (long)tm->tm_mday, -2, width, pad); 300 cp = number(cp, ep, (long)n, c, width, pad); 303 cp = number(cp, ep, (long)tm->tm_hour, 2, width, pad); 311 cp = number(cp, ep, (lon [all...] |
/ast/src/lib/libcoshell/ |
H A D | coinit.c | 198 register char** ep = environ; local 206 while (e = *ep++)
|
/ast/src/cmd/paxlib/calib/ |
H A D | camap.c | 47 register unsigned char* ep = cp + size; local 49 while(cp < ep)
|
/ast/src/cmd/builtin/ |
H A D | look.c | 74 register char* ep = bp + len; local 87 if (bp >= ep) 233 char* ep = 0; local 268 if (streq(file, "-") && (ep = *argv)) 271 if (streq(ep, "-")) 273 file = ep; 274 ep = 0; 302 if (look(fp, bp, ep, flags))
|
/ast/src/lib/libast/sfio/ |
H A D | sfcvt.c | 117 reg char *ep, *b, *endsp, *t; local 198 ep = (format & SFFMT_UPPER) ? ux : lx; 211 { *sp++ = ep[(m >> x) & 0xf]; 256 sfucvt(v,sp,n,ep,CVT_LDBL_INT,unsigned CVT_LDBL_INT); 274 if((ep = (sp+n)) > (endsp = buf+(size-2))) 275 ep = endsp; 276 if(sp > ep) 277 sp = ep; 288 while(sp < ep) 292 do { *sp++ = '0'; } while(sp < ep); [all...] |
/ast/src/cmd/ksh93/bltins/ |
H A D | enum.c | 100 struct Enum *ep; local 104 ep = (struct Enum*)np->nvfun; 107 sfprintf(out,"\b%s\b%c",ep->values[0],0); 109 sfprintf(out,"\b%s\b",ep->values[0]); 113 if(ep->iflag) 116 else while(v=ep->values[n++]) 125 struct Enum *ep, *pp=(struct Enum*)fp; local 126 ep = newof(0,struct Enum,1,pp->nelem*sizeof(char*)); 127 memcpy((void*)ep,(void*)pp,sizeof(struct Enum)+pp->nelem*sizeof(char*)); 128 return(&ep 133 struct Enum *ep = (struct Enum*)fp; local 169 struct Enum *ep = (struct Enum*)fp; local 194 struct Enum *ep; local [all...] |
/ast/src/cmd/ksh93/edit/ |
H A D | completion.c | 207 int ed_expand(Edit_t *ep, char outbuff[],int *cur,int *eol,int mode, int count) argument 216 if(ep->e_nlist) 220 if(count> ep->e_nlist) 223 av[0] = ep->e_clist[count-1]; 228 stakset(ep->e_stkptr,ep->e_stkoff); 229 ep->e_nlist = 0; 308 if(!var && !strchr(ap->argval,'/') && (((cp==outbuff&&ep->sh->nextprompt==1) || (strchr(";&|(",size)) && (cp==outbuff+1||size=='('||cp[-2]!='>') && *begin!='~' ))) 313 if(ep->e_nlist) 322 com = sh_argbuild(ep 512 ed_macro(Edit_t *ep, register int i) argument 552 ed_fulledit(Edit_t *ep) argument [all...] |
/ast/src/cmd/ksh93/sh/ |
H A D | arith.c | 544 Arith_t *ep; local 545 ep = arith_compile(shp,str,(char**)&ptr,arith,ARITH_COMP|1); 548 return((void*)ep);
|
H A D | env.c | 88 char **env_get(Env_t* ep) argument 91 register int n=ep->extra; 92 if(ep->flags&ENV_VALID) 93 return(ep->env+n); 94 if(ep->count > ep->max) 96 if(ep->flags&ENV_MALLOCED) 97 free((void*)ep->env); 98 if(!(ep->env = (char**)malloc(sizeof(char*)*(ep 120 env_add(Env_t *ep, const char *str, int flags) argument 166 env_delete(Env_t *ep, const char *str) argument 192 Env_t *ep; local 230 env_close(Env_t *ep) argument [all...] |
/ast/src/cmd/paxlib/tp/ |
H A D | tp.c | 59 Dir_t* ep; member in struct:Ar_s 105 ar->ep = ar->dir + w; 123 if (ar->dp >= ar->ep)
|