Lines Matching refs:stream
31 FILE *stream; in do_bz18820() local
34 stream = fmemopen (&ch, 1, "?"); in do_bz18820()
35 if (stream) in do_bz18820()
37 printf ("fmemopen: expected NULL, got %p\n", stream); in do_bz18820()
38 fclose (stream); in do_bz18820()
47 stream = fmemopen (NULL, 42, "?"); in do_bz18820()
48 if (stream) in do_bz18820()
50 printf ("fmemopen: expected NULL, got %p\n", stream); in do_bz18820()
51 fclose (stream); in do_bz18820()
56 stream = fmemopen (NULL, ~0, "w"); in do_bz18820()
57 if (stream) in do_bz18820()
59 printf ("fmemopen: expected NULL, got %p\n", stream); in do_bz18820()
60 fclose (stream); in do_bz18820()
76 FILE *stream; in do_test() local
81 stream = fmemopen (buffer, strlen (buffer), "r+"); in do_test()
83 while ((ch = fgetc (stream)) != EOF) in do_test()
86 fputc ('1', stream); in do_test()
87 if (fflush (stream) != EOF || errno != ENOSPC) in do_test()
93 fclose (stream); in do_test()