Home
last modified time | relevance | path

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

12345678910>>...33

/freebsd-14.2/usr.bin/mail/
H A 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()
150 tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh()
156 if (ioctl(fileno(stdin), TIOCEXT, &flag) < 0) in grabh()
218 clearerr(stdin); in readtty()
220 c = getc(stdin); in readtty()
229 if (c == EOF && ferror(stdin)) { in readtty()
[all …]
/freebsd-14.2/stand/libofw/
H A Dofw_console.c40 static ihandle_t stdin; variable
58 OF_getprop(chosen, "stdin", &stdin, sizeof(stdin)); in ofw_cons_probe()
101 if (OF_read(stdin, &ch, 1) > 0 && ch != '\0') in ofw_cons_getchar()
115 if (OF_read(stdin, &ch, 1) > 0) { in ofw_cons_poll()
/freebsd-14.2/lib/libc/stdio/
H A Dscanf.c58 FLOCKFILE_CANCELSAFE(stdin); in scanf()
59 ret = __svfscanf(stdin, __get_locale(), fmt, ap); in scanf()
72 FLOCKFILE_CANCELSAFE(stdin); in scanf_l()
73 ret = __svfscanf(stdin, locale, fmt, ap); in scanf_l()
H A Dgets_s.c52 ORIENT(stdin, -1); in _gets_s()
53 for (s = buf, n--; (c = __sgetc(stdin)) != '\n' && n > 0 ; n--) { in _gets_s()
69 while ((c = __sgetc(stdin)) != '\n' && c != EOF); in _gets_s()
95 FLOCKFILE_CANCELSAFE(stdin); in gets_s()
H A Dgetchar.c54 FLOCKFILE_CANCELSAFE(stdin); in getchar()
57 retval = __sgetc(stdin); in getchar()
66 return (__sgetc(stdin)); in getchar_unlocked()
H A Dgets.c54 FLOCKFILE_CANCELSAFE(stdin); in __gets_unsafe()
55 ORIENT(stdin, -1); in __gets_unsafe()
60 for (s = buf; (c = __sgetc(stdin)) != '\n'; ) { in __gets_unsafe()
/freebsd-14.2/usr.bin/bintrans/
H A Duuencode.c83 if (in != NULL && freopen(in, "r", stdin) == NULL) in main_base64_encode()
132 if (!freopen(*argv, "r", stdin) || fstat(fileno(stdin), &sb)) in main_encode()
186 while ((n = fread(buf, 1, sizeof(buf), stdin))) { in base64_encode()
221 while ((n = fread(buf, 1, 45, stdin))) { in encode()
252 if (ferror(stdin)) in encode()
/freebsd-14.2/crypto/openssh/
H A Dfreebsd-configure.sh24 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 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-14.2/usr.bin/hexdump/
H A Ddisplay.c286 length == -1 ? need : MIN(length, need), stdin); in get()
288 if (ferror(stdin)) in get()
338 ungetc(c, stdin); in peek()
356 if (!(freopen(*_argv, "r", stdin))) { in next()
369 if (caph_limit_stream(fileno(stdin), CAPH_READ) < 0) in next()
398 if (fstat(fileno(stdin), &sb)) in doskip()
411 if (ioctl(fileno(stdin), FIODTYPE, &type)) in doskip()
422 if (fseeko(stdin, skip, SEEK_SET)) { in doskip()
/freebsd-14.2/sys/contrib/openzfs/cmd/zstream/
H A Dzstream_recompress.c143 while (sfread(drr, sizeof (*drr), stdin) != 0) { in zstream_do_recompress()
174 (void) sfread(buf, sz, stdin); in zstream_do_recompress()
206 (void) sfread(buf, payload_size, stdin); in zstream_do_recompress()
216 (void) sfread(buf, payload_size, stdin); in zstream_do_recompress()
247 (void) sfread(buf, payload_size, stdin); in zstream_do_recompress()
272 (void) sfread(cbuf, payload_size, stdin); in zstream_do_recompress()
319 (void) sfread(buf, payload_size, stdin); in zstream_do_recompress()
H A Dzstream_decompress.c163 while (sfread(drr, sizeof (*drr), stdin) != 0) { in zstream_do_decompress()
193 (void) sfread(buf, sz, stdin); in zstream_do_decompress()
225 (void) sfread(buf, payload_size, stdin); in zstream_do_decompress()
235 (void) sfread(buf, payload_size, stdin); in zstream_do_decompress()
290 (void) sfread(lzbuf, payload_size, stdin); in zstream_do_decompress()
335 (void) sfread(buf, payload_size, stdin); in zstream_do_decompress()
347 (void) sfread(buf, payload_size, stdin); in zstream_do_decompress()
/freebsd-14.2/contrib/flex/src/
H A Dfilter.c165 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-14.2/cddl/contrib/opensolaris/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
/freebsd-14.2/usr.bin/locate/bigram/
H A Dlocate.bigram.c71 while (fgets(path, sizeof(buf2), stdin) != NULL) { in main()
99 if (!feof(stdin) || ferror(stdin)) in main()
/freebsd-14.2/tests/sys/net/
H A Dif_wg.sh66 private-key /dev/stdin
70 private-key /dev/stdin
133 private-key /dev/stdin
137 private-key /dev/stdin
211 private-key /dev/stdin
253 private-key /dev/stdin
257 private-key /dev/stdin
310 private-key /dev/stdin
313 private-key /dev/stdin
/freebsd-14.2/contrib/expat/examples/
H A Delements.c99 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 Doutline.c102 const size_t len = fread(buf, 1, BUFSIZ, stdin); in main()
104 if (ferror(stdin)) { in main()
110 done = feof(stdin); in main()
/freebsd-14.2/sys/dev/ofw/
H A Dofw_console.c109 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-14.2/contrib/telnet/libtelnet/
H A Dread_password.c104 while (!fgets(s, max, stdin));
111 if (!fgets(key_string, sizeof(key_string), stdin)) {
112 clearerr(stdin);
/freebsd-14.2/contrib/xz/src/lzmainfo/
H A Dlzmainfo.c145 if (f != stdin) in lzmainfo()
182 setmode(fileno(stdin), O_BINARY); in main()
191 if (lzmainfo("(stdin)", stdin)) in main()
198 if (lzmainfo("(stdin)", stdin)) in main()
/freebsd-14.2/usr.bin/tail/
H A Dtail.c253 if (fstat(fileno(stdin), &sb)) { in main()
262 if (lseek(fileno(stdin), (off_t)0, SEEK_CUR) == -1 && in main()
269 reverse(stdin, fn, style, off, &sb); in main()
272 file.fp = stdin; in main()
276 forward(stdin, fn, style, off, &sb); in main()
/freebsd-14.2/sys/contrib/xz-embedded/userspace/
H A Dboottest.c32 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-14.2/crypto/openssl/doc/man1/
H A Dopenssl-passwd.pod.in19 [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-14.2/contrib/mandoc/
H A Dtest-fgetln.c9 fclose(stdin); in main()
10 return(NULL != fgetln(stdin, &sz)); in main()

12345678910>>...33