/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | gets.c | 52 FLOCKFILE(lk, stdin); in gets() 54 _SET_ORIENTATION_BYTE(stdin); in gets() 56 if (!(stdin->_flag & (_IOREAD | _IORW))) { in gets() 62 if (stdin->_base == NULL) { in gets() 63 if ((bufend = _findbuf(stdin)) == 0) { in gets() 69 bufend = _bufend(stdin); in gets() 73 if (stdin->_cnt <= 0) /* empty buffer */ in gets() 75 if (__filbuf(stdin) != EOF) { in gets() 76 stdin->_ptr--; /* put back the character */ in gets() 77 stdin->_cnt++; in gets() [all …]
|
H A D | vwscanf.c | 53 FLOCKFILE(lk, stdin); in _vwscanf_c89() 55 if (GET_NO_MODE(stdin)) in _vwscanf_c89() 56 _setorientation(stdin, _WC_MODE); in _vwscanf_c89() 59 ret = __wdoscan_u(stdin, fmt, ap, _F_INTMAX32); in _vwscanf_c89() 61 ret = __wdoscan_u(stdin, fmt, ap, 0); in _vwscanf_c89()
|
H A D | vscanf.c | 71 FLOCKFILE(lk, stdin); in _vscanf_c89() 73 _SET_ORIENTATION_BYTE(stdin); in _vscanf_c89() 76 ret = __doscan_u(stdin, fmt, ap, _F_INTMAX32); in _vscanf_c89() 78 ret = __doscan_u(stdin, fmt, ap, 0); in _vscanf_c89()
|
H A D | getchar.c | 49 FILE *iop = stdin; in getchar() 61 FILE *iop = stdin; in getchar_unlocked()
|
/illumos-gate/usr/src/test/util-tests/tests/head/ |
H A D | head_test.ksh | 65 test_one "simple stdin 1" "a\n\n\nb\n" stdin.1.out 66 test_one "simple stdin 2 -n 1" "a\n\n\nb\n" stdin.2.out "-n 1" 67 test_one "simple stdin 3 -n 3" "a\n\n\nb\n" stdin.3.out "-n 3" 68 test_one "simple stdin 4 -n 10000" "a\n\n\nb\n" stdin.1.out "-n 10000" 69 test_one "simple stdin 5 -c 1" "a\n\n\nb\n" stdin.5.out "-c 1" 70 test_one "simple stdin 6 -c 230" "a\n\n\nb\n" stdin.1.out "-c 230" 71 test_one "simple stdin 7 -n 3 -q" "a\n\n\nb\n" stdin.3.out "-n 3" "-q" 72 test_one "simple stdin 8 -" "a\n\n\nb\n" stdin.2.out "-1" 73 test_one "simple stdin 9 -23" "a\n\n\nb\n" stdin.1.out "-23" 74 test_one "simple stdin 10 -q" "a\n\n\nb\n" stdin.1.out "-q" [all …]
|
H A D | Makefile | 31 stdin-nul.1.out \ 32 stdin-nul.2.out \ 33 stdin-nul.3.out \ 34 stdin.1.out \ 35 stdin.11.out \ 36 stdin.2.out \ 37 stdin.3.out \ 38 stdin.5.out \ 39 stdin.multi.out \ 40 stdin.nonewline.out
|
H A D | stdin.multi.out | 1 ==> /dev/stdin <== 4 ==> /dev/stdin <==
|
H A D | 5221.out | 2 5221 head shouldn't reuse stdin 4 ==> /dev/stdin <==
|
/illumos-gate/usr/src/cmd/ldap/common/ |
H A D | ldaptest.c | 60 getaline( buf, sizeof(buf), stdin, prompt ); in get_list() 159 getaline( buf, sizeof(buf), stdin, prompt1 ); in get_modlist() 166 getaline( buf, sizeof(buf), stdin, prompt2 ); in get_modlist() 227 getaline( dn, sizeof(dn), stdin, in bind_prompt() 238 getaline( dn, sizeof(dn), stdin, "re-bind dn? " ); in bind_prompt() 243 getaline( passwd, sizeof(passwd), stdin, in bind_prompt() 392 while ( getaline( line, sizeof(line), stdin, "\ncommand? " ) != NULL ) { in main() 401 getaline( dn, sizeof(dn), stdin, "dn? " ); in main() 422 getaline( line, sizeof(line), stdin, "msgid? " ); in main() 436 getaline( line, sizeof(line), stdin, in main() [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/pcieadm/ |
H A D | pcieadmtest.ksh | 114 show-cfgspace -f /dev/stdin header0.vendor header0.device 116 show-cfgspace -L -f /dev/stdin header0.vendor header0.device 118 show-cfgspace -n -f /dev/stdin header0.vendor header0.device 120 show-cfgspace -L -H -f /dev/stdin header0.vendor header0.device 133 show-cfgspace -f /dev/stdin ltr 135 show-cfgspace -p -o short,value -f /dev/stdin ltr 137 show-cfgspace -p -o short,value -f /dev/stdin header0.vendor header0.device 139 show-cfgspace -f /dev/stdin ht 141 show-cfgspace -f /dev/stdin ht.msi 143 show-cfgspace -f /dev/stdin ht.msi.command [all …]
|
/illumos-gate/usr/src/cmd/strings/ |
H A D | strings.c | 109 int fd = fileno(stdin); in look_in_sections() 166 (void) fseek(stdin, (long)shdr.sh_offset, 0); in look_in_sections() 297 if (freopen(argv[optind], "r", stdin) == NULL) { 311 sizeof (ahdr), stdin); 312 htype = ismagic(hsize, &ahdr, stdin); 316 (void) fseek(stdin, (long)ADATAPOS(&ahdr), 0); 333 (void) fseek(stdin, (long)0, 0); 352 c = getc(stdin); 359 ftell(stdin) - cc - 1); 364 ftell(stdin) - cc - 1); [all …]
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | tty.c | 222 c = getc(stdin); in readtty() 263 if (c==EOF || ferror(stdin) || c==c_intr || c==c_quit) { in readtty() 273 clearerr(stdin); in readtty() 279 clearerr(stdin); in readtty() 481 if (gtty(fileno(stdin), &ttybuf) < 0) { in grabh() 497 ttyset++, stty(fileno(stdin), &ttybuf); in grabh() 506 ttyset++, stty(fileno(stdin), &ttybuf); in grabh() 515 ttyset++, stty(fileno(stdin), &ttybuf); in grabh() 524 ttyset++, stty(fileno(stdin), &ttybuf); in grabh() 533 ttyset++, stty(fileno(stdin), &ttybuf); in grabh() [all …]
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | addbib.c | 112 fgets(line, BUFSIZ, stdin); in addbib() 120 if (fgets(line, BUFSIZ, stdin) == NULL) { in addbib() 121 clearerr(stdin); in addbib() 141 fgets(line, BUFSIZ, stdin); in addbib() 160 while (fgets(line, BUFSIZ, stdin)) { in addbib() 167 clearerr(stdin); in addbib() 176 fgets(line, BUFSIZ, stdin); in addbib()
|
H A D | lookbib.c | 52 if (isatty(fileno(stdin))) { in main() 54 fgets(s, BUFSIZ, stdin); in main() 60 if (fgets(s, BUFSIZ, stdin)) { in main()
|
/illumos-gate/usr/src/cmd/power/ |
H A D | pm_pam_conv.c | 80 (void) ioctl(fileno(stdin), TCGETA, &tty); in getinput() 83 (void) ioctl(fileno(stdin), TCSETAF, &tty); in getinput() 86 flockfile(stdin); in getinput() 95 funlockfile(stdin); in getinput() 99 (void) ioctl(fileno(stdin), TCSETAW, &tty); in getinput()
|
/illumos-gate/usr/src/tools/onbld/Checks/ |
H A D | ProcessCheck.py | 56 stdin=subprocess.PIPE, stdout=tmpfile, 63 p.stdin.write(line) 65 p.stdin.close()
|
/illumos-gate/usr/src/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
|
/illumos-gate/usr/src/cmd/spell/ |
H A D | hashcheck.c | 87 (void) rhuff(stdin); in main() 88 (void) fread((char *)hindex, sizeof (*hindex), NI, stdin); in main() 90 (void) fread((char *)table, sizeof (*table), hindex[NI-1], stdin); in main()
|
/illumos-gate/usr/src/test/elf-tests/tests/groups/no-relobj-group-merge/ |
H A D | no-relobj-group-merge.sh | 89 cmp -s <(section_content $GROUP1_INDEX test-obj.o) /dev/stdin <<EOF 97 cmp -s <(section_content $GROUP2_INDEX test-obj.o) /dev/stdin <<EOF 105 cmp -s <(section_content $UNGROUP_INDEX test-obj.o) /dev/stdin <<EOF
|
/illumos-gate/usr/src/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
|
/illumos-gate/usr/src/tools/smatch/src/validation/backend/ |
H A D | load-type.c | 1 extern struct _IO_FILE *stdin; 6 sub(stdin); in test()
|
/illumos-gate/usr/src/cmd/mail/ |
H A D | sendmail.c | 135 ttyf = isatty(fileno(stdin)); in sendmail() 143 input = stdin; in sendmail() 159 while ((n = getaline(line, sizeof (line), stdin)) > 0) { in sendmail() 286 n = getaline(buf, sizeof (buf), stdin); in sendmail() 384 ? getaline(buf, sizeof (buf), stdin) in sendmail() 385 : fread(buf, 1, sizeof (buf), stdin); in sendmail()
|
/illumos-gate/usr/src/lib/libc/port/i18n/ |
H A D | getwchar.c | 53 return (getwc(stdin)); in getwchar() 59 return (__getwc_xpg5(stdin)); in __getwchar_xpg5()
|
/illumos-gate/usr/src/test/libc-tests/tests/stdio/ |
H A D | orientation_test.c | 188 TEST_NARROW_STD(stdin, getchar()); in main() 189 TEST_NARROW_STD(stdin, getchar_unlocked()); in main() 190 TEST_NARROW_STD(stdin, scanf("%s\n", buffer)); in main() 232 TEST_WIDE_STD(stdin, getwchar()); in main() 233 TEST_WIDE_STD(stdin, wscanf(L"%s\n", wbuffer)); in main()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | main.c | 249 fromatty = isatty(fileno(stdin)); in main() 431 if (fgets(line, sizeof (line), stdin) == 0) { in cmdscanner() 432 if (feof(stdin) || ferror(stdin)) in cmdscanner() 440 while (fgetc(stdin) != '\n' && !feof(stdin) && in cmdscanner() 441 !ferror(stdin)) in cmdscanner()
|