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

/macosx-10.10/tcl-105/tcl_ext/expect/expect/
H A Dexp_chan.c115 if (esPtr->fdin == 0) {
135 if ((esPtr->fdin == 0) ||
136 (esPtr->fdin == 1) ||
137 (esPtr->fdin == 2)) {
141 return expSetBlockModeProc (esPtr->fdin, mode);
153 printf("fdin = %d\n",fd);*/
219 bytesRead = read(esPtr->fdin, buf, (size_t) toRead);
220 /*printf("ExpInputProc: read(%d,,) = %d\r\n",esPtr->fdin,bytesRead);*/
328 Tcl_DeleteFileHandler(esPtr->fdin);
401 /*printf(" CreateFileHandler: %d (mask = %d)\r\n",esPtr->fdin,mas
[all...]
H A Dexp_event.c234 if (ioctl(esPtr->fdin,TIOCREQCHECK,&ioctl_info) < 0) {
241 if (ioctl(esPtr->fdin, TIOCREQSET, &ioctl_info) < 0) {
298 if (ioctl(esPtr->fdin,TIOCREQCHECK,&ioctl_info) < 0) {
306 if (ioctl(esPtr->fdin, TIOCREQSET, &ioctl_info) < 0) {
H A Dexp_command.h103 int fdin; /* input fd */ member in struct:ExpState
104 int fdout; /* output fd - usually the same as fdin, although
128 int open; /* if fdin/fdout open */
H A Dexp_command.c301 exp_slave_control(esPtr->fdin,0);
303 return esPtr->fdin;
314 if (x != esPtr->fdin) {
315 fcntl(x,F_DUPFD,esPtr->fdin);
318 expCloseOnExec(esPtr->fdin);
346 close(esPtr->fdin);
348 if (esPtr->fdin != esPtr->fdout) close(esPtr->fdout);
2660 exp_slave_control(esPtr->fdin,1);
2672 fcntl(esPtr->fdin,F_SETFD,close_onexec);
3454 if (-1 == (newfd = dup(esPtr->fdin))) {
[all...]
H A Dexp_inter.c85 #define real_tty_input(x) (exp_stdin_is_tty && ((x->fdin==0) || (expDevttyIs(x))))
H A Dexpect.c1890 exp_error(interp,"i_read(spawn_id fd=%d): %s",esPtr->fdin,
/macosx-10.10/file-46/file/src/
H A Dcompress.c375 int fdin[2], fdout[2]; local
386 if ((fd != -1 && pipe(fdin) == -1) || pipe(fdout) == -1) {
397 (void) dup(fdin[0]);
398 (void) close(fdin[0]);
399 (void) close(fdin[1]);
426 (void) close(fdin[0]);
434 if (swrite(fdin[1], old, n) != (ssize_t)n) {
456 (void) close(fdin[1]);
457 fdin[1] = -1;
483 if (fdin[
[all...]
/macosx-10.10/OpenSSH-189/openssh/
H A Dserverloop.c93 static int fdin; /* Descriptor for stdin (for writing) */ variable
95 May be same number as fdin. */
104 static int fdin_is_tty = 0; /* fdin points to a tty. */
339 if (fdin != -1 && buffer_len(&stdin_buffer) > 0)
340 FD_SET(fdin, *writesetp);
479 if (!compat20 && fdin != -1 && FD_ISSET(fdin, writeset)) {
482 len = write(fdin, data, dlen);
487 if (fdin != fdout)
488 close(fdin);
[all...]
H A Dscp.c129 int do_cmd(char *host, char *remuser, char *cmd, int *fdin, int *fdout);
130 int do_cmd2(char *host, char *remuser, char *cmd, int fdin, int fdout);
243 do_cmd(char *host, char *remuser, char *cmd, int *fdin, int *fdout) argument
304 *fdin = pout[0];
317 do_cmd2(char *host, char *remuser, char *cmd, int fdin, int fdout) argument
331 dup2(fdin, 0);
H A Dsession.c626 * handle the case that fdin and fdout are the same.
2298 session_set_fds(Session *s, int fdin, int fdout, int fderr, int ignore_fderr, argument
2310 fdout, fdin, fderr,
/macosx-10.10/ksh-23/ksh/src/cmd/ksh93/sh/
H A Dmain.c124 register int fdin; local
257 fdin = 0;
268 fdin = (int)strtol(name+8, (char**)0, 10);
269 if(fstat(fdin,&statb)<0)
293 if((fdin=sh_open(name,O_RDONLY,0))>=0 &&(fstat(fdin,&statb)<0 || S_ISDIR(statb.st_mode)))
295 close(fdin);
297 fdin = -1;
302 if(fdin < 0 && !strchr(name,'/'))
312 if((fdin
[all...]
/macosx-10.10/ksh-23/ksh/src/lib/libcmd/
H A Dcut.c248 * 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) argument
266 bp = sfreserve(fdin, len, -1);
268 bp = sfgetr(fdin, '\n', 0);
269 if (!bp && !(bp = sfgetr(fdin, 0, SF_LASTR)))
271 len = sfvalue(fdin);
359 * cut each line of file <fdin> and put results to <fdout> using list <list>
360 * stream <fdin> must be line buffered
364 cutfields(Cut_t* cut, Sfio_t* fdin, Sfio_t* fdout) argument
381 while ((bp = (unsigned char*)sfreserve(fdin, SF_UNBOUN
[all...]
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);
/macosx-10.10/tcsh-65/tcsh/win32/
H A Dstdio.c279 int nt_dup(int fdin) { argument
282 HANDLE horig = __gOpenFiles[fdin].handle;
299 __gOpenFiles[ret].flags = __gOpenFiles[fdin].flags;
/macosx-10.10/Heimdal-398.1.2/appl/rcp/
H A Drcp.c54 int do_cmd(char *host, char *remuser, char *cmd, int *fdin, int *fdout);
714 do_cmd(char *host, char *remuser, char *cmd, int *fdin, int *fdout) argument
787 *fdin = pout[0];
/macosx-10.10/network_cmds-457/cfilutil/
H A Dcfilutil.c430 int fdin = fileno(stdin); local
482 kv.ident = fdin;
678 if (kv.ident == fdin && kv.filter == EVFILT_READ) {
/macosx-10.10/zsh-61/zsh/Src/Modules/
H A Dzftp.c1450 * Move stuff from fdin to fdout, tidying up the data connection
1468 int n, ret = 0, gotack = 0, fdin, fdout, fromasc = 0, toasc = 0; local
1490 fdin = zfsess->dfd;
1498 fdin = 0;
1512 n = (toasc) ? read_ptr(fdin, ascbuf, ZF_ASCSIZE, rtmout)
1513 : read_ptr(fdin, lsbuf, ZF_BUFSIZE, rtmout);
/macosx-10.10/BerkeleyDB-21/db/test/
H A Dtestutils.tcl3106 set fdin [open $infile r]
3109 while { [gets $fdin str] >= 0 } {
3114 close $fdin

Completed in 328 milliseconds