| /freebsd/usr.bin/mail/ |
| H A D | tty.c | 77 if (tcgetattr(fileno(stdin), &ttybuf) < 0) { in grabh() 95 if (ioctl(fileno(stdin), TIOCEXT, &flag) < 0) in grabh() 106 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh() 114 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh() 121 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh() 129 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh() 144 tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh() 150 if (ioctl(fileno(stdin), TIOCEXT, &flag) < 0) in grabh() 212 clearerr(stdin); in readtty() 214 c = getc(stdin); in readtty() [all …]
|
| /freebsd/stand/libofw/ |
| H A D | ofw_console.c | 40 static ihandle_t stdin; variable 57 OF_getprop(chosen, "stdin", &stdin, sizeof(stdin)); in ofw_cons_probe() 100 if (OF_read(stdin, &ch, 1) > 0 && ch != '\0') in ofw_cons_getchar() 114 if (OF_read(stdin, &ch, 1) > 0) { in ofw_cons_poll()
|
| /freebsd/lib/libc/stdio/ |
| H A D | scanf.c | 55 FLOCKFILE_CANCELSAFE(stdin); in scanf() 56 ret = __svfscanf(stdin, __get_locale(), fmt, ap); in scanf() 69 FLOCKFILE_CANCELSAFE(stdin); in scanf_l() 70 ret = __svfscanf(stdin, locale, fmt, ap); in scanf_l()
|
| H A D | gets_s.c | 53 ORIENT(stdin, -1); in _gets_s() 54 for (s = buf, n--; (c = __sgetc(stdin)) != '\n' && n > 0 ; n--) { in _gets_s() 70 while ((c = __sgetc(stdin)) != '\n' && c != EOF); in _gets_s() 96 FLOCKFILE_CANCELSAFE(stdin); in __ssp_real()
|
| H A D | getchar.c | 51 FLOCKFILE_CANCELSAFE(stdin); in getchar() 54 retval = __sgetc(stdin); in getchar() 63 return (__sgetc(stdin)); in getchar_unlocked()
|
| H A D | gets.c | 51 FLOCKFILE_CANCELSAFE(stdin); in __gets_unsafe() 52 ORIENT(stdin, -1); in __gets_unsafe() 57 for (s = buf; (c = __sgetc(stdin)) != '\n'; ) { in __gets_unsafe()
|
| /freebsd/usr.bin/bintrans/ |
| H A D | uuencode.c | 71 if (in != NULL && freopen(in, "r", stdin) == NULL) in main_base64_encode() 120 if (!freopen(*argv, "r", stdin) || fstat(fileno(stdin), &sb)) in main_encode() 174 while ((n = fread(buf, 1, sizeof(buf), stdin))) { in base64_encode() 209 while ((n = fread(buf, 1, 45, stdin))) { in encode() 240 if (ferror(stdin)) in encode()
|
| /freebsd/crypto/openssh/ |
| H A D | freebsd-configure.sh | 24 export CC=$(echo ".include <bsd.lib.mk>" | make -f /dev/stdin -VCC) 25 export CPP=$(echo ".include <bsd.lib.mk>" | make -f /dev/stdin -VCPP) 52 grep -Ff /dev/stdin config.h.kerberos5 > krb5_config.h 57 grep -Ff /dev/stdin config.h.sk-builtin > sk_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/sys/contrib/openzfs/cmd/zstream/ |
| H A D | zstream_decompress.c | 166 while (sfread(drr, sizeof (*drr), stdin) != 0) { in zstream_do_decompress() 196 (void) sfread(buf, sz, stdin); in zstream_do_decompress() 228 (void) sfread(buf, payload_size, stdin); in zstream_do_decompress() 238 (void) sfread(buf, payload_size, stdin); in zstream_do_decompress() 267 (void) sfread(buf, payload_size, stdin); in zstream_do_decompress() 278 (void) sfread(buf, payload_size, stdin); in zstream_do_decompress() 294 (void) sfread(lzbuf, payload_size, stdin); in zstream_do_decompress() 340 (void) sfread(buf, payload_size, stdin); in zstream_do_decompress()
|
| H A D | zstream_recompress.c | 132 while (sfread(drr, sizeof (*drr), stdin) != 0) { in zstream_do_recompress() 163 (void) sfread(buf, sz, stdin); in zstream_do_recompress() 195 (void) sfread(buf, payload_size, stdin); in zstream_do_recompress() 205 (void) sfread(buf, payload_size, stdin); in zstream_do_recompress() 236 (void) sfread(buf, payload_size, stdin); in zstream_do_recompress() 261 (void) sfread(cbuf, payload_size, stdin); in zstream_do_recompress() 324 (void) sfread(buf, payload_size, stdin); in zstream_do_recompress()
|
| /freebsd/usr.bin/hexdump/ |
| H A D | display.c | 280 length == -1 ? need : MIN(length, need), stdin); in get() 282 if (ferror(stdin)) in get() 332 ungetc(c, stdin); in peek() 350 if (!(freopen(*_argv, "r", stdin))) { in next() 363 if (caph_limit_stream(fileno(stdin), CAPH_READ) < 0) in next() 392 if (fstat(fileno(stdin), &sb)) in doskip() 406 if (ioctl(fileno(stdin), FIODTYPE, &type)) in doskip() 417 if (fseeko(stdin, skip, SEEK_SET)) { in doskip()
|
| /freebsd/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/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/usr.bin/locate/bigram/ |
| H A D | locate.bigram.c | 58 while (fgets(path, sizeof(buf2), stdin) != NULL) { in main() 86 if (!feof(stdin) || ferror(stdin)) in main()
|
| /freebsd/contrib/expat/examples/ |
| H A D | elements.c | 99 const size_t len = fread(buf, 1, BUFSIZ, stdin); in main() 101 if (ferror(stdin)) { in main() 107 done = feof(stdin); in main()
|
| H A D | outline.c | 102 const size_t len = fread(buf, 1, BUFSIZ, stdin); in main() 104 if (ferror(stdin)) { in main() 110 done = feof(stdin); in main()
|
| /freebsd/sys/dev/ofw/ |
| H A D | ofw_console.c | 109 static pcell_t stdin; variable 171 if (OF_getencprop(chosen, "stdin", &stdin, sizeof(stdin)) == -1) { in ofw_cnprobe() 212 if (OF_read(stdin, &ch, 1) > 0) { in ofw_cngetc()
|
| /freebsd/contrib/telnet/libtelnet/ |
| H A D | read_password.c | 104 while (!fgets(s, max, stdin)); 111 if (!fgets(key_string, sizeof(key_string), stdin)) { 112 clearerr(stdin);
|
| /freebsd/usr.bin/tail/ |
| H A D | tail.c | 245 if (fstat(fileno(stdin), &sb)) { in main() 254 if (lseek(fileno(stdin), (off_t)0, SEEK_CUR) == -1 && in main() 261 reverse(stdin, fn, style, off, &sb); in main() 264 file.fp = stdin; in main() 268 forward(stdin, fn, style, off, &sb); in main()
|
| /freebsd/tests/sys/net/ |
| H A D | if_wg.sh | 65 private-key /dev/stdin 69 private-key /dev/stdin 133 private-key /dev/stdin 137 private-key /dev/stdin 208 private-key /dev/stdin 212 private-key /dev/stdin 285 private-key /dev/stdin 325 private-key /dev/stdin 329 private-key /dev/stdin 381 private-key /dev/stdin [all …]
|
| /freebsd/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/contrib/xz/src/lzmainfo/ |
| H A D | lzmainfo.c | 167 if (f != stdin) in lzmainfo() 203 setmode(fileno(stdin), O_BINARY); in main() 212 if (lzmainfo("(stdin)", stdin)) in main() 219 if (lzmainfo("(stdin)", stdin)) in main()
|
| /freebsd/crypto/openssl/doc/man1/ |
| H A D | openssl-passwd.pod.in | 19 [B<-stdin>] 32 taken from the named file for option B<-in>, from stdin for 33 option B<-stdin>, or from the command line, or from the terminal otherwise. 71 =item B<-stdin> 73 Read passwords from B<stdin>.
|
| /freebsd/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
|