Searched refs:fdin (Results 1 - 7 of 7) sorted by relevance

/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dmain.c141 register int fdin; local
276 fdin = 0;
287 fdin = (int)strtol(name+8, (char**)0, 10);
288 if(fstat(fdin,&statb)<0)
312 if((fdin=sh_open(name,O_RDONLY,0))>=0 &&(fstat(fdin,&statb)<0 || S_ISDIR(statb.st_mode)))
314 close(fdin);
316 fdin = -1;
321 if(fdin < 0 && !strchr(name,'/'))
331 if((fdin
[all...]
/illumos-gate/usr/src/cmd/lp/lib/printers/
H A Dputprinter.c97 int fdin, fdout; local
176 if ((fdin = open_locked(prbufp->interface, "r", 0)) < 0) {
182 close(fdin);
185 while ((n = read(fdin, buf, BUFSIZ)) > 0)
188 close(fdin);
681 int fdin = 0; local
687 if ((fdin = open_locked(ppd, "r", 0)) < 0)
696 close(fdin);
703 while ((n = read(fdin, buf, BUFSIZ)) > 0)
708 close(fdin);
[all...]
/illumos-gate/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.c250 * cut each line of file <fdin> and put results to <fdout> using list <list>
254 cutcols(Cut_t* cut, Sfio_t* fdin, Sfio_t* fdout) argument
269 bp = sfreserve(fdin, len, -1);
271 bp = sfgetr(fdin, '\n', 0);
272 if (!bp && !(bp = sfgetr(fdin, 0, SF_LASTR)))
274 len = sfvalue(fdin);
363 * cut each line of file <fdin> and put results to <fdout> using list <list>
364 * stream <fdin> must be line buffered
368 cutfields(Cut_t* cut, Sfio_t* fdin, Sfio_t* fdout) argument
385 while ((bp = (unsigned char*)sfreserve(fdin, SF_UNBOUN
[all...]
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dalerts.c94 int fdout, fdin; local
155 if ((fdin = open_locked(path, "r", 0)) < 0) {
162 while (fdgets(buf, BUFSIZ, fdin)) {
235 close(fdin);
240 close(fdin);
/illumos-gate/usr/src/cmd/bart/
H A Dcreate.c42 static int generate_hash(int fdin, char *hash_str);
651 generate_hash(int fdin, char *hash_str) argument
661 amtread = read(fdin, buf, sizeof (buf));
/illumos-gate/usr/src/cmd/stmsboot/
H A Dstmsboot_util.c1431 FILE *fdin, *fdout; local
1457 fdin = fopen("/etc/vfstab", "r");
1459 if (fdin == NULL || fdout == NULL) {
1470 while (fgets(buf, MAXPATHLEN, fdin) != NULL) {
1557 (void) fclose(fdin);

Completed in 69 milliseconds