Home
last modified time | relevance | path

Searched refs:fdout (Results 1 – 11 of 11) sorted by relevance

/titanic_41/usr/src/cmd/lp/lib/printers/
H A Dputprinter.c97 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, HEAD, prbufp->device); in putprinter()
[all …]
/titanic_41/usr/src/cmd/lp/lib/lp/
H A Dalerts.c94 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, newline); in putalert()
[all …]
/titanic_41/usr/src/cmd/troff/troff.d/
H A Dmakedev.c118 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, kern, font.nwfont & BYTEMASK); in main()
[all …]
/titanic_41/usr/src/cmd/lp/filter/postscript/font/
H A Dmakedev.c120 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, kern, font.nwfont & BYTEMASK); in main()
[all …]
/titanic_41/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, … 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 Dcut.c254 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_41/usr/src/cmd/ssh/sshd/
H A Dserverloop.c77 static int fdout; /* Descriptor for stdout (for reading); variable
305 FD_SET(fdout, *readsetp); in wait_until_can_do_something()
395 if (!fdout_eof && FD_ISSET(fdout, readset)) { in process_input()
396 len = read(fdout, buf, sizeof(buf)); in process_input()
438 if (fdin != fdout) in process_output()
529 fdout = fdout_arg; in server_loop()
534 set_nonblock(fdout); in server_loop()
559 max_fd = MAX(max_fd, fdout); in server_loop()
591 if (fdin != fdout) in server_loop()
646 max_fd = MAX(max_fd, fdout); in server_loop()
[all …]
H A Dsession.c565 int fdout, ptyfd, ttyfd, ptymaster, pipe_fds[2]; in do_exec_pty() local
669 fdout = dup(ptyfd); in do_exec_pty()
670 if (fdout < 0) in do_exec_pty()
682 session_set_fds(s, ptyfd, fdout, -1); in do_exec_pty()
686 server_loop(pid, ptyfd, fdout, -1); in do_exec_pty()
2095 session_set_fds(Session *s, int fdin, int fdout, int fderr) in session_set_fds() argument
2106 fdout, fdin, fderr, in session_set_fds()
/titanic_41/usr/src/cmd/stmsboot/
H A Dstmsboot_util.c1431 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()
/titanic_41/usr/src/cmd/ssh/scp/
H A Dscp.c106 int do_cmd(char *host, char *remuser, char *cmd, int *fdin, int *fdout,
205 do_cmd(char *host, char *remuser, char *cmd, int *fdin, int *fdout, int argc) in do_cmd() argument
258 *fdout = pin[1]; in do_cmd()
/titanic_41/usr/src/cmd/ssh/doc/
H A DChangeLog1478 close(fdin) if fdin != fdout, shutdown otherwise, ok theo@