/titanic_41/usr/src/cmd/ssh/sshd/ |
H A D | serverloop.c | 76 static int fdin; /* Descriptor for stdin (for writing) */ variable 313 if (fdin != -1 && buffer_len(&stdin_buffer) > 0) in wait_until_can_do_something() 314 FD_SET(fdin, *writesetp); in wait_until_can_do_something() 431 if (!compat20 && fdin != -1 && FD_ISSET(fdin, writeset)) { in process_output() 434 len = write(fdin, data, dlen); in process_output() 438 if (fdin != fdout) in process_output() 439 (void) close(fdin); in process_output() 441 (void) shutdown(fdin, SHUT_WR); /* We will no longer send. */ in process_output() 442 fdin = -1; in process_output() 446 tcgetattr(fdin, &tio) == 0 && in process_output() [all …]
|
H A D | session.c | 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/lib/libshell/common/sh/ |
H A D | main.c | 141 register int fdin; in sh_main() local 276 fdin = 0; in sh_main() 287 fdin = (int)strtol(name+8, (char**)0, 10); in sh_main() 288 if(fstat(fdin,&statb)<0) in sh_main() 312 if((fdin=sh_open(name,O_RDONLY,0))>=0 &&(fstat(fdin,&statb)<0 || S_ISDIR(statb.st_mode))) in sh_main() 314 close(fdin); in sh_main() 316 fdin = -1; in sh_main() 321 if(fdin < 0 && !strchr(name,'/')) in sh_main() 331 if((fdin=sh_open(sp,O_RDONLY,0))>=0) in sh_main() 335 if(fdin<0) in sh_main() [all …]
|
/titanic_41/usr/src/cmd/lp/lib/printers/ |
H A D | putprinter.c | 97 int fdin, fdout; in putprinter() local 176 if ((fdin = open_locked(prbufp->interface, "r", 0)) < 0) { in putprinter() 182 close(fdin); in putprinter() 185 while ((n = read(fdin, buf, BUFSIZ)) > 0) in putprinter() 188 close(fdin); in putprinter() 681 int fdin = 0; in copyPPDFile() local 687 if ((fdin = open_locked(ppd, "r", 0)) < 0) in copyPPDFile() 696 close(fdin); in copyPPDFile() 703 while ((n = read(fdin, buf, BUFSIZ)) > 0) in copyPPDFile() 708 close(fdin); in copyPPDFile()
|
/titanic_41/usr/src/lib/libcmd/common/ |
H A D | cut.c | 254 cutcols(Cut_t* cut, Sfio_t* fdin, Sfio_t* fdout) in cutcols() argument 269 bp = sfreserve(fdin, len, -1); in cutcols() 271 bp = sfgetr(fdin, '\n', 0); in cutcols() 272 if (!bp && !(bp = sfgetr(fdin, 0, SF_LASTR))) in cutcols() 274 len = sfvalue(fdin); in cutcols() 368 cutfields(Cut_t* cut, Sfio_t* fdin, Sfio_t* fdout) in cutfields() argument 385 while ((bp = (unsigned char*)sfreserve(fdin, SF_UNBOUND, -1)) && (c = sfvalue(fdin)) > 0) in cutfields() 442 if (!(bp = (unsigned char*)sfreserve(fdin, SF_UNBOUND, -1)) || (c = sfvalue(fdin)) <= 0) in cutfields()
|
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 95 if(bufp = sfgetr(fdin,'\n',0)) in uniq() 96 n = sfvalue(fdin); in uniq() 97 else if(bufp = sfgetr(fdin,'\n',SF_LASTR)) in uniq() 99 n = sfvalue(fdin); in uniq()
|
/titanic_41/usr/src/cmd/lp/lib/lp/ |
H A D | alerts.c | 94 int fdout, fdin; in putalert() local 155 if ((fdin = open_locked(path, "r", 0)) < 0) { in putalert() 162 while (fdgets(buf, BUFSIZ, fdin)) { in putalert() 235 close(fdin); in putalert() 240 close(fdin); in putalert()
|
/titanic_41/usr/src/cmd/bart/ |
H A D | create.c | 42 static int generate_hash(int fdin, char *hash_str); 651 generate_hash(int fdin, char *hash_str) in generate_hash() argument 661 amtread = read(fdin, buf, sizeof (buf)); in generate_hash()
|
/titanic_41/usr/src/cmd/stmsboot/ |
H A D | stmsboot_util.c | 1431 FILE *fdin, *fdout; in update_vfstab() local 1457 fdin = fopen("/etc/vfstab", "r"); in update_vfstab() 1459 if (fdin == NULL || fdout == NULL) { in update_vfstab() 1470 while (fgets(buf, MAXPATHLEN, fdin) != NULL) { in update_vfstab() 1557 (void) fclose(fdin); in update_vfstab()
|
/titanic_41/usr/src/cmd/ssh/scp/ |
H A D | scp.c | 106 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 260 *fdin = pout[0]; in do_cmd()
|
/titanic_41/usr/src/cmd/ssh/doc/ |
H A D | ChangeLog | 1478 close(fdin) if fdin != fdout, shutdown otherwise, ok theo@
|