Searched refs:SHIN (Results 1 - 14 of 14) sorted by relevance

/freebsd-9.3-release/contrib/tcsh/
H A Dsh.file.c99 (void) tcgetattr(SHIN, &tchars);
101 (void) ioctl(SHIN, TCGETA, (ioctl_t) &tchars);
130 (void) xtcsetattr(SHIN, on, &tchars);
132 (void) ioctl(SHIN, on, (ioctl_t) &tchars);
139 (void) ioctl(SHIN, TIOCGETC, (ioctl_t) & tchars);
141 (void) ioctl(SHIN, TIOCSETC, (ioctl_t) & tchars);
146 (void) ioctl(SHIN, TIOCGETP, (ioctl_t) & sgtty);
149 (void) ioctl(SHIN, TIOCSETP, (ioctl_t) & sgtty);
154 (void) ioctl(SHIN, TIOCSETC, (ioctl_t) & tchars);
199 (void) ioctl(SHIN, TIOCGET
[all...]
H A Dsh.c124 int SHIN; member in struct:saved_state
463 if (loginsh && isatty(SHIN)) {
464 ttyn = ttyname(SHIN);
465 xclose(SHIN);
466 SHIN = xopen(ttyn, O_RDWR|O_LARGEFILE);
468 (void) ioctl (SHIN, TIOCSPGRP, (ioctl_t) &shpgrp);
483 if ((ttyn = ttyname(SHIN)) != NULL) {
1074 if ((SHIN = dmove(nofile, FSHIN)) < 0)
1077 SHIN = FSHIN;
1080 SHIN
[all...]
H A Dsh.exec.c228 SHIN = 0;
530 int SHIN, SHOUT, SHDIAG, OLDSTD; member in struct:execash_state
553 xclose(SHIN);
557 close_on_exec(SHIN = dmove(state->saveIN, state->SHIN), 1);
587 state.SHIN = SHIN;
592 (void)close_on_exec (state.saveIN = dcopy(SHIN, -1), 1);
599 (void)close_on_exec (SHIN = dcopy(0, -1), 1);
H A Dsh.lex.c1439 if (ioctl(SHIN, TCGETA, (ioctl_t) & tty) == 0 &&
1442 if (ioctl(SHIN, TIOCGETP, (ioctl_t) & tty) == 0 &&
1446 if (tcgetattr(SHIN, &tty) == 0 &&
1450 if (isatty(SHIN))
1613 (void) lseek(SHIN, fseekp, L_SET);
1626 c = wide_read(SHIN, fbuf[0], BUFSIZE, 1);
1677 c = wide_read(SHIN, fbuf[buf] + off, roomleft, 0);
1681 if (c == 0 || (c < 0 && fixio(SHIN, errno) == -1))
1817 (void) lseek(SHIN, (off_t) 0, L_XTND);
1835 if ((x = lseek(SHIN, (off_
[all...]
H A Ded.inputl.c128 (void) ioctl(SHIN, FIONREAD, (ioctl_t) & chrs);
251 if (xread(SHIN, &tch, 1) < 0) {
777 return 0; /* oops: SHIN was closed */
788 while ((num_read = xread(SHIN, cbuf + cbp, 1)) == -1) {
789 if (!tried && fixio(SHIN, errno) != -1)
H A Dsh.sem.c446 oSHIN = SHIN;
482 SHIN = oSHIN;
669 xclose(SHIN);
670 SHIN = -1;
838 (void) dcopy(SHIN, 0);
H A Ded.init.c58 #define SHTTY (insource ? OLDSTD : SHIN)
627 (void) ioctl(SHIN, FIONREAD, (ioctl_t) &chrs);
631 chrs = xread(SHIN, buf, min(chrs, BUFSIZE - 1));
H A Dsh.misc.c272 if (f != SHIN && f != SHOUT && f != SHDIAG && f != OLDSTD &&
307 SHIN = 0;
H A Dtw.comp.c369 (void) dcopy(SHIN, 0);
H A Ded.chared.c3389 (void) xwrite(SHIN, "\n", 1);
3392 (void) ioctl(SHIN, TIOCSTI, (ioctl_t) &buf[i]);
3568 if (ioctl(SHIN, TIOCSTAT, (ioctl_t) &c) < 0)
H A Ded.screen.c1521 * true if the size was changed. This can fail if SHIN
1536 if (ioctl(SHIN, TIOCGWINSZ, (ioctl_t) &ws) != -1) {
1550 if (ioctl(SHIN, TIOCGSIZE, (ioctl_t) &ts) != -1) {
H A Dsh.func.c509 xclose(SHIN);
2394 int SHIN, SHOUT, SHDIAG; member in struct:doeval_state
2410 xclose(SHIN);
2413 close_on_exec(SHIN = dmove(state->saveIN, state->SHIN), 1);
2453 state.SHIN = SHIN;
2457 (void)close_on_exec(state.saveIN = dcopy(SHIN, -1), 1);
2475 (void)close_on_exec(SHIN = dcopy(0, -1), 1);
H A Dsh.h665 EXTERN int SHIN IZERO; /* Current shell input (script) */
H A Dtc.os.c97 (void) dcopy(SHIN, 0);

Completed in 277 milliseconds