Symbol: stdin
bin/cat/cat.c
148
cook_cat(stdin);
bin/cat/cat.c
173
if (fp == stdin && feof(stdin))
bin/cat/cat.c
174
clearerr(stdin);
bin/ed/buf.c
258
setbuffer(stdin, stdinbuf, 1);
bin/ed/glbl.c
105
clearerr(stdin);
bin/ed/io.c
280
if (ferror(stdin)) {
bin/ed/io.c
283
clearerr(stdin);
bin/ed/io.c
287
clearerr(stdin);
bin/ed/main.c
1028
clearerr(stdin);
bin/ed/main.c
185
clearerr(stdin);
bin/ed/main.c
194
clearerr(stdin);
bin/ed/sub.c
97
clearerr(stdin);
bin/pax/ftree.c
274
if (fgets(farray[0], PAXPATHLEN+1, stdin) == NULL)
bin/pax/options.c
1257
while ((str = get_line(stdin)) != NULL) {
bin/pax/options.c
868
fp = stdin;
bin/pax/options.c
941
fp = stdin;
bin/rm/rm.c
550
answer = fgetln(stdin, &len);
crypto/libressl/apps/openssl/apps.c
487
pwdbio = BIO_new_fp(stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/apps.c
594
setvbuf(stdin, NULL, _IONBF, 0);
crypto/libressl/apps/openssl/apps.c
595
BIO_set_fp(cert, stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/apps.c
649
setvbuf(stdin, NULL, _IONBF, 0);
crypto/libressl/apps/openssl/apps.c
650
BIO_set_fp(key, stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/apps.c
708
setvbuf(stdin, NULL, _IONBF, 0);
crypto/libressl/apps/openssl/apps.c
709
BIO_set_fp(key, stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/apps.c
778
bio = BIO_new_fp(stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/asn1pars.c
288
BIO_set_fp(in, stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/ca.c
1294
if (fgets(answer, sizeof answer - 1, stdin) ==
crypto/libressl/apps/openssl/ca.c
2210
if (!fgets(answer, sizeof(answer) - 1, stdin)) {
crypto/libressl/apps/openssl/cms.c
1362
if ((in = BIO_new_fp(stdin, BIO_NOCLOSE)) == NULL)
crypto/libressl/apps/openssl/crl.c
459
BIO_set_fp(in, stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/crl2p7.c
197
BIO_set_fp(in, stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/dgst.c
552
BIO_set_fp(in, stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/dh.c
185
BIO_set_fp(in, stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/dhparam.c
327
BIO_set_fp(in, stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/dsa.c
270
BIO_set_fp(in, stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/dsaparam.c
205
BIO_set_fp(in, stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/ec.c
301
BIO_set_fp(in, stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/ecparam.c
287
BIO_set_fp(in, stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/enc.c
475
setvbuf(stdin, (char *) NULL, _IONBF, 0);
crypto/libressl/apps/openssl/enc.c
476
BIO_set_fp(in, stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/nseq.c
133
in = BIO_new_fp(stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/openssl.c
499
if (!fgets(p, n, stdin))
crypto/libressl/apps/openssl/passwd.c
202
BIO_set_fp(in, stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/pkcs12.c
585
in = BIO_new_fp(stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/pkcs7.c
181
BIO_set_fp(in, stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/pkcs8.c
241
in = BIO_new_fp(stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/pkeyparam.c
149
in = BIO_new_fp(stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/pkeyutl.c
309
in = BIO_new_fp(stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/req.c
1467
if (!fgets(buf, sizeof buf, stdin))
crypto/libressl/apps/openssl/req.c
1520
if (!fgets(buf, sizeof buf, stdin))
crypto/libressl/apps/openssl/req.c
842
BIO_set_fp(in, stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/rsautl.c
317
in = BIO_new_fp(stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/s_client.c
1399
pfd[0].fd = fileno(stdin);
crypto/libressl/apps/openssl/s_client.c
1602
i = read(fileno(stdin), cbuf, BUFSIZZ / 2);
crypto/libressl/apps/openssl/s_client.c
1618
i = read(fileno(stdin), cbuf, BUFSIZZ);
crypto/libressl/apps/openssl/s_server.c
1634
pfd[0].fd = fileno(stdin);
crypto/libressl/apps/openssl/s_server.c
1668
i = read(fileno(stdin), buf, bufsize / 2);
crypto/libressl/apps/openssl/s_server.c
1684
i = read(fileno(stdin), buf, bufsize);
crypto/libressl/apps/openssl/sess_id.c
271
BIO_set_fp(in, stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/smime.c
890
if ((in = BIO_new_fp(stdin, BIO_NOCLOSE)) == NULL)
crypto/libressl/apps/openssl/spkac.c
244
in = BIO_new_fp(stdin, BIO_NOCLOSE);
crypto/libressl/apps/openssl/ts.c
550
(data_bio = BIO_open_with_default(data, "rb", stdin)) == NULL)
crypto/libressl/apps/openssl/x509.c
834
BIO_set_fp(in, stdin, BIO_NOCLOSE | BIO_FP_TEXT);
crypto/libressl/crypto/ui/ui_openssl.c
303
tty_in = stdin;
crypto/libressl/crypto/ui/ui_openssl.c
347
if (tty_in != stdin)
crypto/openssh/auth-pam.c
1154
if (fgets(input, sizeof input, stdin) == NULL)
crypto/openssh/sftp.c
1010
if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) != -1)
crypto/openssh/sftp.c
1842
if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) != -1)
crypto/openssh/sftp.c
2222
if ((el = el_init(__progname, stdin, stdout, stderr)) == NULL)
crypto/openssh/sftp.c
2468
infile = stdin;
crypto/openssh/sftp.c
875
if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) != -1)
crypto/openssh/ssh-add.c
143
while (getline(&line, &linesize, stdin) != -1) {
crypto/openssh/ssh-keygen.c
1585
if (!fgets(new_comment, sizeof(new_comment), stdin)) {
crypto/openssh/ssh-keygen.c
2192
f = stdin;
crypto/openssh/ssh-keygen.c
2295
krl_spec = stdin;
crypto/openssh/ssh-keygen.c
248
if (fgets(yesno, sizeof(yesno), stdin) == NULL)
crypto/openssh/ssh-keygen.c
3027
FILE *out, *in = stdin;
crypto/openssh/ssh-keygen.c
305
if (fgets(buf, sizeof(buf), stdin) == NULL)
crypto/openssh/ssh-keygen.c
3077
if (in != stdin)
crypto/openssh/ssh-keygen.c
3282
if (fgets(yesno, sizeof(yesno), stdin) == NULL)
crypto/openssh/ssh-keygen.c
975
f = stdin;
crypto/openssh/ssh-keyscan.c
818
fp = stdin;
crypto/openssh/ssh-keyscan.c
821
fp == stdin ? "<stdin>" : argv[j], strerror(errno));
crypto/openssh/ssh-keyscan.c
844
fp == stdin ? "<stdin>" : argv[j], strerror(errno));
crypto/openssh/ssh-keyscan.c
846
if (fp != stdin)
crypto/openssh/ssh.c
1411
if ((!isatty(fileno(stdin)) || options.stdin_null) &&
crypto/openssh/ssh.c
2159
NULL, fileno(stdin), command, environ);
crypto/openssh/sshtty.c
61
if (tcsetattr(fileno(stdin), TCSADRAIN, &_saved_tio) == -1) {
crypto/openssh/sshtty.c
73
if (tcgetattr(fileno(stdin), &tio) == -1) {
crypto/openssh/sshtty.c
91
if (tcsetattr(fileno(stdin), TCSADRAIN, &tio) == -1) {
games/arithmetic/arithmetic.c
231
if (!fgets(line, sizeof(line), stdin)) {
games/atc/graphics.c
69
clearerr(stdin);
games/atc/input.c
351
tcsetattr(fileno(stdin), TCSANOW, &tty_new);
games/atc/main.c
158
tcgetattr(fileno(stdin), &tty_start);
games/atc/main.c
163
tcsetattr(fileno(stdin), TCSANOW, &tty_new);
games/banner/banner.c
1064
if (fgets(message, MAXMSG, stdin) == NULL) {
games/battlestar/cypher.c
407
fgets(buffer, 10, stdin);
games/battlestar/cypher.c
411
fgets(buffer, 10, stdin);
games/battlestar/cypher.c
415
fgets(buffer, 10, stdin);
games/battlestar/cypher.c
419
fgets(buffer, 10, stdin);
games/battlestar/cypher.c
423
fgets(buffer, 10, stdin);
games/battlestar/cypher.c
427
fgets(buffer, 10, stdin);
games/battlestar/cypher.c
431
fgets(buffer, 10, stdin);
games/battlestar/cypher.c
435
fgets(buffer, 10, stdin);
games/battlestar/cypher.c
471
filename = fgetln(stdin, &filename_len);
games/battlestar/getcom.c
40
if (fgets(buf, size, stdin) == NULL) {
games/battlestar/getcom.c
41
if (feof(stdin))
games/battlestar/getcom.c
43
clearerr(stdin);
games/bcd/bcd.c
166
while (fgets(cardline, sizeof(cardline), stdin))
games/bcd/bcd.c
262
if (fgets(tmp, sizeof(tmp), stdin) == NULL)
games/bcd/bcd.c
265
if (fgets(tmp, sizeof(tmp), stdin) == NULL)
games/bcd/bcd.c
269
if (fgets(lines[i], sizeof(lines[i]), stdin) == NULL)
games/bcd/bcd.c
272
if (fgets(tmp, sizeof(tmp), stdin) == NULL)
games/boggle/boggle/bog.c
159
while ((p = batchword(stdin)) != NULL)
games/boggle/boggle/bog.c
194
flushin(stdin);
games/boggle/boggle/bog.c
275
if (feof(stdin))
games/boggle/boggle/bog.c
276
clearerr(stdin);
games/boggle/mkdict/mkdict.c
74
fgets(buf[current], MAXWORDLEN + 1, stdin) != NULL; ++nwords) {
games/boggle/mkdict/mkdict.c
77
while ((ch = getc(stdin)) != EOF && ch != '\n')
games/boggle/mkindex/mkindex.c
54
while (nextword(stdin, buf, &clen, &rlen) != NULL) {
games/ching/printching/printching.c
96
hexptr = fgets(hexstr, 6+1, stdin);
games/factor/factor.c
124
if (fgets(buf, sizeof(buf), stdin) == NULL) {
games/factor/factor.c
125
if (ferror(stdin))
games/fish/fish.c
147
if (fgets(buf, sizeof(buf), stdin) == NULL)
games/hack/hack.ioctl.c
77
(void) tcgetattr(fileno(stdin), &termios);
games/hack/hack.ioctl.c
83
(void) tcsetattr(fileno(stdin), TCSADRAIN, &termios);
games/hack/hack.tty.c
356
clearerr(stdin); /* omit if clearerr is
games/hunt/hunt/hunt.c
656
if (fgets(name, sizeof name, stdin) == NULL)
games/mille/varpush.c
81
fgets(buf, sizeof(buf), stdin);
games/monop/execute.c
244
fgets(buf, sizeof(buf), stdin);
games/monop/execute.c
245
if (feof(stdin))
games/monop/execute.c
333
fgets(buf, sizeof(buf), stdin);
games/monop/execute.c
334
if (feof(stdin))
games/monop/getinp.c
54
fgets(buf, sizeof(buf), stdin);
games/monop/getinp.c
55
if (feof(stdin)) {
games/monop/misc.c
101
if (feof(stdin))
games/monop/misc.c
287
if (feof(stdin))
games/monop/misc.c
99
fgets(buf, sizeof(buf), stdin);
games/monop/monop.c
272
fgets(buf, sizeof(buf), stdin);
games/monop/monop.c
273
if (feof(stdin)) {
games/morse/morse.c
537
ungetc(tch, stdin);
games/number/number.c
96
fgets(line, sizeof(line), stdin) != NULL; first = 0) {
games/ppt/ppt.c
109
if (!feof(stdin))
games/ppt/ppt.c
89
while (fgets(buf, sizeof(buf), stdin) != NULL) {
games/primes/primes.c
169
if (fgets(buf, sizeof(buf), stdin) == NULL) {
games/primes/primes.c
170
if (ferror(stdin))
games/quiz/quiz.c
257
if ((answer = fgetln(stdin, &len)) == NULL) {
games/random/random.c
168
if (ferror(stdin))
games/robots/flush_in.c
44
ioctl(fileno(stdin), TIOCFLUSH, NULL);
games/rogue/machdep.c
127
fpurge(stdin);
games/trek/computer.c
292
ungetc(i, stdin);
games/trek/getpar.c
224
ungetc(c, stdin);
games/trek/getpar.c
228
ungetc(c, stdin);
games/trek/getpar.c
246
ungetc('\n', stdin);
games/trek/getpar.c
267
ungetc(c, stdin);
games/trek/getpar.c
290
ungetc(c, stdin);
games/trek/torped.c
99
k = ungetc(getchar(), stdin);
games/wump/wump.c
224
if (!fgets(answer, sizeof(answer), stdin))
games/wump/wump.c
331
if (!fgets(answer, sizeof(answer), stdin))
games/wump/wump.c
641
if (!fgets(buf, sizeof(buf), stdin))
include/stdio.h
480
#define getchar() getc(stdin)
include/stdio.h
498
#define getchar_unlocked() getc_unlocked(stdin)
lib/libc/db/test/dbtest.c
124
if (strcmp(*argv, "-") && freopen(*argv, "r", stdin) == NULL)
lib/libc/db/test/dbtest.c
157
(p = fgets(buf, sizeof(buf), stdin)) != NULL; ++lineno) {
lib/libc/db/test/hash.tests/tcreat3.c
74
while ( fgets(wp1, 8192, stdin) &&
lib/libc/db/test/hash.tests/tcreat3.c
75
fgets(wp2, 8192, stdin) &&
lib/libc/db/test/hash.tests/tdel.c
76
while ( fgets(wp1, 8192, stdin) &&
lib/libc/db/test/hash.tests/tdel.c
77
fgets(wp2, 8192, stdin) &&
lib/libc/db/test/hash.tests/thash4.c
79
while ( fgets(wp1, 8192, stdin) &&
lib/libc/db/test/hash.tests/thash4.c
80
fgets(wp2, 8192, stdin) &&
lib/libc/db/test/hash.tests/tread2.c
75
while ( fgets(wp1, 8192, stdin) &&
lib/libc/db/test/hash.tests/tread2.c
76
fgets(wp2, 8192, stdin) &&
lib/libc/db/test/hash.tests/tverify.c
75
while ( fgets(wp1, 8192, stdin) &&
lib/libc/db/test/hash.tests/tverify.c
76
fgets(wp2, 8192, stdin) &&
lib/libc/stdio/fparseln.c
200
while ((ptr = fparseln(stdin, &size, &line, NULL,
lib/libc/stdio/getchar.c
53
FLOCKFILE(stdin);
lib/libc/stdio/getchar.c
54
retval = __sgetc(stdin);
lib/libc/stdio/getchar.c
55
FUNLOCKFILE(stdin);
lib/libc/stdio/getchar.c
62
return (__sgetc(stdin));
lib/libc/stdio/gets.c
54
FLOCKFILE(stdin);
lib/libc/stdio/gets.c
55
ORIENT(stdin, -1);
lib/libc/stdio/gets.c
60
for (s = buf; (c = __sgetc(stdin)) != '\n';)
lib/libc/stdio/gets.c
63
FUNLOCKFILE(stdin);
lib/libc/stdio/gets.c
70
FUNLOCKFILE(stdin);
lib/libc/stdio/gets_s.c
100
FLOCKFILE(stdin);
lib/libc/stdio/gets_s.c
106
FUNLOCKFILE(stdin);
lib/libc/stdio/gets_s.c
54
ORIENT(stdin, -1);
lib/libc/stdio/gets_s.c
55
for (s = buf, n--; (c = __sgetc(stdin)) != '\n' && n > 0 ; n--) {
lib/libc/stdio/gets_s.c
71
while ((c = __sgetc(stdin)) != '\n' && c != EOF);
lib/libc/stdio/gets_s.c
98
FLOCKFILE_CANCELSAFE(stdin);
lib/libc/stdio/getwchar.c
51
return (fgetwc(stdin));
lib/libc/stdio/getwchar.c
56
return (fgetwc_l(stdin, locale));
lib/libc/stdio/scanf.c
57
FLOCKFILE(stdin);
lib/libc/stdio/scanf.c
58
ret = __svfscanf(stdin, __get_locale(), fmt, ap);
lib/libc/stdio/scanf.c
59
FUNLOCKFILE(stdin);
lib/libc/stdio/scanf.c
71
FLOCKFILE(stdin);
lib/libc/stdio/scanf.c
72
ret = __svfscanf(stdin, locale, fmt, ap);
lib/libc/stdio/scanf.c
73
FUNLOCKFILE(stdin);
lib/libc/stdio/vscanf.c
55
FLOCKFILE(stdin);
lib/libc/stdio/vscanf.c
56
retval = __svfscanf(stdin, locale, fmt, ap);
lib/libc/stdio/vscanf.c
57
FUNLOCKFILE(stdin);
lib/libc/stdio/vwscanf.c
38
return (vfwscanf(stdin, fmt, ap));
lib/libc/stdio/vwscanf.c
44
return (vfwscanf_l(stdin, locale, fmt, ap));
lib/libc/stdio/wscanf.c
47
r = vfwscanf(stdin, fmt, ap);
lib/libc/stdio/wscanf.c
59
r = vfwscanf_l(stdin, locale, fmt, ap);
lib/libcrypt/crypt-blowfish.c
333
fgets(salt + 6, 94, stdin);
lib/libcrypt/crypt-blowfish.c
336
fpurge(stdin);
lib/libcrypt/crypt-blowfish.c
337
fgets(blubber, 73, stdin);
lib/libevtr/ktrfmt.yy.c
1807
__ktrfmtin = stdin;
lib/libevtr/ktrfmt.yy.c
757
__ktrfmtin = stdin;
lib/libstdbuf/stdbuf.c
114
change_buf(stdin, i_mode);
lib/libstdbuf/stdbuf.c
42
if (s == stdin)
lib/libtcplay/tcplay.c
687
if ((fgets(buf, sizeof(buf), stdin)) == NULL) {
lib/libtcplay/tcplay.c
726
if ((fgets(buf, sizeof(buf), stdin)) == NULL) {
lib/libtelnet/read_password.c
101
while (!fgets(s, max, stdin));
lib/libtelnet/read_password.c
108
if (!fgets(key_string, sizeof(key_string), stdin)) {
lib/libtelnet/read_password.c
109
clearerr(stdin);
libexec/dma/mail.c
407
while (!feof(stdin)) {
libexec/dma/mail.c
409
if ((linelen = getline(&line, &linecap, stdin)) <= 0)
libexec/fingerd/fingerd.c
98
if (!fgets(line, sizeof(line), stdin))
libexec/ftpd/ftpcmd.y
1307
n = get_line(cbuf, sizeof(cbuf)-1, stdin);
libexec/ftpd/ftpd.c
2768
ret = get_line(cp, 7, stdin);
libexec/ftpd/ftpd.c
568
if (fcntl(fileno(stdin), F_SETOWN, getpid()) == -1)
libexec/rbootd/rbootd.c
78
if (i != fileno(stdin) && i != fileno(stdout) &&
libexec/revnetgroup/revnetgroup.c
115
fp = stdin;
sbin/camcontrol/camcontrol.c
3024
if (fgets(str, sizeof(str), stdin) != NULL) {
sbin/camcontrol/camcontrol.c
3065
if (fgets(str, sizeof(str), stdin) != NULL) {
sbin/camcontrol/modeedit.c
720
if (!isatty(fileno(stdin))) {
sbin/camcontrol/modeedit.c
722
modepage_read(stdin);
sbin/fdisk/fdisk.c
1334
fp = stdin;
sbin/fdisk/fdisk.c
953
if (fgets(lbuf, LBUF, stdin) == NULL)
sbin/fdisk/fdisk.c
973
if (fgets(lbuf, LBUF, stdin) == NULL)
sbin/fsck/utilities.c
100
while (c != '\n' && getc(stdin) != '\n') {
sbin/fsck/utilities.c
101
if (feof(stdin)) {
sbin/fsck/utilities.c
99
c = getc(stdin);
sbin/fsck_msdosfs/main.c
146
if (feof(stdin))
sbin/fsdb/fsdb.c
223
elptr = el_init("fsdb", stdin, stdout, stderr);
sbin/gpt/label.c
156
f = stdin;
sbin/gpt/label.c
161
if (f != stdin)
sbin/growfs/growfs.c
2089
fgets(reply, (int)sizeof(reply), stdin);
sbin/hammer/misc.c
71
if (fgets(buf, sizeof(buf), stdin) == NULL)
sbin/hammer2/cmd_debug.c
208
if (fgets(buf, sizeof(buf), stdin) != NULL) {
sbin/hammer2/cmd_debug.c
234
} else if (feof(stdin)) {
sbin/hammer2/cmd_debug.c
241
clearerr(stdin);
sbin/ip6fw/ip6fw.c
1221
c = toupper(getc(stdin));
sbin/ip6fw/ip6fw.c
1222
while (c != '\n' && getc(stdin) != '\n')
sbin/ip6fw/ip6fw.c
1223
if (feof(stdin))
sbin/ipfw/ipfw2.c
3564
c = toupper(getc(stdin));
sbin/ipfw/ipfw2.c
3565
while (c != '\n' && getc(stdin) != '\n')
sbin/ipfw/ipfw2.c
3566
if (feof(stdin))
sbin/ipfw/ipfw2.c
3633
c = toupper(getc(stdin));
sbin/ipfw/ipfw2.c
3634
while (c != '\n' && getc(stdin) != '\n')
sbin/ipfw/ipfw2.c
3635
if (feof(stdin))
sbin/ipfw/ipfw2.c
3968
c = toupper(getc(stdin));
sbin/ipfw/ipfw2.c
3969
while (c != '\n' && getc(stdin) != '\n')
sbin/ipfw/ipfw2.c
3970
if (feof(stdin))
sbin/ipfw3/ipfw3.c
657
c = toupper(getc(stdin));
sbin/ipfw3/ipfw3.c
658
while (c != '\n' && getc(stdin) != '\n')
sbin/ipfw3/ipfw3.c
659
if (feof(stdin))
sbin/ipfw3/ipfw3dummynet.c
696
c = toupper(getc(stdin));
sbin/ipfw3/ipfw3dummynet.c
697
while (c != '\n' && getc(stdin) != '\n')
sbin/ipfw3/ipfw3dummynet.c
698
if (feof(stdin))
sbin/ipfw3/ipfw3nat.c
276
c = toupper(getc(stdin));
sbin/ipfw3/ipfw3nat.c
277
while (c != '\n' && getc(stdin) != '\n')
sbin/ipfw3/ipfw3nat.c
278
if (feof(stdin))
sbin/ipfw3/ipfw3state.c
116
c = toupper(getc(stdin));
sbin/ipfw3/ipfw3state.c
117
while (c != '\n' && getc(stdin) != '\n')
sbin/ipfw3/ipfw3state.c
118
if (feof(stdin))
sbin/md5/md5.c
588
while ((len = fread(buffer, 1, BUFSIZ, stdin))) {
sbin/restore/tape.c
118
terminal = stdin;
sbin/shutdown/shutdown.c
202
if (!fgets(p, endp - p + 1, stdin))
sbin/swapon/swapon.c
360
int c = fgetc(stdin);
sbin/vinum/commands.c
288
fgets(reply, sizeof(reply), stdin);
sbin/vinum/v.c
207
if (ferror(stdin)) {
share/examples/ppi/ppilcd.c
160
setvbuf(stdin, NULL, _IONBF, 0);
share/examples/ppi/ppilcd.c
161
while ((ch = fgetc(stdin)) != EOF)
sys/kern/subr_alist.c
1022
if (fgets(buf, sizeof(buf), stdin) == NULL)
sys/kern/subr_blist.c
1077
if (fgets(buf, sizeof(buf), stdin) == NULL)
sys/libkern/linux_idr.c
84
while (fgets(buf, sizeof(buf), stdin) != NULL) {
test/debug/posixlock.c
63
while (fgets(buf, sizeof(buf), stdin) != NULL) {
tools/regression/lib/libc-regex/testregex.c
1345
fp = stdin;
tools/regression/lib/libc-regex/testregex.c
2282
if (fp != stdin)
tools/tools/ath/athprom/athprom.c
151
if (fgets(line, sizeof(line), stdin) != NULL &&
tools/tools/usbtest/usbtest.c
124
if (fgets(buf, sizeof(buf), stdin) == NULL)
tools/tools/usbtest/usbtest.c
142
if (fgets(ptr, size, stdin) == NULL)
tools/tools/usbtest/usbtest.c
163
if (fgets(buf, sizeof(buf), stdin) == NULL)
usr.bin/asa/asa.c
62
asa(stdin);
usr.bin/at/at.c
331
fpin = freopen(atinput, "r", stdin);
usr.bin/at/at.c
427
if (ferror(stdin))
usr.bin/bc/bc.y
1158
el = el_init("bc", stdin, stderr, stderr);
usr.bin/bdes/bdes.c
101
#define READ(buf, n) fread(buf, sizeof(char), n, stdin)
usr.bin/bdes/bdes.c
532
(void)ungetc(c, stdin);
usr.bin/bdes/bdes.c
604
(void)ungetc(c, stdin);
usr.bin/bdes/bdes.c
738
(void)ungetc(c, stdin);
usr.bin/bdes/bdes.c
830
(void)ungetc(c, stdin);
usr.bin/bdes/bdes.c
924
(void)ungetc(c, stdin);
usr.bin/chpass/edit.c
85
if ((line = fgetln(stdin, &len)) == NULL) {
usr.bin/col/col.c
320
if (ferror(stdin))
usr.bin/colcrt/colcrt.c
102
c = getwc(stdin);
usr.bin/colcrt/colcrt.c
119
c = getwc(stdin);
usr.bin/colcrt/colcrt.c
185
if (ferror(stdin))
usr.bin/colcrt/colcrt.c
94
if (freopen(argv[0], "r", stdin) == NULL) {
usr.bin/colrm/colrm.c
123
err(1, "%s", stream == stdin ? "stdin" : "stdout");
usr.bin/colrm/colrm.c
93
check(stdin);
usr.bin/column/column.c
117
input(stdin);
usr.bin/comm/comm.c
225
return (stdin);
usr.bin/csplit/csplit.c
140
infile = stdin;
usr.bin/cut/cut.c
140
rval |= fcn(stdin, "stdin");
usr.bin/cut/cut.c
152
rval = fcn(stdin, "stdin");
usr.bin/dc/bcode.c
1713
clearerr(stdin);
usr.bin/dc/bcode.c
1714
src_setstream(&in, stdin);
usr.bin/dc/dc.c
110
src_setstream(&src, stdin);
usr.bin/diff/diff.c
299
fp = stdin;
usr.bin/diff/diffreg.c
323
f1 = stdin;
usr.bin/diff/diffreg.c
344
f2 = stdin;
usr.bin/dsynth/subs.c
382
if (fgets(buf, sizeof(buf), stdin) == NULL)
usr.bin/evtranalyze/evtranalyze.c
1515
inf = stdin;
usr.bin/expand/expand.c
148
if (ferror(stdin)) {
usr.bin/expand/expand.c
88
if (freopen(argv[0], "r", stdin) == NULL) {
usr.bin/fetch/fetch.c
404
if (fgets(URL->user, sizeof URL->user, stdin) == NULL)
usr.bin/fetch/fetch.c
416
nopwd = (fgets(URL->pwd, sizeof URL->pwd, stdin) == NULL);
usr.bin/fetch/fetch.c
420
nopwd = (fgets(URL->pwd, sizeof URL->pwd, stdin) == NULL);
usr.bin/find/misc.c
89
if (fgets(resp, sizeof(resp), stdin) == NULL)
usr.bin/flame_graph/process.c
63
while (fgets(buf, sizeof(buf), stdin) != NULL) {
usr.bin/fmt/fmt.c
360
process_stream(stdin, "standard input");
usr.bin/fold/fold.c
117
if (!freopen(*argv, "r", stdin)) {
usr.bin/from/from.c
101
else if (freopen(file, "r", stdin) == NULL) {
usr.bin/from/from.c
104
for (newline = 1; fgets(buf, sizeof(buf), stdin);) {
usr.bin/gzip/gzip.c
1116
(void)fgets(ans, sizeof(ans) - 1, stdin);
usr.bin/gzip/gzip.c
1227
fclose(stdin);
usr.bin/head/head.c
114
head(stdin, linecnt);
usr.bin/head/head.c
116
head_bytes(stdin, bytecnt);
usr.bin/hexdump/display.c
268
length == -1 ? need : MIN(length, need), stdin);
usr.bin/hexdump/display.c
270
if (ferror(stdin))
usr.bin/hexdump/display.c
309
if (!(freopen(*_argv, "r", stdin))) {
usr.bin/hexdump/display.c
336
if (fstat(fileno(stdin), &sb))
usr.bin/hexdump/display.c
345
if (fseeko(stdin, skip, SEEK_SET))
usr.bin/iconv/iconv.c
204
do_conv(stdin, opt_f, opt_t, opt_s, opt_c);
usr.bin/iconv/iconv.c
208
fopen(argv[i], "r") : stdin;
usr.bin/indent/args.c
282
input = stdin;
usr.bin/indent/indent.c
246
input = stdin;
usr.bin/indent/indent.c
248
if (input == stdin)
usr.bin/join/join.c
212
F1->fp = stdin;
usr.bin/join/join.c
217
F2->fp = stdin;
usr.bin/join/join.c
220
if (F1->fp == stdin && F2->fp == stdin)
usr.bin/kdump/kdump.c
146
if (!freopen(tracefile, "r", stdin))
usr.bin/kdump/kdump.c
203
while ((i = fread(buf, size, num, stdin)) == 0 && tail) {
usr.bin/kdump/kdump.c
205
clearerr(stdin);
usr.bin/lam/lam.c
104
ip->fp = stdin;
usr.bin/lam/lam.c
197
if (ip->fp == stdin)
usr.bin/lam/lam.c
198
fclose(stdin);
usr.bin/lastcomm/lastcomm.c
119
fp = stdin;
usr.bin/lastcomm/lastcomm.c
140
if (fp != stdin) {
usr.bin/leave/leave.c
70
cp = fgets(buf, sizeof(buf), stdin);
usr.bin/localedef/scanner.c
253
c = getc(stdin);
usr.bin/localedef/scanner.c
269
if (ungetc(c, is_stdin ? stdin : input) < 0) {
usr.bin/locate/bigram/locate.bigram.c
69
while (fgets(path, sizeof(buf2), stdin) != NULL) {
usr.bin/locate/code/locate.code.c
161
while (fgets(path, sizeof(buf2), stdin) != NULL) {
usr.bin/locate/locate/locate.c
228
fp = stdin;
usr.bin/lock/lock.c
145
if (!fgets(s, sizeof(s), stdin) || *s == '\n')
usr.bin/lock/lock.c
152
fgets(s1, sizeof(s1), stdin);
usr.bin/lock/lock.c
206
if (!fgets(s, sizeof(s), stdin)) {
usr.bin/lock/lock.c
207
clearerr(stdin);
usr.bin/logger/logger.c
150
while (fgets(buf, sizeof(buf), stdin) != NULL)
usr.bin/logger/logger.c
98
if (freopen(optarg, "r", stdin) == NULL)
usr.bin/m4/main.c
233
set_input(infile + 0, stdin, "stdin");
usr.bin/m4/main.c
240
set_input(infile, stdin, "stdin");
usr.bin/m4/manual_tokenizer.c
1720
yyin = stdin;
usr.bin/m4/manual_tokenizer.c
701
yyin = stdin;
usr.bin/m4/misc.c
386
if (f->file != stdin)
usr.bin/mail/collect.c
153
c = readline(stdin, linebuf, LINESIZE);
usr.bin/mail/collect.c
681
clearerr(stdin);
usr.bin/mail/edit.c
85
if (fgets(buf, sizeof(buf), stdin) == 0)
usr.bin/mail/main.c
226
input = stdin;
usr.bin/mail/tty.c
103
if (ioctl(fileno(stdin), TIOCEXT, &flag) < 0)
usr.bin/mail/tty.c
151
clearerr(stdin);
usr.bin/mail/tty.c
153
c = getc(stdin);
usr.bin/mail/tty.c
162
if (c == EOF && ferror(stdin)) {
usr.bin/mail/tty.c
165
clearerr(stdin);
usr.bin/mail/tty.c
67
if (tcgetattr(fileno(stdin), &ttybuf) < 0) {
usr.bin/mail/tty.c
76
if (ioctl(fileno(stdin), TIOCEXT, &flag) < 0)
usr.bin/ministat/ministat.c
609
setfiles[0] = stdin;
usr.bin/mkcsmapper/yacc.y
714
in = stdin;
usr.bin/mkesdb/yacc.y
324
in = stdin;
usr.bin/mkstr/mkstr.c
114
if (freopen(argv[0], "r", stdin) == NULL)
usr.bin/mkstr/mkstr.c
40
#define ungetchar(c) ungetc(c, stdin)
usr.bin/msgs/msgs.c
347
if (isatty(fileno(stdin))) {
usr.bin/msgs/msgs.c
352
fgets(inbuf, sizeof inbuf, stdin);
usr.bin/msgs/msgs.c
362
fgets(inbuf, sizeof inbuf, stdin);
usr.bin/msgs/msgs.c
363
if (feof(stdin) || ferror(stdin))
usr.bin/msgs/msgs.c
378
exit(ferror(stdin));
usr.bin/msgs/msgs.c
724
(void) fgets(inbuf, sizeof inbuf, stdin);
usr.bin/nl/nl.c
240
freopen(argv[0], "r", stdin) == NULL)
usr.bin/nl/nl.c
283
while ((linelen = getline(&buffer, &buffersize, stdin)) > 0) {
usr.bin/nl/nl.c
344
if (ferror(stdin))
usr.bin/paste/paste.c
132
lp->fp = stdin;
usr.bin/paste/paste.c
198
fp = stdin;
usr.bin/paste/paste.c
220
if (fp != stdin)
usr.bin/patch/pch.c
113
while ((nr = fread(buf, 1, buf_size, stdin)) > 0) {
usr.bin/pr/pr.c
1235
if (inf != stdin)
usr.bin/pr/pr.c
1268
clearerr(stdin);
usr.bin/pr/pr.c
1269
inf = stdin;
usr.bin/pr/pr.c
1291
clearerr(stdin);
usr.bin/pr/pr.c
1292
inf = stdin;
usr.bin/pr/pr.c
1363
if (inf != stdin)
usr.bin/pr/pr.c
291
if (inf != stdin)
usr.bin/pr/pr.c
612
if (inf != stdin)
usr.bin/pr/pr.c
754
if (inf != stdin)
usr.bin/pr/pr.c
902
if (fbuf[j] != stdin)
usr.bin/rev/rev.c
66
rval += dorev(stdin, "stdin");
usr.bin/rwall/rwall.c
167
if (fname && !(freopen(fname, "r", stdin)))
usr.bin/rwall/rwall.c
169
while (fgets(lbuf, sizeof(lbuf), stdin))
usr.bin/sdiff/sdiff.c
572
for (; (cmd = xfgets(stdin)); free(cmd)) {
usr.bin/sed/main.c
238
f = stdin;
usr.bin/sed/main.c
336
infile = stdin;
usr.bin/sed/main.c
350
if (infile == stdin) {
usr.bin/soelim/soelim.c
168
ret = soelim_file(stdin, flags);
usr.bin/soelim/soelim.c
61
return (stdin);
usr.bin/sort/file.c
541
return ((mode && mode[0] == 'r') ? stdin : stdout);
usr.bin/sort/file.c
592
} else if (f == stdin) {
usr.bin/sort/file.c
715
} else if (fr->file != stdin) {
usr.bin/sort/file.c
812
if (fr->file != stdin)
usr.bin/systat/keyboard.c
53
if (ch == 0177 && ferror(stdin)) {
usr.bin/systat/keyboard.c
54
clearerr(stdin);
usr.bin/tail/tail.c
200
if (fstat(fileno(stdin), &sb)) {
usr.bin/tail/tail.c
209
if (lseek(fileno(stdin), 0, SEEK_CUR) == -1 &&
usr.bin/tail/tail.c
216
reverse(stdin, fn, style, off, &sb);
usr.bin/tail/tail.c
222
file.fp = stdin;
usr.bin/tail/tail.c
227
forward(stdin, fn, style, off, &sb);
usr.bin/talk/io.c
115
if (FD_ISSET(fileno(stdin), &read_set)) {
usr.bin/talk/io.c
91
FD_SET(fileno(stdin), &read_template);
usr.bin/telnet/authenc.c
93
res = fgets(result, length, stdin);
usr.bin/telnet/commands.c
1261
(void) fgets(buf, sizeof(buf), stdin);
usr.bin/telnet/commands.c
2128
(void) fgets(&line[strlen(line)], sizeof(line) - strlen(line), stdin);
usr.bin/telnet/commands.c
2553
if (fgets(line, sizeof(line), stdin) == NULL) {
usr.bin/telnet/commands.c
2554
if (feof(stdin) || ferror(stdin)) {
usr.bin/telnet/sys_bsd.c
123
tin = fileno(stdin);
usr.bin/telnet/sys_bsd.c
778
if (ioctl(fileno(stdin), TIOCGWINSZ, (char *)&ws) >= 0) {
usr.bin/tftp/main.c
234
fgets(&line[strlen(line)], sizeof line - strlen(line), stdin);
usr.bin/tftp/main.c
331
fgets(&line[strlen(line)], sizeof line - strlen(line), stdin);
usr.bin/tftp/main.c
412
fgets(&line[strlen(line)], sizeof line - strlen(line), stdin);
usr.bin/tftp/main.c
486
fgets(&line[strlen(line)], sizeof line - strlen(line), stdin);
usr.bin/tftp/main.c
512
fgets(&line[strlen(line)], sizeof line - strlen(line), stdin);
usr.bin/tftp/main.c
587
el = el_init("tftp", stdin, stdout, stderr);
usr.bin/tftp/main.c
605
if (fgets(line, sizeof line , stdin) == 0) {
usr.bin/tftp/main.c
606
if (feof(stdin)) {
usr.bin/tr/tr.c
128
if (ferror(stdin))
usr.bin/tr/tr.c
146
if (ferror(stdin))
usr.bin/tr/tr.c
163
if (ferror(stdin))
usr.bin/tr/tr.c
320
if (ferror(stdin))
usr.bin/tset/term.c
125
if (feof(stdin) || ferror(stdin)) {
usr.bin/tset/term.c
136
if (fgets(answer, sizeof(answer), stdin) == NULL) {
usr.bin/tsort/tsort.c
133
fp = stdin;
usr.bin/ul/ul.c
140
filter(stdin);
usr.bin/unexpand/unexpand.c
187
if (ferror(stdin)) {
usr.bin/unexpand/unexpand.c
88
if (freopen(filename, "r", stdin) == NULL) {
usr.bin/unifdef/unifdef.c
385
input = fbinmode(stdin);
usr.bin/uniq/uniq.c
118
ifp = stdin;
usr.bin/units/units.c
741
el = el_init(argv[0], stdin, stdout, stderr);
usr.bin/unvis/unvis.c
91
process(stdin, "<stdin>", eflags);
usr.bin/unzip/unzip.c
425
if (fgets(buf, sizeof(buf), stdin) == NULL) {
usr.bin/unzip/unzip.c
426
clearerr(stdin);
usr.bin/unzip/unzip.c
452
len = getdelim(path, &alen, '\n', stdin);
usr.bin/uudecode/uudecode.c
131
infp = stdin;
usr.bin/uuencode/uuencode.c
146
while ((n = fread(buf, 1, sizeof(buf), stdin))) {
usr.bin/uuencode/uuencode.c
169
while ((n = fread(buf, 1, 45, stdin))) {
usr.bin/uuencode/uuencode.c
200
if (ferror(stdin))
usr.bin/uuencode/uuencode.c
93
if (!freopen(*argv, "r", stdin) || fstat(fileno(stdin), &sb))
usr.bin/vis/vis.c
153
process(stdin);
usr.bin/wall/wall.c
217
if (freopen(fname, "r", stdin) == NULL)
usr.bin/wall/wall.c
221
while (fgets(lbuf, sizeof(lbuf), stdin))
usr.bin/what/what.c
67
if (!freopen(*argv, "r", stdin))
usr.bin/write/write.c
255
while (fgets(line, sizeof(line), stdin) != NULL)
usr.bin/write/write.c
73
if (isatty(fileno(stdin)))
usr.bin/write/write.c
74
myttyfd = fileno(stdin);
usr.bin/xstr/xstr.c
125
if (!readstd && freopen(argv[0], "r", stdin) == NULL)
usr.bin/xstr/xstr.c
163
if (fgets(linebuf, sizeof linebuf, stdin) == NULL) {
usr.bin/xstr/xstr.c
164
if (ferror(stdin))
usr.bin/xstr/xstr.c
248
if (fgets(linebuf, sizeof linebuf, stdin)
usr.bin/xstr/xstr.c
250
if (ferror(stdin))
usr.sbin/asf/asf.c
189
kldstat = stdin;
usr.sbin/cdcontrol/cdcontrol.c
1158
el = el_init("cdcontrol", stdin, stdout, stderr);
usr.sbin/cdcontrol/cdcontrol.c
1180
if (! fgets (buf, sizeof (buf), stdin)) {
usr.sbin/ckdist/ckdist.c
190
fp = stdin;
usr.sbin/ckdist/ckdist.c
194
if (fp != stdin)
usr.sbin/ckdist/ckdist.c
214
if (fp != stdin && fclose(fp))
usr.sbin/ckdist/ckdist.c
343
else if ((dname = distname(fp == stdin ? NULL : path, NULL,
usr.sbin/config/main.c
119
if (freopen(PREFIX = *argv, "r", stdin) == NULL)
usr.sbin/cron/crontab/crontab.c
193
NewCrontab = stdin;
usr.sbin/cron/crontab/crontab.c
457
fgets(q, sizeof q, stdin);
usr.sbin/efidp/efidp.c
144
while (fgets(buffer, sizeof(buffer), stdin)) {
usr.sbin/efidp/efidp.c
174
while (fgets(buffer, sizeof(buffer), stdin)) {
usr.sbin/efidp/efidp.c
225
while (fgets(buffer, sizeof(buffer), stdin)) {
usr.sbin/fdcontrol/fdcontrol.c
43
fgets(b, 80, stdin);
usr.sbin/fdformat/fdformat.c
159
if (fgets(reply, sizeof(reply) - 1, stdin) == NULL)
usr.sbin/installer/dfuife_curses/main.c
330
newterm(getenv("TERM"), stdout, stdin);
usr.sbin/installer/libaura/test.c
56
while (!feof(stdin)) {
usr.sbin/installer/libaura/test.c
58
fgets(k, 255, stdin);
usr.sbin/installer/libaura/test.c
75
fgets(v, 255, stdin);
usr.sbin/lpr/filters.ru/koi2855/koi2855.c
88
ungetc(c, stdin);
usr.sbin/lpr/filters.ru/koi2alt/koi2alt.c
88
ungetc(c, stdin);
usr.sbin/lpr/filters/lpf.c
156
ungetc(ch, stdin);
usr.sbin/lpr/filters/lpf.c
69
FILE *p = stdin, *o = stdout;
usr.sbin/lpr/lpc/lpc.c
110
fromatty = isatty(fileno(stdin));
usr.sbin/lpr/lpc/lpc.c
152
el = el_init("lpc", stdin, stdout, stderr);
usr.sbin/lpr/lpc/lpc.c
179
if (fgets(cmdline, MAX_CMDLINE, stdin) == 0)
usr.sbin/makefs/mtree.c
1039
fp = stdin;
usr.sbin/makefs/mtree.c
1112
if (fp != stdin)
usr.sbin/mtest/mtest.c
39
while( fgets( line, 79, stdin ) != NULL )
usr.sbin/mtree/mtree.c
103
if (spec1 == stdin) {
usr.sbin/mtree/mtree.c
74
spec1 = stdin;
usr.sbin/newsyslog/newsyslog.c
861
f = stdin;
usr.sbin/ngctl/main.c
129
fp = stdin;
usr.sbin/ngctl/main.c
258
if (fgets(buf, sizeof(buf), stdin) == NULL) {
usr.sbin/pfctl/parse.y
5725
nfile->stream = stdin;
usr.sbin/pfctl/pfctl_radix.c
519
fp = stdin;
usr.sbin/pfctl/pfctl_radix.c
530
if (fp != stdin)
usr.sbin/pppctl/pppctl.c
409
edit = el_init("pppctl", stdin, stdout, stderr);
usr.sbin/quot/quot.c
454
ungetc(c,stdin);
usr.sbin/rrenumd/rrenumd.c
416
FILE *fp = stdin;
usr.sbin/rrenumd/rrenumd.c
438
fp = stdin;
usr.sbin/sa/pdb.c
309
cp = fgetln(stdin, &len);
usr.sbin/sshlockout/sshlockout.c
249
while (fgets(buf, sizeof(buf), stdin) != NULL) {
usr.sbin/tzsetup/tzsetup.c
1007
init_dialog(stdin, stdout);
usr.sbin/vipw/vipw.c
111
if ((line = fgetln(stdin, &len)) == NULL) {
usr.sbin/watch/watch.c
272
if (fgets(buf, DEV_NAME_LEN - 1, stdin)) {
usr.sbin/yp_mkdb/yp_mkdb.c
188
ifp = stdin;
usr.sbin/zic/zic.c
760
fp = stdin;
usr.sbin/zic/zic.c
819
if (fp != stdin && fclose(fp))