Home
last modified time | relevance | path

Searched refs:stdin (Results 1 – 25 of 520) sorted by relevance

12345678910>>...21

/titanic_41/usr/src/lib/libc/port/stdio/
H A Dgets.c54 FLOCKFILE(lk, stdin); in gets()
56 _SET_ORIENTATION_BYTE(stdin); in gets()
58 if (!(stdin->_flag & (_IOREAD | _IORW))) { in gets()
64 if (stdin->_base == NULL) { in gets()
65 if ((bufend = _findbuf(stdin)) == 0) { in gets()
71 bufend = _bufend(stdin); in gets()
75 if (stdin->_cnt <= 0) /* empty buffer */ in gets()
77 if (__filbuf(stdin) != EOF) { in gets()
78 stdin->_ptr--; /* put back the character */ in gets()
79 stdin->_cnt++; in gets()
[all …]
H A Dvwscanf.c55 FLOCKFILE(lk, stdin); in _vwscanf_c89()
57 if (GET_NO_MODE(stdin)) in _vwscanf_c89()
58 _setorientation(stdin, _WC_MODE); in _vwscanf_c89()
61 ret = __wdoscan_u(stdin, fmt, ap, _F_INTMAX32); in _vwscanf_c89()
63 ret = __wdoscan_u(stdin, fmt, ap, 0); in _vwscanf_c89()
H A Dvscanf.c73 FLOCKFILE(lk, stdin); in _vscanf_c89()
75 _SET_ORIENTATION_BYTE(stdin); in _vscanf_c89()
78 ret = __doscan_u(stdin, fmt, ap, _F_INTMAX32); in _vscanf_c89()
80 ret = __doscan_u(stdin, fmt, ap, 0); in _vscanf_c89()
H A Dgetchar.c51 FILE *iop = stdin; in getchar()
63 FILE *iop = stdin; in getchar_unlocked()
/titanic_41/usr/src/lib/libbc/libc/stdio/common/
H A Dgets.c46 if (stdin->_cnt <= 0) { /* empty buffer */ in gets()
47 if (_filbuf(stdin) == EOF) { in gets()
52 stdin->_ptr--; in gets()
53 stdin->_cnt++; in gets()
55 n = stdin->_cnt; in gets()
56 if ((p = memccpy(ptr, (char *) stdin->_ptr, '\n', n)) != NULL) in gets()
59 stdin->_cnt -= n; in gets()
60 stdin->_ptr += n; in gets()
61 _BUFSYNC(stdin); in gets()
H A Dscanf.c65 ret_val = _doscan(stdin, nf, newap); in scanf()
73 return(_doscan(stdin, newform, newap)); in scanf()
75 ret_val = _doscan(stdin, fmt, ap); in scanf()
100 ret_val = _doscan(stdin, nf, newap); in fscanf()
133 ret_val = _doscan(stdin, nf, newap); in sscanf()
/titanic_41/usr/src/cmd/ldap/common/
H A Dldaptest.c60 getaline( buf, sizeof(buf), stdin, prompt ); in get_list()
159 getaline( buf, sizeof(buf), stdin, prompt1 ); in get_modlist()
166 getaline( buf, sizeof(buf), stdin, prompt2 ); in get_modlist()
227 getaline( dn, sizeof(dn), stdin, in bind_prompt()
238 getaline( dn, sizeof(dn), stdin, "re-bind dn? " ); in bind_prompt()
243 getaline( passwd, sizeof(passwd), stdin, in bind_prompt()
392 while ( getaline( line, sizeof(line), stdin, "\ncommand? " ) != NULL ) { in main()
401 getaline( dn, sizeof(dn), stdin, "dn? " ); in main()
422 getaline( line, sizeof(line), stdin, "msgid? " ); in main()
436 getaline( line, sizeof(line), stdin, in main()
[all …]
/titanic_41/usr/src/cmd/strings/
H A Dstrings.c111 int fd = fileno(stdin); in look_in_sections()
168 (void) fseek(stdin, (long)shdr.sh_offset, 0); in look_in_sections()
299 if (freopen(argv[optind], "r", stdin) == NULL) {
313 sizeof (ahdr), stdin);
314 htype = ismagic(hsize, &ahdr, stdin);
318 (void) fseek(stdin, (long)ADATAPOS(&ahdr), 0);
335 (void) fseek(stdin, (long)0, 0);
354 c = getc(stdin);
361 ftell(stdin) - cc - 1);
366 ftell(stdin) - cc - 1);
[all …]
/titanic_41/usr/src/cmd/mailx/
H A Dtty.c224 c = getc(stdin); in readtty()
265 if (c==EOF || ferror(stdin) || c==c_intr || c==c_quit) { in readtty()
275 clearerr(stdin); in readtty()
281 clearerr(stdin); in readtty()
483 if (gtty(fileno(stdin), &ttybuf) < 0) { in grabh()
499 ttyset++, stty(fileno(stdin), &ttybuf); in grabh()
508 ttyset++, stty(fileno(stdin), &ttybuf); in grabh()
517 ttyset++, stty(fileno(stdin), &ttybuf); in grabh()
526 ttyset++, stty(fileno(stdin), &ttybuf); in grabh()
535 ttyset++, stty(fileno(stdin), &ttybuf); in grabh()
[all …]
/titanic_41/usr/src/cmd/refer/
H A Daddbib.c115 fgets(line, BUFSIZ, stdin); in addbib()
123 if (fgets(line, BUFSIZ, stdin) == NULL) { in addbib()
124 clearerr(stdin); in addbib()
144 fgets(line, BUFSIZ, stdin); in addbib()
163 while (fgets(line, BUFSIZ, stdin)) { in addbib()
170 clearerr(stdin); in addbib()
179 fgets(line, BUFSIZ, stdin); in addbib()
H A Dlookbib.c54 if (isatty(fileno(stdin))) { in main()
56 fgets(s, BUFSIZ, stdin); in main()
62 if (fgets(s, BUFSIZ, stdin)) { in main()
/titanic_41/usr/src/cmd/power/
H A Dpm_pam_conv.c78 (void) ioctl(fileno(stdin), TCGETA, &tty); in getinput()
81 (void) ioctl(fileno(stdin), TCSETAF, &tty); in getinput()
84 flockfile(stdin); in getinput()
93 funlockfile(stdin); in getinput()
97 (void) ioctl(fileno(stdin), TCSETAW, &tty); in getinput()
/titanic_41/usr/src/tools/onbld/Checks/
H A DProcessCheck.py56 stdin=subprocess.PIPE, stdout=tmpfile,
63 p.stdin.write(line)
65 p.stdin.close()
/titanic_41/usr/src/cmd/dtrace/test/tst/common/aggs/
H A Dtst.aggpackbanner.ksh64 dtrace -qs /dev/stdin -x encoding=utf8 <<EOF
68 dtrace -qs /dev/stdin -x encoding=ascii -x aggzoom <<EOF
72 dtrace -qs /dev/stdin -x encoding=utf8 -x aggzoom <<EOF
/titanic_41/usr/src/cmd/ssh/ssh/
H A Dsshtty.c65 if (tcsetattr(fileno(stdin), TCSADRAIN, &_saved_tio) == -1) in leave_raw_mode()
78 if (tcgetattr(fileno(stdin), &tio) == -1) { in enter_raw_mode()
92 if (tcsetattr(fileno(stdin), TCSADRAIN, &tio) == -1) in enter_raw_mode()
H A Dclientloop.c147 (void) fcntl(fileno(stdin), F_SETFL, 0); in leave_non_blocking()
159 (void) fcntl(fileno(stdin), F_SETFL, O_NONBLOCK); in enter_non_blocking()
344 len = read(fileno(stdin), buf, 1); in client_check_initial_eof_on_stdin()
434 if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) < 0) in client_check_window_change()
502 FD_SET(fileno(stdin), *readsetp); in client_wait_until_can_do_something()
583 ioctl(fileno(stdin), TIOCGWINSZ, &oldws); in client_suspend_self()
589 if (ioctl(fileno(stdin), TIOCGWINSZ, &newws) >= 0 && in client_suspend_self()
944 if (FD_ISSET(fileno(stdin), readset)) { in client_process_input()
946 len = read(fileno(stdin), buf, sizeof(buf)); in client_process_input()
1109 if (!isatty(fileno(stdin))) in client_loop()
[all …]
/titanic_41/usr/src/lib/efcode/engine/
H A Dsignal.c60 ioctl(fileno(stdin), TCSETA, &saved_termio); in process_signal()
65 ioctl(fileno(stdin), TCSETA, &saved_termio); in process_signal()
78 ioctl(fileno(stdin), TCGETA, &saved_termio); in install_handlers()
/titanic_41/usr/src/cmd/spell/
H A Dhashcheck.c89 (void) rhuff(stdin); in main()
90 (void) fread((char *)hindex, sizeof (*hindex), NI, stdin); in main()
92 (void) fread((char *)table, sizeof (*table), hindex[NI-1], stdin); in main()
/titanic_41/usr/src/lib/libc/port/i18n/
H A Dgetwchar.c53 return (getwc(stdin)); in getwchar()
59 return (__getwc_xpg5(stdin)); in __getwchar_xpg5()
/titanic_41/usr/src/cmd/dtrace/test/tst/common/mib/
H A Dtst.tcp.ksh49 $dtrace -o $dtraceout -s /dev/stdin <<EOF
81 perl /dev/stdin /dev/stdout << EOF
108 perl /dev/stdin /dev/stdout <<EOF
/titanic_41/usr/src/cmd/tail/
H A Dtail.c206 if (fstat(fileno(stdin), &sb)) { in main()
215 if (lseek(fileno(stdin), (off_t)0, SEEK_CUR) == -1 && in main()
222 reverse(stdin, fn, style, off, &sb); in main()
224 forward(stdin, fn, style, off, &sb); in main()
/titanic_41/usr/src/cmd/mail/
H A Dsendmail.c136 ttyf = isatty(fileno(stdin));
144 input = stdin;
160 while ((n = getaline(line, sizeof (line), stdin)) > 0) {
287 n = getaline(buf, sizeof (buf), stdin);
385 ? getaline(buf, sizeof (buf), stdin)
386 : fread(buf, 1, sizeof (buf), stdin);
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dmain.c178 fromatty = isatty(fileno(stdin)); in main()
360 if (fgets(line, sizeof (line), stdin) == 0) { in cmdscanner()
361 if (feof(stdin) || ferror(stdin)) in cmdscanner()
369 while (fgetc(stdin) != '\n' && !feof(stdin) && in cmdscanner()
370 !ferror(stdin)) in cmdscanner()
/titanic_41/usr/src/cmd/dtrace/test/tst/common/cpc/
H A Dtst.platformevent.ksh42 perl /dev/stdin /dev/stdout << EOF
59 $dtrace -s /dev/stdin << EOD
/titanic_41/usr/src/cmd/lp/filter/postscript/download/
H A Ddownload.c113 FILE *fp_in = stdin; /* next input file */
379 fp_in = stdin; in arguments()
383 if ( fp_in != stdin ) in arguments()
431 if ( fp_in == stdin ) { in download()
519 if ( fp_in != stdin ) in copyinput()

12345678910>>...21