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