| /freebsd-13.1/usr.bin/mail/ |
| H A D | tty.c | 85 if (tcgetattr(fileno(stdin), &ttybuf) < 0) { in grabh() 103 if (ioctl(fileno(stdin), TIOCEXT, &flag) < 0) in grabh() 114 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh() 122 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh() 129 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh() 150 tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh() 156 if (ioctl(fileno(stdin), TIOCEXT, &flag) < 0) in grabh() 215 clearerr(stdin); in readtty() 217 c = getc(stdin); in readtty() 226 if (c == EOF && ferror(stdin)) { in readtty() [all …]
|
| /freebsd-13.1/stand/libofw/ |
| H A D | ofw_console.c | 43 static ihandle_t stdin; variable 61 OF_getprop(chosen, "stdin", &stdin, sizeof(stdin)); in ofw_cons_probe() 104 if (OF_read(stdin, &ch, 1) > 0 && ch != '\0') in ofw_cons_getchar() 118 if (OF_read(stdin, &ch, 1) > 0) { in ofw_cons_poll()
|
| /freebsd-13.1/lib/libc/stdio/ |
| H A D | scanf.c | 61 FLOCKFILE_CANCELSAFE(stdin); in scanf() 62 ret = __svfscanf(stdin, __get_locale(), fmt, ap); in scanf() 75 FLOCKFILE_CANCELSAFE(stdin); in scanf_l() 76 ret = __svfscanf(stdin, locale, fmt, ap); in scanf_l()
|
| H A D | gets_s.c | 55 ORIENT(stdin, -1); in _gets_s() 56 for (s = buf, n--; (c = __sgetc(stdin)) != '\n' && n > 0 ; n--) { in _gets_s() 72 while ((c = __sgetc(stdin)) != '\n' && c != EOF); in _gets_s() 98 FLOCKFILE_CANCELSAFE(stdin); in gets_s()
|
| H A D | getchar.c | 57 FLOCKFILE_CANCELSAFE(stdin); in getchar() 60 retval = __sgetc(stdin); in getchar() 69 return (__sgetc(stdin)); in getchar_unlocked()
|
| H A D | gets.c | 57 FLOCKFILE_CANCELSAFE(stdin); in __gets_unsafe() 58 ORIENT(stdin, -1); in __gets_unsafe() 63 for (s = buf; (c = __sgetc(stdin)) != '\n'; ) { in __gets_unsafe()
|
| H A D | getwchar.c | 53 return (fgetwc(stdin)); in getwchar() 58 return (fgetwc_l(stdin, locale)); in getwchar_l()
|
| /freebsd-13.1/usr.bin/uuencode/ |
| H A D | uuencode.c | 109 if (!freopen(*argv, "r", stdin) || fstat(fileno(stdin), &sb)) in main() 163 while ((n = fread(buf, 1, sizeof(buf), stdin))) { in base64_encode() 188 while ((n = fread(buf, 1, 45, stdin))) { in encode() 219 if (ferror(stdin)) in encode()
|
| /freebsd-13.1/crypto/openssl/ |
| H A D | e_os.h | 179 # if defined(_MSC_VER) && !defined(_WIN32_WCE) && !defined(_DLL) && defined(stdin) 181 # undef stdin 185 # define stdin (&__iob_func()[0]) macro 189 # undef stdin 200 # define stdin (&_imp___iob[0]) macro
|
| /freebsd-13.1/usr.bin/hexdump/ |
| H A D | display.c | 286 length == -1 ? need : MIN(length, need), stdin); in get() 288 if (ferror(stdin)) in get() 336 ungetc(c, stdin); in peek() 354 if (!(freopen(*_argv, "r", stdin))) { in next() 367 if (caph_limit_stream(fileno(stdin), CAPH_READ) < 0) in next() 396 if (fstat(fileno(stdin), &sb)) in doskip() 409 if (ioctl(fileno(stdin), FIODTYPE, &type)) in doskip() 420 if (fseeko(stdin, skip, SEEK_SET)) { in doskip()
|
| /freebsd-13.1/contrib/flex/src/ |
| H A D | filter.c | 165 clearerr(stdin); in filter_apply_chain() 166 if (dup2 (pipes[0], fileno (stdin)) == -1) in filter_apply_chain() 169 fseek (stdin, 0, SEEK_CUR); in filter_apply_chain() 170 ungetc(' ', stdin); /* still an evil hack, but one that works better */ in filter_apply_chain() 171 (void)fgetc(stdin); /* on NetBSD than the fseek attempt does */ in filter_apply_chain() 289 while (fgets (buf, readsz, stdin)) { in filter_tee_header() 352 while (fgets (buf, (int) readsz, stdin)) { in filter_fix_linedirs()
|
| /freebsd-13.1/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/aggs/ |
| H A D | tst.aggpackbanner.ksh | 64 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
|
| /freebsd-13.1/crypto/openssh/ |
| H A D | freebsd-configure.sh | 27 export CC=$(echo ".include <bsd.lib.mk>" | make -f /dev/stdin -VCC) 28 export CPP=$(echo ".include <bsd.lib.mk>" | make -f /dev/stdin -VCPP) 44 grep -Ff /dev/stdin config.h.kerberos5 >> krb5_config.h
|
| H A D | sshtty.c | 61 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-13.1/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/ |
| H A D | PythonReadline.cpp | 43 simple_readline(FILE *stdin, FILE *stdout, const char *prompt) in simple_readline() argument 45 simple_readline(FILE *stdin, FILE *stdout, char *prompt) in simple_readline() 48 rl_instream = stdin; in simple_readline()
|
| /freebsd-13.1/sys/dev/ofw/ |
| H A D | ofw_console.c | 111 static pcell_t stdin; variable 173 if (OF_getencprop(chosen, "stdin", &stdin, sizeof(stdin)) == -1) { in ofw_cnprobe() 214 if (OF_read(stdin, &ch, 1) > 0) { in ofw_cngetc()
|
| /freebsd-13.1/usr.bin/tail/ |
| H A D | tail.c | 246 if (fstat(fileno(stdin), &sb)) { in main() 255 if (lseek(fileno(stdin), (off_t)0, SEEK_CUR) == -1 && in main() 262 reverse(stdin, fn, style, off, &sb); in main() 265 file.fp = stdin; in main() 268 forward(stdin, fn, style, off, &sb); in main()
|
| /freebsd-13.1/contrib/expat/examples/ |
| H A D | outline.c | 103 len = (int)fread(Buff, 1, BUFFSIZE, stdin); in main() 104 if (ferror(stdin)) { in main() 108 done = feof(stdin); in main()
|
| /freebsd-13.1/contrib/telnet/libtelnet/ |
| H A D | read_password.c | 108 while (!fgets(s, max, stdin)); 115 if (!fgets(key_string, sizeof(key_string), stdin)) { 116 clearerr(stdin);
|
| /freebsd-13.1/contrib/xz/src/lzmainfo/ |
| H A D | lzmainfo.c | 143 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-13.1/usr.bin/tset/ |
| H A D | term.c | 132 if (feof(stdin) || ferror(stdin)) { in askuser() 143 if (fgets(answer, sizeof(answer), stdin) == NULL) { in askuser()
|
| /freebsd-13.1/sys/contrib/xz-embedded/userspace/ |
| H A D | boottest.c | 32 return fread(buf, 1, size, stdin); in fill() 44 in_size = fread(in, 1, sizeof(in), stdin); in test_buf_to_buf() 55 in_size = fread(in, 1, sizeof(in), stdin); in test_buf_to_cb()
|
| /freebsd-13.1/contrib/mandoc/ |
| H A D | test-fgetln.c | 9 fclose(stdin); in main() 10 return(NULL != fgetln(stdin, &sz)); in main()
|
| H A D | test-getline.c | 11 fclose(stdin); in main() 12 return getline(&line, &linesz, stdin) != -1; in main()
|
| /freebsd-13.1/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/mib/ |
| H A D | tst.tcp.ksh | 49 $dtrace -o $dtraceout -s /dev/stdin <<EOF 81 perl /dev/stdin /dev/stdout << EOF 108 perl /dev/stdin /dev/stdout <<EOF
|