Searched defs:fdin (Results 1 - 3 of 3) sorted by relevance

/osnet-11/usr/src/lib/libcmd/common/
H A Duniq.c85 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 Dcut.c248 * 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
267 bp = sfreserve(fdin, len, -1);
269 bp = sfgetr(fdin, '\n', 0);
270 if (!bp && !(bp = sfgetr(fdin, 0, SF_LASTR)))
272 len = sfvalue(fdin);
361 * cut each line of file <fdin> and put results to <fdout> using list <list>
362 * stream <fdin> must be line buffered
366 cutfields(Cut_t* cut, Sfio_t* fdin, Sfio_t* fdout) argument
383 while ((bp = (unsigned char*)sfreserve(fdin, SF_UNBOUN
[all...]
/osnet-11/usr/src/lib/libshell/common/sh/
H A Dmain.c144 register int fdin; local
280 fdin = 0;
291 fdin = (int)strtol(name+8, (char**)0, 10);
292 if(fstat(fdin,&statb)<0)
318 if((fdin=sh_open(name,O_RDONLY,0))>=0 &&(fstat(fdin,&statb)<0 || S_ISDIR(statb.st_mode)))
320 close(fdin);
322 fdin = -1;
327 if(fdin < 0 && !strchr(name,'/'))
337 if((fdin
[all...]

Completed in 737 milliseconds