Home
last modified time | relevance | path

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

12345678910>>...31

/freebsd-9-stable/lib/libc/stdio/
Dscanf.c59 FLOCKFILE(stdin); in scanf()
60 ret = __svfscanf(stdin, __get_locale(), fmt, ap); in scanf()
61 FUNLOCKFILE(stdin); in scanf()
73 FLOCKFILE(stdin); in scanf_l()
74 ret = __svfscanf(stdin, locale, fmt, ap); in scanf_l()
75 FUNLOCKFILE(stdin); in scanf_l()
Dgets.c59 FLOCKFILE(stdin);
60 ORIENT(stdin, -1);
65 for (s = buf; (c = __sgetc(stdin)) != '\n';)
68 FUNLOCKFILE(stdin);
75 FUNLOCKFILE(stdin);
Dgetchar.c55 FLOCKFILE(stdin); in getchar()
58 retval = __sgetc(stdin); in getchar()
59 FUNLOCKFILE(stdin); in getchar()
67 return (__sgetc(stdin)); in getchar_unlocked()
Dvscanf.c60 FLOCKFILE(stdin);
61 retval = __svfscanf(stdin, locale, fmt, ap);
62 FUNLOCKFILE(stdin);
/freebsd-9-stable/usr.bin/mail/
Dtty.c83 if (tcgetattr(fileno(stdin), &ttybuf) < 0) { in grabh()
101 if (ioctl(fileno(stdin), TIOCEXT, &flag) < 0) in grabh()
112 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh()
120 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh()
127 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh()
135 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh()
148 tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh()
154 if (ioctl(fileno(stdin), TIOCEXT, &flag) < 0) in grabh()
213 clearerr(stdin); in readtty()
215 c = getc(stdin); in readtty()
[all …]
/freebsd-9-stable/sys/boot/ofw/libofw/
Dofw_console.c43 static ihandle_t stdin; variable
61 OF_getprop(chosen, "stdin", &stdin, sizeof(stdin)); in ofw_cons_probe()
100 if (OF_read(stdin, &ch, 1) > 0) in ofw_cons_getchar()
114 if (OF_read(stdin, &ch, 1) > 0) { in ofw_cons_poll()
/freebsd-9-stable/contrib/gdb/gdb/
Dtop.c787 int stdin_is_tty = ISATTY (stdin); in command_loop()
797 if (window_hook && instream == stdin) in command_loop()
801 if (instream == stdin && stdin_is_tty) in command_loop()
806 command = command_line_input (instream == stdin ? in command_loop()
808 instream == stdin, "prompt"); in command_loop()
822 execute_command (command, instream == stdin); in command_loop()
861 int stdin_is_tty = ISATTY (stdin); in simplified_command_loop()
866 if (instream == stdin && stdin_is_tty) in simplified_command_loop()
871 command = (*read_input_func) (instream == stdin ? in simplified_command_loop()
877 (*execute_command_func) (command, instream == stdin); in simplified_command_loop()
[all …]
Devent-top.c413 quit_command ((char *) 0, stdin == instream); in stdin_event_handler()
467 int stdin_is_tty = ISATTY (stdin); in command_handler()
478 if (instream == stdin && stdin_is_tty) in command_handler()
488 quit_command ((char *) 0, stdin == instream); in command_handler()
500 execute_command (command, instream == stdin); in command_handler()
610 int repeat = (instream == stdin); in command_line_handler()
612 if (annotation_level > 1 && instream == stdin) in command_line_handler()
718 if (history_expansion_p && instream == stdin in command_line_handler()
769 if (instream == stdin in command_line_handler()
770 && ISATTY (stdin) && *linebuffer) in command_line_handler()
[all …]
/freebsd-9-stable/usr.bin/uuencode/
Duuencode.c103 if (!freopen(*argv, "r", stdin) || fstat(fileno(stdin), &sb)) in main()
156 while ((n = fread(buf, 1, sizeof(buf), stdin))) { in base64_encode()
179 while ((n = fread(buf, 1, 45, stdin))) { in encode()
210 if (ferror(stdin)) in encode()
/freebsd-9-stable/crypto/openssl/doc/apps/
Dpasswd.pod15 [B<-stdin>]
25 taken from the named file for option B<-in file>, from stdin for
26 option B<-stdin>, or from the command line, or from the terminal otherwise.
55 =item B<-stdin>
57 Read passwords from B<stdin>.
/freebsd-9-stable/contrib/gdb/gdb/tui/
Dtui-hooks.c92 answer = tui_getc (stdin); in tui_query_hook()
93 clearerr (stdin); /* in case of C-d */ in tui_query_hook()
103 ans2 = tui_getc (stdin); in tui_query_hook()
104 clearerr (stdin); in tui_query_hook()
/freebsd-9-stable/crypto/openssh/
Dsshtty.c61 if (tcsetattr(fileno(stdin), TCSADRAIN, &_saved_tio) == -1) { in leave_raw_mode()
73 if (tcgetattr(fileno(stdin), &tio) == -1) { in enter_raw_mode()
91 if (tcsetattr(fileno(stdin), TCSADRAIN, &tio) == -1) { in enter_raw_mode()
/freebsd-9-stable/sys/dev/ofw/
Dofw_console.c107 static int stdin; variable
171 if (OF_getprop(chosen, "stdin", &stdin, sizeof(stdin)) == -1) { in ofw_cnprobe()
212 if (OF_read(stdin, &ch, 1) > 0) { in ofw_cngetc()
/freebsd-9-stable/contrib/expat/examples/
Doutline.c94 len = (int)fread(Buff, 1, BUFFSIZE, stdin); in main()
95 if (ferror(stdin)) { in main()
99 done = feof(stdin); in main()
/freebsd-9-stable/contrib/libstdc++/src/
Dios_init.cc90 new (&buf_cin_sync) stdio_sync_filebuf<char>(stdin); in Init()
107 new (&buf_wcin_sync) stdio_sync_filebuf<wchar_t>(stdin); in Init()
183 new (&buf_cin) stdio_filebuf<char>(stdin, ios_base::in); in sync_with_stdio()
192 new (&buf_wcin) stdio_filebuf<wchar_t>(stdin, ios_base::in); in sync_with_stdio()
/freebsd-9-stable/contrib/xz/src/lzmainfo/
Dlzmainfo.c143 if (f != stdin) in lzmainfo()
180 setmode(fileno(stdin), O_BINARY); in main()
189 if (lzmainfo("(stdin)", stdin)) in main()
196 if (lzmainfo("(stdin)", stdin)) in main()
/freebsd-9-stable/contrib/telnet/libtelnet/
Dread_password.c112 while (!fgets(s, max, stdin));
119 if (!fgets(key_string, sizeof(key_string), stdin)) {
120 clearerr(stdin);
/freebsd-9-stable/usr.bin/tset/
Dterm.c130 if (feof(stdin) || ferror(stdin)) { in askuser()
141 if (fgets(answer, sizeof(answer), stdin) == NULL) { in askuser()
/freebsd-9-stable/sys/contrib/xz-embedded/userspace/
Dboottest.c29 return fread(buf, 1, size, stdin); in fill()
41 in_size = fread(in, 1, sizeof(in), stdin); in test_buf_to_buf()
52 in_size = fread(in, 1, sizeof(in), stdin); in test_buf_to_cb()
/freebsd-9-stable/usr.bin/colcrt/
Dcolcrt.c105 if (freopen(argv[0], "r", stdin) == NULL) { in main()
113 c = getwc(stdin); in main()
130 c = getwc(stdin); in main()
195 if (ferror(stdin)) in main()
/freebsd-9-stable/usr.bin/hexdump/
Ddisplay.c278 length == -1 ? need : MIN(length, need), stdin); in get()
280 if (ferror(stdin)) in get()
328 ungetc(c, stdin); in peek()
346 if (!(freopen(*_argv, "r", stdin))) { in next()
375 if (fstat(fileno(stdin), &sb)) in doskip()
384 if (fseeko(stdin, skip, SEEK_SET)) in doskip()
/freebsd-9-stable/contrib/libreadline/examples/
Drlcat.c160 return (fcopy(stdin));
165 fp = stdin;
176 if (fp != stdin)
/freebsd-9-stable/tools/tools/vt/setfont/
Dsetfont.c31 if (fread(t, sizeof *t * nmappings, 1, stdin) != 1) { in load_mappingtable()
52 if (fread(&fh, sizeof fh, 1, stdin) != 1) { in main()
71 if (fread(vfnt.glyphs, glyphsize, 1, stdin) != 1) { in main()
/freebsd-9-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/mib/
Dtst.tcp.ksh49 $dtrace -o $dtraceout -s /dev/stdin <<EOF
81 perl /dev/stdin /dev/stdout << EOF
108 perl /dev/stdin /dev/stdout <<EOF
/freebsd-9-stable/usr.bin/tail/
Dtail.c218 if (fstat(fileno(stdin), &sb)) { in main()
227 if (lseek(fileno(stdin), (off_t)0, SEEK_CUR) == -1 && in main()
234 reverse(stdin, fn, style, off, &sb); in main()
236 forward(stdin, fn, style, off, &sb); in main()

12345678910>>...31