/ast/src/lib/libast/stdio/ |
H A D | getdelim.c | 27 getdelim(char** sp, size_t* np, int delim, Sfio_t* f) argument 37 STDIO_INT(f, "getdelim", ssize_t, (char**, size_t*, int, Sfio_t*), (sp, np, delim, f)) 41 if(delim < 0 || delim > 255 || !sp || !np) /* bad parameters */ 54 { f->getr = delim; 63 { if(ps[k] == delim) 64 { k += 1; /* include delim in copying */ 82 if(s[m-1] == delim) 93 __getdelim(char** sp, size_t* np, int delim, Sfio_t* f) argument 95 return getdelim(sp, np, delim, [all...] |
/ast/src/lib/libcmd/ |
H A D | head.c | 79 register int delim = '\n'; local 89 delim = -1; 94 delim = -1; 141 sfmove(fp, NiL, skip, delim); 142 if (sfmove(fp, sfstdout, keep, delim) < 0 && !ERROR_PIPE(errno) && errno != EINTR)
|
H A D | paste.c | 26 * paste [-s] [-d delim] [file] ... 85 static int paste(int nstream,Sfio_t* streams[],Sfio_t *out, register const char *delim, int dsiz, int dlen, Delim_t* mp) argument 104 sfnputc(out, *delim, n); 108 sfwrite(out,delim,dsiz); 116 sfwrite(out,delim,z); 134 else if(c=delim[d]) 146 * Handles paste -s, for file <in> to file <out> using delimiters <delim> 148 static int spaste(Sfio_t *in,register Sfio_t* out,register const char *delim,int dsiz,int dlen,Delim_t* mp) argument 163 else if(c=delim[d]) 179 register char *cp, *delim; local [all...] |
H A D | cmp.c | 89 pretty(Sfio_t *out, int o, int delim, int flags) argument 100 if ((flags & CMP_CHARS) && delim != -1) 137 sfputr(out, buf, delim);
|
H A D | stty.c | 470 register int delim = ' '; local 523 delim = '\n'; 527 sfprintf(sfstdout,"%s%c",tp->name,delim); 529 sfprintf(sfstdout,"-%s%c",tp->name,delim); 530 delim = ' '; 536 delim = '\n'; 540 sfprintf(sfstdout,"%s = <undef>;%c",tp->name,delim); 542 sfprintf(sfstdout,"%s = %c;%c",tp->name,off,delim); 545 sfprintf(sfstdout,"%s = ^%c;%c",tp->name,off==0177?'?':(off^0100),delim); 549 sfprintf(sfstdout,"%s = ^%c;%c",tp->name,off==0177?'?':ccmapc(off^0100,CC_ASCII,CC_NATIVE),delim); [all...] |
H A D | tail.c | 154 tailpos(register Sfio_t* fp, register Sfoff_t number, int delim) argument 167 if (delim < 0) 183 if (*--t == delim && number-- <= 0) 201 pipetail(Sfio_t* infile, Sfio_t* outfile, Sfoff_t number, int delim) argument 211 if (delim < 0 && a > number) 216 while ((n = sfmove(infile, out, number, delim)) > 0) 241 sfmove(tmp[!fno], NiL, n, delim); 257 init(Tail_t* tp, Sfoff_t number, int delim, int flags, const char** format) argument 290 sfmove(tp->sp, NiL, -number - 1, delim); 296 else if ((offset = tailpos(tp->sp, number, delim)) > 406 int delim; local [all...] |
H A D | join.c | 62 "[t:separator|tabs]:[delim?Use \adelim\a as the field separator for both input" 155 int delim; member in struct:Join_s 198 jp->delim = -1; 318 if (jp->delim == '\n') /* handle new-line delimiter specially */ 337 if (jp->delim == -1) 391 if (n == jp->delim) 396 if (jp->delim == -1 && iswspace(n)) 475 if ((n = jp->delim) == -1) 897 jp->delim = mbchar(cp); 907 jp->delim [all...] |
/ast/src/cmd/std/ |
H A D | banner.c | 25 * banner [-d delim] [-w width] arg ... 180 static void banner(const char *string,const char *delim,int width) argument 192 dp = delim; 196 dp = delim; 226 char *delim = "#"; local 235 delim = opt_info.arg; 252 banner(cp,delim,width);
|
H A D | split.c | 384 int delim = (flags & B_FLAG) ? -1 : '\n'; local 411 if ((n = sfputr(out, peek, delim)) <= 0) 421 if ((n = sfmove(in, out, z, delim)) < z || n < 0) 430 if (out && (n = sfputr(out, peek, delim)) <= 0) 435 while (s = sfgetr(in, delim, 1)) 445 if (out && (n = sfputr(out, s, delim)) <= 0)
|
/ast/src/lib/libast/regex/ |
H A D | regsubcomp.c | 43 regsubflags(regex_t* p, register const char* s, char** e, int delim, register const regflags_t* map, int* pm, regflags_t* pf) argument 57 if (!(c = *s++) || c == delim)
|
/ast/src/cmd/3d/ |
H A D | error.c | 60 print(char** buf, char* end, register char* name, char* delim) argument 83 while (*delim) 86 *s++ = *delim++;
|
/ast/src/lib/libast/misc/ |
H A D | error.c | 241 print(register Sfio_t* sp, register char* name, char* delim) argument 293 if (delim) 294 sfputr(sp, delim, -1);
|
/ast/src/cmd/ksh93/bltins/ |
H A D | read.c | 22 * read [-ACprs] [-d delim] [-u filenum] [-t timeout] [-n n] [-N n] [name...] 223 int delim = '\n'; local 260 delim = -1; 286 delim = ((unsigned)flags)>>D_FLAG; 287 ep->e_nttyparm.c_cc[VEOL] = delim; 302 if(delim>0) 303 shp->ifstable[delim] = S_NL; 304 if(delim!='\n') 322 if((c=(*nfp->disc->readf)(mp,iop,delim,nfp))>=0) 484 else if(cp = (unsigned char*)sfgetr(iop,delim, [all...] |
/ast/src/cmd/sortlib/sum/ |
H A D | sortsum.c | 131 unsigned char delim[256]; member in struct:State_s 188 del = state->delim; 697 for (n = 0; n < elementsof(state->delim); n++) 699 state->delim[n] = 1; 702 state->delim[*(state->tab = key->tab)] = 1;
|
/ast/src/cmd/re/ |
H A D | sed1.c | 452 int delim; local 459 if((delim = mbchar(pb)) == '\n' || delim=='\\') 462 while((o=p),(pc = mbchar(p))!=delim) { 476 while((o=p), (pc = mbchar(p))!=delim) { 495 while((pb=p), (pc = mbchar(p))!=delim) { 500 else if(qc==delim || qc=='\\') 508 if(qc==delim) 514 else if(qc!=delim && qc!='\\') 530 if(mbchar(q) != delim) [all...] |
H A D | testregex.c | 1251 char* delim[6]; local 1500 *(delim[i] = p - 1) = 0; 1773 *delim[--i] = '\t';
|
/ast/src/cmd/tw/ |
H A D | tw.h | 159 int delim; /* format delimiter char */ member in struct:Snapshot_s::__anon238
|
/ast/src/cmd/kshlib/dss/ |
H A D | dss.c | 668 static int read_parent(register Namval_t* np, Sfio_t *iop, int delim, Namfun_t *fp) argument 725 static int write_parent(register Namval_t* np, Sfio_t *iop, int delim, Namfun_t *fp) argument 1323 int flags=0, n, delim='\n'; local 1334 delim = '\t'; 1365 sfputr(sfstdout,tp->name,delim); 1366 if(delim!='\n')
|
/ast/src/cmd/ksh93/edit/ |
H A D | edit.c | 814 register int delim = ((ep->e_raw&RAWMODE)?nttyparm.c_cc[VEOL]:'\n'); local 882 rv = sfpkrd(fd,buff,size,delim,-1L,mode);
|
/ast/src/cmd/ksh93/sh/ |
H A D | macro.c | 907 register int m=shp->offsets[0],delim=0; local 935 if(last==first && c==S_EOF && (!delim || (m>1))) 942 delim = (c==S_DELIM);
|