Searched defs:fdin (Results 1 - 3 of 3) sorted by relevance
/ast/src/lib/libcmd/ |
H A D | uniq.c | 85 static int uniq(Sfio_t *fdin, Sfio_t *fdout, int fields, int chars, int width, int mode, int* all, Compare_f compare) argument 95 if(bufp = sfgetr(fdin,'\n',0)) 96 n = sfvalue(fdin); 97 else if(bufp = sfgetr(fdin,'\n',SF_LASTR)) 99 n = sfvalue(fdin);
|
H A D | cut.c | 248 * cut each line of file <fdin> and put results to <fdout> using list <list> 252 cutcols(Cut_t* cut, Sfio_t* fdin, Sfio_t* fdout) argument 266 bp = sfreserve(fdin, len, -1); 268 bp = sfgetr(fdin, '\n', 0); 269 if (!bp && !(bp = sfgetr(fdin, 0, SF_LASTR))) 271 len = sfvalue(fdin); 359 * cut each line of file <fdin> and put results to <fdout> using list <list> 360 * stream <fdin> must be line buffered 364 cutfields(Cut_t* cut, Sfio_t* fdin, Sfio_t* fdout) argument 381 while ((bp = (unsigned char*)sfreserve(fdin, SF_UNBOUN [all...] |
/ast/src/cmd/ksh93/sh/ |
H A D | main.c | 124 register int fdin; local 257 fdin = 0; 268 fdin = (int)strtol(name+8, (char**)0, 10); 269 if(fstat(fdin,&statb)<0) 293 if((fdin=sh_open(name,O_RDONLY,0))>=0 &&(fstat(fdin,&statb)<0 || S_ISDIR(statb.st_mode))) 295 close(fdin); 297 fdin = -1; 302 if(fdin < 0 && !strchr(name,'/')) 312 if((fdin [all...] |
Completed in 24 milliseconds