Searched defs:fdout (Results 1 - 7 of 7) sorted by relevance

/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
164 sfwrite(fdout,outp,0);
198 sfwrite(fdout,outp,0);
203 sfprintf(fdout,"%4d ",count+1);
206 if(sfwrite(fdout,outp,outsize) != outsize)
215 if(sfwrite(fdout,outp,outsize) != outsize)
224 if (!(outbuff = sfreserve(fdout, 0, 0)) || (outsize = sfvalue(fdout)) < 0)
230 sfwrite(fdout,outp,0);
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
341 if (sfwrite(fdout, (char*)bp, c) < 0)
355 sfwrite(fdout, cut->ldelim.str, cut->ldelim.len);
357 sfputc(fdout, cut->ldelim.chr);
363 * cut each line of file <fdin> and put results to <fdout> using list <list>
368 cutfields(Cut_t* cut, Sfio_t* fdin, Sfio_t* fdout) argument
437 if ((c = cp - copy) > 0 && sfwrite(fdout, (char*)copy, c) < 0)
466 if (sfwrite(fdout, (char*)mb, c) < 0)
524 if ((c = wp - copy) > 0 && sfwrite(fdout, (cha
[all...]
/illumos-gate/usr/src/cmd/troff/troff.d/
H A Dmakedev.c118 int fdout; /* output file descriptor */ variable
180 fdout = creat(fout, 0666);
181 if (fdout < 0) {
185 write(fdout, &dev, sizeof(struct dev));
186 write(fdout, size, (dev.nsizes+1) * sizeof(size[0])); /* we need a 0 on the end */
187 write(fdout, chtab, dev.nchtab * sizeof(chtab[0]));
188 write(fdout, chname, dev.lchname);
192 write(fdout, &font, sizeof(struct Font));
193 write(fdout, width, font.nwfont & BYTEMASK);
194 write(fdout, ker
221 int fdout; local
[all...]
/illumos-gate/usr/src/cmd/lp/filter/postscript/font/
H A Dmakedev.c120 int fdout; /* output file descriptor */ variable
189 fdout = creat(fout, 0666);
190 if (fdout < 0) {
194 write(fdout, &dev, sizeof(struct dev));
195 write(fdout, size, (dev.nsizes+1) * sizeof(size[0])); /* we need a 0 on the end */
196 write(fdout, chtab, dev.nchtab * sizeof(chtab[0]));
197 write(fdout, chname, dev.lchname);
201 write(fdout, &font, sizeof(struct Font));
202 write(fdout, width, font.nwfont & BYTEMASK);
203 write(fdout, ker
227 int fdout; local
[all...]
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dalerts.c94 int fdout, fdin; local
132 if ((fdout = open_locked(path, "w", MODE_NOEXEC)) < 0) {
171 fdputs (cp, fdout);
188 fdprintf(fdout, newline);
189 envlist(fdout, environ);
194 fdprintf (fdout, "%s", cur_dir);
198 fdprintf (fdout, "%ld", ulimit(1, (long)0));
203 fdprintf (fdout, "%03o", cur_umask);
207 fdprintf(fdout, "%ld", (long)alertp->W);
211 fdprintf(fdout, newlin
[all...]
/illumos-gate/usr/src/cmd/lp/lib/printers/
H A Dputprinter.c97 int fdin, fdout; local
180 if ((fdout = open_locked(path, "w", MODE_EXEC)) < 0) {
186 write (fdout, buf, n);
187 close(fdout);
308 if ((fdout = open_locked(path, "w", MODE_READ)) < 0) {
342 (void)fdprintf(fdout, "%s %s\n", HEAD, ptr);
347 print_sdn(fdout, HEAD, prbufp->cpi);
352 print_l(fdout, HEAD, prbufp->char_sets);
360 print_l(fdout, HEAD, prbufp->input_types);
364 print_str(fdout, HEA
682 int fdout = 0; local
[all...]
/illumos-gate/usr/src/cmd/stmsboot/
H A Dstmsboot_util.c1431 FILE *fdin, *fdout; local
1458 fdout = fopen(fname, "w+");
1459 if (fdin == NULL || fdout == NULL) {
1512 (void) fprintf(fdout, "%s", tmpbuf);
1543 (void) fprintf(fdout, "%s", tmpbuf);
1545 (void) fprintf(fdout, "%s", buf);
1549 if (fflush(fdout) != 0) {
1558 (void) fclose(fdout);

Completed in 104 milliseconds