/libio/ |
A D | tst-fseek.c | 36 printf ("do_seek_end: fputws: %s\n", strerror (errno)); in do_seek_end() 45 printf ("do_seek_end: fseek: %s\n", strerror (errno)); in do_seek_end() 51 printf ("save = %ld, ftell = %ld\n", save, ftell (fp)); in do_seek_end() 65 printf ("seek_set: fputws(1): %s\n", strerror (errno)); in do_seek_set() 87 printf ("seek_set: fseek(1): %s\n", strerror (errno)); in do_seek_set() 99 printf ("seek_set: fseek(2): %s\n", strerror (errno)); in do_seek_set() 117 printf ("Cannot set ja_JP.UTF-8 locale.\n"); in do_test() 138 printf ("seek_set: fopen: %s\n", strerror (errno)); in do_test() 145 printf ("SEEK_SET test failed\n"); in do_test() 154 printf ("seek_end: fopen: %s\n", strerror (errno)); in do_test() [all …]
|
A D | tst-widetext.c | 51 printf ("locale used: %s\n\n", setlocale (LC_ALL, NULL)); in do_test() 62 printf ("INFO: input file has %Zd bytes\n", mbsize); in do_test() 85 printf ("%u: iconv performed %Zd nonreversible conversions\n", in do_test() 92 printf ("\ in do_test() 100 printf ("%u: iconv didn't convert all input\n", __LINE__); in do_test() 140 printf ("%u: fputwc failed: %m\n", __LINE__); in do_test() 166 printf ("%u: fgetwc failed (idx %Zd): %m\n", __LINE__, n); in do_test() 213 printf ("%u: more input available\n", __LINE__); in do_test() 293 printf ("%u: short read using fgetws (only %td of %Zd)\n", in do_test() 303 printf ("%u: fgetws read too much\n", __LINE__); in do_test() [all …]
|
A D | bug-wfflush.c | 20 printf ("cannot create temporary file: %m\n"); in do_prepare() 34 printf ("fopen: %m\n"); in do_test() 45 printf ("fwscanf failed\n"); in do_test() 52 printf ("rewind: %m\n"); in do_test() 58 printf ("fputws: %m\n"); in do_test() 64 printf ("fflush: %m\n"); in do_test() 70 printf ("fclose: %m\n"); in do_test()
|
A D | tst-atime.c | 29 printf ("cannot allocate memory: %m\n"); in do_test() 37 printf ("cannot open temporary file: %m\n"); in do_test() 50 printf ("cannot statvfs '%s': %m\n", buf); in do_test() 67 printf ("cannot write temporary file: %m\n"); in do_test() 73 printf ("cannot reposition temporary file: %m\n"); in do_test() 80 printf ("cannot create stream: %m\n"); in do_test() 86 printf ("first stat failed: %m\n"); in do_test() 95 printf ("did not read correct character: got '%c', expected 's'\n", ch); in do_test() 101 printf ("second stat failed: %m\n"); in do_test()
|
A D | tst-ftell-active-handler.c | 149 printf ("Flush failed: %m\n"); in do_ftruncate_test() 174 printf ("offset = %ld\n", offset); in do_ftruncate_test() 341 printf ("old offset = %ld, ", off); in do_ftell_test() 348 printf ("write failed (%m)\n"); in do_ftell_test() 360 printf ("new offset = %ld", off); in do_ftell_test() 376 printf ("write failed (%m)\n"); in do_ftell_test() 441 printf ("lseek failed: %m\n"); in do_write_test() 469 printf ("offset = %ld\n", offset); in do_write_test() 537 printf ("offset = %ld\n", offset); in do_append_test() 633 printf ("fdopen[0]: %m\n"); in do_test() [all …]
|
A D | tst-fgetws.c | 37 printf ("cannot open temp file: %m\n"); in main() 42 printf ("Can't open %s.\n", argv[1]); in main() 86 printf ("errno = %d\n", errno); in main() 92 printf ("Return Value: %p\n", ret); in main() 95 printf ("\n"); in main() 120 printf ("errno = %d\n", errno); in main() 128 printf ("Return Value: %p\n", ret); in main() 131 printf ("\n"); in main() 167 printf ("errno = %d\n", errno); in main() 173 printf ("Return Value: %p\n", ret); in main() [all …]
|
A D | test-fmemopen.c | 37 printf ("fmemopen: expected NULL, got %p\n", stream); in do_bz18820() 43 printf ("fmemopen: got %i, expected EINVAL (%i)\n", errno, EINVAL); in do_bz18820() 50 printf ("fmemopen: expected NULL, got %p\n", stream); in do_bz18820() 59 printf ("fmemopen: expected NULL, got %p\n", stream); in do_bz18820() 65 printf ("fmemopen: got %i, expected ENOMEM (%i)\n", errno, ENOMEM); in do_bz18820() 84 printf ("Got %c\n", ch); in do_test() 89 printf ("fflush didn't fail with ENOSPC\n"); in do_test()
|
A D | bug-ungetc.c | 20 printf ("cannot create temporary file: %m\n"); in do_prepare() 40 printf ("%c\n", getc (f)); in do_test() 42 printf ("offset = %ld\n", offset); in do_test() 45 printf ("ungetc failed\n"); in do_test() 48 printf ("offset after ungetc = %ld\n", ftell (f)); in do_test() 51 printf ("read %d (%c), offset = %ld\n", i, buf[0], ftell (f)); in do_test() 55 printf ("ftell did not update properly. got %ld, expected 3\n", diff); in do_test()
|
A D | tst-fwrite-error.c | 31 printf ("mkstemp failed with errno %d\n", errno); in do_test() 37 printf ("fdopen failed with errno %d\n", errno); in do_test() 50 printf ("fwrite returned %d\n", ret); in do_test() 55 printf ("Errno is not EBADF: %d\n", errno); in do_test() 60 printf ("ferror not set\n"); in do_test()
|
A D | bug-ungetc4.c | 36 printf ("cannot create temporary file: %m\n"); in do_prepare() 51 printf ("%d: could not open temporary file: %m\n", mode); in do_one_test() 62 printf ("%d: fgetpos failed: %m\n", mode); in do_one_test() 70 printf ("%d: fseek failed: %m\n", mode); in do_one_test() 80 printf ("%d: ungetc failed\n", mode); in do_one_test() 86 printf ("%d: getc after ungetc did not return X\n", mode); in do_one_test() 92 printf ("%d: fsetpos failed: %m\n", mode); in do_one_test() 98 printf ("%d: getc did not return %c\n", mode, pattern[TEST_POS]); in do_one_test()
|
A D | tst-ext.c | 21 printf ("setvbuf failed: %m\n"); in main() 28 printf ("__fbusize() reported a buffer size of %Zd bytes;" in main() 37 printf ("writing to new stream failed: %m\n"); in main() 43 printf ("reading from new stream failed: %m\n"); in main() 66 printf ("writing(2) to new stream failed: %m\n"); in main() 94 printf ("__fpending() returned %Zd; expected %Zd\n", in main() 103 printf ("__fpending() returned %Zd; expected 0\n", in main() 118 printf ("setvbuf(2) failed: %m\n"); in main() 129 printf ("setvbuf(3) failed: %m\n"); in main()
|
A D | tst_swprintf.c | 31 printf ("incorrect return value: %zd instead of 11\n", n); in main() 36 printf ("incorrect string: L\"%ls\" instead of L\"Hello world\"\n", buf); in main() 44 printf ("incorrect return value: %zd instead of 18\n", n); in main() 49 printf ("incorrect string: L\"%ls\" instead of L\"Is this >3.1< 3.1?\"\n", in main() 60 printf ("swprintf (buf, %Zu, L\"%%s\", \"%s\") expected to fail\n", in main() 66 printf ("swprintf (buf, %Zu, L\"%%s\", \"%s\") expected to return %Zd, but got %Zd\n", in main() 71 printf ("swprintf (buf, %Zu, L\"%%s\", \"%s\") OK\n", in main() 78 printf ("swprintf (buf, %Zu, L\"%%.0s\", \"foo\") create some output\n", in main() 86 printf ("swprintf (buf, %Zu, L\"%%.0ls\", L\"foo\") create some output\n", in main()
|
A D | tst-mmap-eofsync.c | 56 printf ("read \"%s\", expected \"%s\"\n", buf, text1); in do_test() 60 printf ("feof = %d, ferror = %d immediately after fgets\n", in do_test() 65 printf ("fgetc -> EOF (feof = %d, ferror = %d)\n", in do_test() 69 printf ("fgetc returned %o (feof = %d, ferror = %d)\n", in do_test() 76 printf ("wrote more to file\n"); in do_test() 79 printf ("wrote %d != %zd (%m)\n", c, sizeof text2 - 1); in do_test() 85 printf ("second fgets fails: feof = %d, ferror = %d (%m)\n", in do_test() 90 printf ("retry fgets fails: feof = %d, ferror = %d (%m)\n", in do_test() 97 printf ("second time read \"%s\", expected \"%s\"\n", buf, text2); in do_test()
|
A D | bug-ungetwc1.c | 36 printf ("cannot open temporary file: %m\n"); in do_test() 62 printf ("Did not get end-of-file when expected.\n"); in do_test() 67 printf ("Unexpected %lu from getwc.\n", (unsigned long int) wc); in do_test() 72 printf ("\nThe end-of-file indicator is set.\n"); in do_test() 76 printf ("< `%lc' is ungotten.\n", unget_wchar); in do_test() 81 printf ("The end-of-file indicator is still set.\n"); in do_test() 85 printf ("The end-of-file flag is cleared.\n"); in do_test()
|
A D | tst-mmap-fflushsync.c | 56 printf ("read \"%s\", expected \"%s\"\n", buf, text1); in do_test() 60 printf ("feof = %d, ferror = %d immediately after fgets\n", in do_test() 65 printf ("fflush failed! %m\n"); in do_test() 71 printf ("wrote more to file\n"); in do_test() 74 printf ("wrote %d != %zd (%m)\n", c, sizeof text2 - 1); in do_test() 80 printf ("second fgets fails: feof = %d, ferror = %d (%m)\n", in do_test() 85 printf ("retry fgets fails: feof = %d, ferror = %d (%m)\n", in do_test() 92 printf ("second time read \"%s\", expected \"%s\"\n", buf, text2); in do_test()
|
A D | tst-mmap-setvbuf.c | 35 printf ("%u: cannot open temporary file: %m\n", __LINE__); in main() 42 printf ("%u: cannot fdopen temporary file: %m\n", __LINE__); in main() 52 printf ("%u: cannot fopen temporary file: %m\n", __LINE__); in main() 58 printf ("%u: setvbuf failed: %m\n", __LINE__); in main() 64 printf ("%u: couldn't read the file back: %m\n", __LINE__); in main() 71 printf ("%u: read different string than was written:\n%s%s", in main()
|
A D | tst-mmap2-eofsync.c | 66 printf ("feof = %d, ferror = %d immediately after fread\n", in do_test() 71 printf ("fgetc -> EOF (feof = %d, ferror = %d)\n", in do_test() 75 printf ("fgetc returned %o (feof = %d, ferror = %d)\n", in do_test() 82 printf ("wrote more to file\n"); in do_test() 85 printf ("wrote %d != %zd (%m)\n", c, pagesize); in do_test() 91 printf ("second fread fails: feof = %d, ferror = %d (%m)\n", in do_test() 96 printf ("retry fread fails: feof = %d, ferror = %d (%m)\n", in do_test() 111 printf ("fgetc at end of page 1 read '%c' (%m)\n", c); in do_test() 117 printf ("ftruncate failed: %m\n"); in do_test() 125 printf ("after truncate fgetc -> EOF (feof = %d, ferror = %d)\n", in do_test() [all …]
|
A D | bug-ungetc3.c | 20 printf ("cannot create temporary file: %m\n"); in do_prepare() 35 printf ("could not open temporary file: %m\n"); in do_one_test() 41 printf ("first ftell returned wrong position %ld\n", ftell (f)); in do_one_test() 53 printf ("second ftell returned wrong position %ld\n", ftell (f)); in do_one_test() 65 printf ("third ftell returned wrong position %ld\n", ftell (f)); in do_one_test() 77 printf ("fourth ftell returned wrong position %ld\n", ftell (f)); in do_one_test()
|
A D | bug-rewind.c | 42 printf ("Unable to open file.\n"); in do_test() 48 printf ("Unable to write to file with fwprintf().\n"); in do_test() 57 printf ("first fwscanf returned %d, expected 2\n", ret1); in do_test() 65 printf ("second fwscanf returned %d, expected 2\n", ret2); in do_test() 72 printf ("rewind after first fwscanf failed\n"); in do_test() 76 printf ("Passed\n"); in do_test()
|
A D | tst-fopenloc2.c | 55 printf ("ftruncate in round %d failed\n", i + 1); in do_test() 62 printf ("write in round %d failed\n", i + 1); in do_test() 68 printf ("lseek in round %d failed\n", i + 1); in do_test() 75 printf ("asprintf in round %d failed\n", i + 1); in do_test() 82 printf ("fopen in round %d failed\n", i + 1); in do_test() 90 printf ("fgetws in round %d failed\n", i + 1); in do_test() 96 printf ("round %d: expected length %zu, got length %zu\n", in do_test() 103 printf ("round %d: expected L\"%ls\", got L\"%ls\"\n", in do_test()
|
A D | bug-fseek.c | 24 printf ("cannot create temporary file: %m\n"); in do_prepare() 55 printf ("fseek() for r to before start of file worked!\n"); in do_test() 60 printf ("\ in do_test() 79 printf ("fseek() for r+ to before start of file worked!\n"); in do_test() 84 printf ("\ in do_test() 108 printf ("fseek() for r+ to before start of file worked!\n"); in do_test() 113 printf ("\ in do_test()
|
A D | tst-memstream2.c | 19 printf ("mecheck failed with status %d\n", (int) ev); in mcheck_abort() 34 printf ("%s failed\n", S(OPEN_MEMSTREAM)); in do_test() 43 printf ("fputc at %d:%d failed\n", outer, inner); in do_test() 55 printf ("string in round %d not %d bytest long\n", in do_test() 61 printf ("round %d: buf not updated\n", outer + 1); in do_test() 67 printf ("round %d: buf[%d] != '%c'\n", outer + 1, inner, in do_test() 94 printf ("after close: buf[%d] != %c\n", inner, in do_test()
|
A D | tst-ftell-append.c | 60 printf ("fopen: %m\n"); in init_file() 68 printf ("fputs failed to write data\n"); in init_file() 80 printf ("fopen(a+): %m\n"); in init_file() 99 printf ("read failed: %m\n"); in do_one_test() 108 printf ("fputs failed to write data\n"); in do_one_test() 119 printf ("Incorrect offset %ld, expected %zu\n", off, file_len); in do_one_test() 124 printf ("Correct offset %ld after write.\n", off); in do_one_test() 139 printf ("create_temp_file: %m\n"); in do_test() 158 printf ("Cannot set en_US.UTF-8 locale.\n"); in do_test()
|
A D | tst-eof.c | 23 printf ("cannot create temporary file: %m\n"); in do_prepare() 37 printf ("cannot write temporary file: %m\n"); in do_test() 43 printf ("cannot reposition temporary file: %m\n"); in do_test() 50 printf ("cannot create stream: %m\n"); in do_test()
|
A D | bug-wsetpos.c | 22 printf ("cannot create temporary file: %m\n"); in do_prepare() 38 printf ("fdopen: %m\n"); in do_test() 47 printf ("fgetpos: %m\n"); in do_test() 54 printf ("rewind: %m\n"); in do_test() 62 printf ("fsetpos: %m\n"); in do_test()
|