Home
last modified time | relevance | path

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

123456

/glibc-2.36/libio/
Diogets.c37 _IO_acquire_lock (stdin); in _IO_gets()
38 ch = _IO_getc_unlocked (stdin); in _IO_gets()
51 int old_error = stdin->_flags & _IO_ERR_SEEN; in _IO_gets()
52 stdin->_flags &= ~_IO_ERR_SEEN; in _IO_gets()
54 count = _IO_getline (stdin, buf + 1, INT_MAX, '\n', 0) + 1; in _IO_gets()
55 if (stdin->_flags & _IO_ERR_SEEN) in _IO_gets()
61 stdin->_flags |= old_error; in _IO_gets()
66 _IO_release_lock (stdin); in _IO_gets()
Dtst-bz24153.c56 FILE *old_stdin = stdin; in narrow()
57 stdin = xfopen (path, "r"); in narrow()
74 fclose (stdin); in narrow()
75 stdin = old_stdin; in narrow()
81 FILE *old_stdin = stdin; in wide()
82 stdin = xfopen (path, "r"); in wide()
92 fclose (stdin); in wide()
93 stdin = old_stdin; in wide()
Dgetchar.c36 if (!_IO_need_lock (stdin)) in getchar()
37 return _IO_getc_unlocked (stdin); in getchar()
38 _IO_acquire_lock (stdin); in getchar()
39 result = _IO_getc_unlocked (stdin); in getchar()
40 _IO_release_lock (stdin); in getchar()
Doldstdfiles.c58 #undef stdin
62 extern FILE *stdin;
78 stdin = (FILE *) &_IO_stdin_; in _IO_check_libio()
82 stdin->_vtable_offset = stdout->_vtable_offset in _IO_check_libio()
Dgetwchar.c36 _IO_acquire_lock (stdin); in getwchar()
37 result = _IO_getwc_unlocked (stdin); in getwchar()
38 _IO_release_lock (stdin); in getwchar()
Dtst-fgetwc.c15 if (setvbuf (stdin, NULL, _IONBF, 0) != 0) in do_test()
24 while ((c = fgetwc (stdin)) != WEOF) in do_test()
27 if (ferror (stdin)) in do_test()
Dstdio.c30 #undef stdin
33 FILE *stdin = (FILE *) &_IO_2_1_stdin_; variable
Dtst_getwc.c30 while (! feof (stdin) && n < sizeof (buf) - 1) in main()
32 buf[n] = getwc (stdin); in main()
Dtst-freopen.c126 FILE *f = freopen (name, "r", stdin); in do_test_bz21398()
133 char *ret = fgets (buf, sizeof (buf), stdin); in do_test_bz21398()
Dgetchar_u.c35 return _IO_getc_unlocked (stdin); in getchar_unlocked()
Dgetwchar_u.c35 return _IO_getwc_unlocked (stdin); in getwchar_unlocked()
/glibc-2.36/debug/
Dgets_chk.c40 _IO_acquire_lock (stdin); in __gets_chk()
41 ch = _IO_getc_unlocked (stdin); in __gets_chk()
54 int old_error = stdin->_flags & _IO_ERR_SEEN; in __gets_chk()
55 stdin->_flags &= ~_IO_ERR_SEEN; in __gets_chk()
57 count = _IO_getline (stdin, buf + 1, size - 1, '\n', 0) + 1; in __gets_chk()
58 if (stdin->_flags & _IO_ERR_SEEN) in __gets_chk()
64 stdin->_flags |= old_error; in __gets_chk()
71 _IO_release_lock (stdin); in __gets_chk()
Dtst-fortify.c964 if (freopen (temp_filename, "r", stdin) == NULL) in do_test()
982 rewind (stdin); in do_test()
984 if (fgets (buf, buf_size, stdin) != buf in do_test()
987 if (fgets (buf, buf_size, stdin) != buf || memcmp (buf, "ABCDEFGHI", 10)) in do_test()
990 rewind (stdin); in do_test()
992 if (fgets (buf, l0 + buf_size, stdin) != buf in do_test()
998 if (fgets (buf, buf_size + 1, stdin) != buf) in do_test()
1003 if (fgets (buf, l0 + buf_size + 1, stdin) != buf) in do_test()
1008 rewind (stdin); in do_test()
1011 if (fgets_unlocked (buf, buf_size, stdin) != buf in do_test()
[all …]
/glibc-2.36/stdio-common/
Dtst-ferror.c9 if (ferror (stdin) != 0) in do_test()
14 if (fgets (buf, sizeof buf, stdin) != buf) in do_test()
19 if (ferror (stdin) != 0) in do_test()
24 if (fputc ('a', stdin) != EOF) in do_test()
29 if (ferror (stdin) == 0) in do_test()
34 clearerr (stdin); in do_test()
35 if (ferror (stdin) != 0) in do_test()
Dtstgetln.c27 while ((len = getline (&buf, &size, stdin)) != -1) in main()
37 if (ferror (stdin)) in main()
/glibc-2.36/localedata/
Dtst-wctype.c40 if (fgetws (buf, sizeof (buf) / sizeof (buf[0]), stdin) != NULL) in do_test()
61 if (fgetws (buf, sizeof (buf) / sizeof (buf[0]), stdin) != NULL) in do_test()
82 if (fgetws (buf, sizeof (buf) / sizeof (buf[0]), stdin) != NULL) in do_test()
103 if (fgetws (buf, sizeof (buf) / sizeof (buf[0]), stdin) != NULL) in do_test()
124 if (fgetws (buf, sizeof (buf) / sizeof (buf[0]), stdin) != NULL) in do_test()
Dtst-langinfo.c157 while (! feof (stdin)) in do_test()
166 if (fgets (buf, sizeof (buf), stdin) == NULL) in do_test()
Dtst-ctype.c337 while (! feof (stdin)) in do_test()
342 if (getline (&inpline, &inplinelen, stdin) <= 0 in do_test()
343 || getline (&resline, &reslinelen, stdin) <= 0) in do_test()
/glibc-2.36/posix/
Dbug-regex31.c15 while (! feof (stdin)) in main()
17 ssize_t n = getline (&buf, &len, stdin); in main()
Dtst-fnmatch.c57 while (! feof (stdin)) in do_test()
59 ssize_t n = getline (&linebuf, &linebuflen, stdin); in do_test()
/glibc-2.36/misc/
Dgetpass.c61 in = stdin; in getpass()
119 if (in != stdin) in getpass()
/glibc-2.36/sysdeps/ieee754/ldbl-128ibm-compat/
Dtest-scanf-ldbl-compat-template.c114 do_test_call (stdin, string, L("%Lf %f"), &ld, &f); in do_test()
129 do_test_call (stdin, string, L(FMT), &ld, &f); in do_test()
/glibc-2.36/crypt/
Dcert.c55 for(;!feof(stdin);){ in main()
103 if(feof(stdin)) in get8()
/glibc-2.36/sysdeps/ieee754/ldbl-opt/
Dnldbl-compat.c326 return __vfscanf_internal (stdin, fmt, ap, SCANF_LDBL_IS_DBL); in weak_alias()
351 ret = __vfscanf_internal (stdin, fmt, ap, SCANF_LDBL_IS_DBL); in __nldbl_scanf()
398 return __vfwscanf_internal (stdin, fmt, ap, SCANF_LDBL_IS_DBL); in libc_hidden_def()
423 ret = __vfwscanf_internal (stdin, fmt, ap, SCANF_LDBL_IS_DBL); in __nldbl_wscanf()
888 return __vfscanf_internal (stdin, fmt, ap, in libc_hidden_def()
914 ret = __vfscanf_internal (stdin, fmt, ap, in __nldbl___isoc99_scanf()
962 return __vfwscanf_internal (stdin, fmt, ap, in libc_hidden_def()
988 ret = __vfwscanf_internal (stdin, fmt, ap, in __nldbl___isoc99_wscanf()
/glibc-2.36/libio/bits/
Dstdio.h49 return getc (stdin); in getchar()
75 return __getc_unlocked_body (stdin); in getchar_unlocked()

123456