/third_party/musl/libc-test/src/functionalext/supplement/stdio/ |
D | fopen.c | 42 FILE *fptr = fopen("tempory_test.txt", "w"); in fopen_0100() local 43 if (fptr != NULL) { in fopen_0100() 44 size_t wrsize = fwrite(wstring, sizeof(char), strlen(wstring), fptr); in fopen_0100() 48 fclose(fptr); in fopen_0100() 50 fptr = fopen("tempory_test.txt", "r"); in fopen_0100() 53 if (fptr != NULL) { in fopen_0100() 54 while (!feof(fptr)) { in fopen_0100() 55 int32_t rsize = fread(abc, sizeof(abc), 1, fptr); in fopen_0100() 62 size_t wrsize = fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fopen_0100() 66 fclose(fptr); in fopen_0100() [all …]
|
D | fgets.c | 30 FILE *fptr = fopen(ptr, "wr+"); in fgets_0100() local 31 fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fgets_0100() 32 fflush(fptr); in fgets_0100() 33 fseek(fptr, 0L, SEEK_SET); in fgets_0100() 34 char *content = fgets(str, 100, fptr); in fgets_0100() 39 fclose(fptr); in fgets_0100() 41 fptr = NULL; in fgets_0100() 57 FILE *fptr = fopen(ptr, "wr+"); in fgets_0200() local 58 fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fgets_0200() 59 fflush(fptr); in fgets_0200() [all …]
|
D | fsetpos.c | 37 FILE *fptr = fopen(ptr, "w+"); in fsetpos_0100() local 38 EXPECT_TRUE("fsetpos_0100", fptr != NULL); in fsetpos_0100() 39 fwrite(wstring, sizeof(char), strlen(wstring), fptr); in fsetpos_0100() 40 int result = fsetpos(fptr, &pos); in fsetpos_0100() 42 int rsize = fread(str, sizeof(char), 100, fptr); in fsetpos_0100() 44 fclose(fptr); in fsetpos_0100() 46 fptr = NULL; in fsetpos_0100() 63 FILE *fptr = fopen(ptr, "w+"); in fsetpos_0200() local 64 fwrite(wstring, sizeof(char), strlen(wstring), fptr); in fsetpos_0200() 65 int data = fsetpos(fptr, &pos); in fsetpos_0200() [all …]
|
D | fread.c | 36 FILE *fptr = fopen(ptr, "w+"); in fread_0100() local 37 EXPECT_PTRNE("fread_0100", fptr, NULL); in fread_0100() 39 fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fread_0100() 40 fseek(fptr, 0, SEEK_SET); in fread_0100() 42 size_t rsize = fread(abc, 1, 10, fptr); in fread_0100() 46 fclose(fptr); in fread_0100() 61 FILE *fptr = fopen(ptr, "w+"); in fread_0200() local 62 EXPECT_PTRNE("fread_0200", fptr, NULL); in fread_0200() 64 fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fread_0200() 65 fseek(fptr, 0, SEEK_SET); in fread_0200() [all …]
|
D | ftell.c | 31 FILE *fptr = fopen(path, "w+"); in ftell_0100() local 32 if (!fptr) { in ftell_0100() 36 size_t ret = fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in ftell_0100() 41 int fret = fseek(fptr, 0L, SEEK_SET); in ftell_0100() 46 long result = ftell(fptr); in ftell_0100() 51 fclose(fptr); in ftell_0100() 62 FILE *fptr = fopen(path, "w+"); in ftell_0200() local 63 if (!fptr) { in ftell_0200() 67 size_t ret = fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in ftell_0200() 72 int fret = fseek(fptr, 8L, SEEK_SET); in ftell_0200() [all …]
|
D | getc_unlocked.c | 29 FILE *fptr = fopen(ptr, "wr+"); in getc_unlocked_0100() local 30 EXPECT_TRUE("getc_unlocked_0100", fptr != NULL); in getc_unlocked_0100() 32 fwrite(wstr, sizeof(char), strlen(wstr), fptr); in getc_unlocked_0100() 33 fseek(fptr, 0, SEEK_SET); in getc_unlocked_0100() 34 int ret = getc_unlocked(fptr); in getc_unlocked_0100() 36 fclose(fptr); in getc_unlocked_0100() 38 fptr = NULL; in getc_unlocked_0100() 50 FILE *fptr = fopen(ptr, "wr+"); in getc_unlocked_0200() local 51 EXPECT_TRUE("getc_unlocked_0200", fptr != NULL); in getc_unlocked_0200() 52 fclose(fptr); in getc_unlocked_0200() [all …]
|
D | fputws.c | 31 FILE *fptr = fopen(ptr, "w+"); in fputws_0100() local 32 EXPECT_TRUE("fputws_0100", fptr != NULL); in fputws_0100() 34 int ret = fputws(L"this is the test", fptr); in fputws_0100() 36 fseek(fptr, 0, SEEK_SET); in fputws_0100() 37 int rsize = fread(str, sizeof(char), 100, fptr); in fputws_0100() 39 fclose(fptr); in fputws_0100() 41 fptr = NULL; in fputws_0100() 53 FILE *fptr = fopen(ptr, "w+"); in fputws_0200() local 54 EXPECT_TRUE("fputws_0200", fptr != NULL); in fputws_0200() 55 fclose(fptr); in fputws_0200() [all …]
|
D | __fwriting.c | 35 FILE *fptr = fopen(ptr, "w"); in __fwriting_0100() local 36 int result = __fwriting(fptr); in __fwriting_0100() 38 fclose(fptr); in __fwriting_0100() 52 FILE *fptr = fopen(ptr, "w+"); in __fwriting_0200() local 53 fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in __fwriting_0200() 54 int result = __fwriting(fptr); in __fwriting_0200() 56 fclose(fptr); in __fwriting_0200() 71 FILE *fptr = fopen(ptr, "w+"); in __fwriting_0300() local 72 fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in __fwriting_0300() 73 fseek(fptr, 0, SEEK_SET); in __fwriting_0300() [all …]
|
D | putc.c | 36 FILE *fptr = fopen("putc_0100.txt", "w"); in putc_0100() local 37 if (!fptr) { in putc_0100() 38 EXPECT_PTRNE("putc_0100", fptr, NULL); in putc_0100() 41 EXPECT_PTRNE("putc_0100", fptr, NULL); in putc_0100() 42 EXPECT_EQ("putc_0100", putc('p', fptr), PUTC_RET); in putc_0100() 43 ret = fclose(fptr); in putc_0100() 60 FILE *fptr = fopen("putc_0200.txt", "r"); in putc_0200() local 61 if (!fptr) { in putc_0200() 62 EXPECT_PTRNE("putc_0200", fptr, NULL); in putc_0200() 65 EXPECT_EQ("putc_0200", putc('p', fptr), EOF); in putc_0200() [all …]
|
D | rewind.c | 36 FILE *fptr = fopen("/data/rewind_0100.txt", "w"); in rewind_0100() local 37 EXPECT_PTRNE("rewind_0100", fptr, NULL); in rewind_0100() 39 fwrite(str, 1, sizeof(str), fptr); in rewind_0100() 40 ret = fclose(fptr); in rewind_0100() 43 fptr = fopen("/data/rewind_0100.txt", "r"); in rewind_0100() 44 EXPECT_PTRNE("rewind_0100", fptr, NULL); in rewind_0100() 46 while ( (ch = fgetc(fptr)) != EOF ){ in rewind_0100() 50 rewind(fptr); in rewind_0100() 51 EXPECT_FALSE("rewind_0100", feof(fptr)); in rewind_0100() 52 fclose(fptr); in rewind_0100()
|
D | fwrite.c | 30 FILE *fptr = fopen(path, "w+"); in fwrite_0100() local 31 EXPECT_PTRNE("fwrite_0100", fptr, NULL); in fwrite_0100() 34 int result = fwrite(buf, sizeof(char), strlen(buf), fptr); in fwrite_0100() 37 fclose(fptr); in fwrite_0100() 48 FILE *fptr = fopen(path, "w+"); in fwrite_0200() local 49 EXPECT_PTRNE("fwrite_0200", fptr, NULL); in fwrite_0200() 52 int result = fwrite(buf, 0, strlen(buf), fptr); in fwrite_0200() 55 fclose(fptr); in fwrite_0200() 66 FILE *fptr = fopen(path, "w+"); in fwrite_0300() local 67 EXPECT_PTRNE("fwrite_0300", fptr, NULL); in fwrite_0300() [all …]
|
D | fflush.c | 68 FILE *fptr = fopen("/data/tempory_testff.txt", "w"); in fflush_0400() local 70 if (fptr != NULL) { in fflush_0400() 71 fputs("fopen is success", fptr); in fflush_0400() 72 ret = fflush(fptr); in fflush_0400() 73 fclose(fptr); in fflush_0400() 85 FILE *fptr = fopen("/data/tempory_testff.txt", "r"); in fflush_0500() local 87 if (fptr != NULL) { in fflush_0500() 88 ret = fflush(fptr); in fflush_0500() 89 fclose(fptr); in fflush_0500()
|
D | __fwritable.c | 31 FILE *fptr = fopen(ptr, "w+"); in __fwritable_0100() local 32 if (!fptr) { in __fwritable_0100() 35 int result = __fwritable(fptr); in __fwritable_0100() 37 fclose(fptr); in __fwritable_0100() 49 FILE *fptr = fopen(ptr, "r"); in __fwritable_0200() local 50 if (!fptr) { in __fwritable_0200() 53 int result = __fwritable(fptr); in __fwritable_0200() 55 fclose(fptr); in __fwritable_0200()
|
D | setvbuf.c | 29 FILE *fptr = fopen(path, "w+"); in setvbuf_0100() local 30 EXPECT_PTRNE("setvbuf_0100", fptr, NULL); in setvbuf_0100() 32 int result = setvbuf(fptr, buff, _IOFBF, 1024); in setvbuf_0100() 35 fclose(fptr); in setvbuf_0100() 49 FILE *fptr = fopen(path, "w+"); in setvbuf_0200() local 50 EXPECT_PTRNE("setvbuf_0100", fptr, NULL); in setvbuf_0200() 52 int result = setvbuf(fptr, buff, -1, 1024); in setvbuf_0200() 55 fclose(fptr); in setvbuf_0200()
|
D | fputs.c | 27 FILE *fptr = fopen(path, "w+"); in fputs_0100() local 28 EXPECT_PTRNE("fputs_0100", fptr, NULL); in fputs_0100() 30 int len = fputs("this is a test string", fptr); in fputs_0100() 32 fclose(fptr); in fputs_0100() 43 FILE *fptr = fopen(path, "w+"); in fputs_0200() local 44 EXPECT_PTRNE("fputs_0200", fptr, NULL); in fputs_0200() 46 int len = fputs("", fptr); in fputs_0200() 48 fclose(fptr); in fputs_0200()
|
D | fprintf.c | 56 FILE *fptr = fopen("tempory_testfprintf.txt", "w"); in fprintf_0300() local 57 if (fptr != NULL) { in fprintf_0300() 58 len = fprintf(fptr, "%s", str); in fprintf_0300() 59 fclose(fptr); in fprintf_0300() 73 FILE *fptr = fopen("tempory_testfprintf.txt", "r"); in fprintf_0400() local 74 if (fptr != NULL) { in fprintf_0400() 75 len = fprintf(fptr, "%s", str); in fprintf_0400() 76 fclose(fptr); in fprintf_0400()
|
D | putwc.c | 37 FILE *fptr = fopen("putwc_0100.txt", "w"); in putwc_0100() local 38 EXPECT_PTRNE("putwc_0100", fptr, NULL); in putwc_0100() 40 ret = putwc(wc, fptr); in putwc_0100() 42 ret = fclose(fptr); in putwc_0100() 59 FILE *fptr = fopen("putwc_0200.txt", "r"); in putwc_0200() local 60 EXPECT_PTRNE("putwc_0200", fptr, NULL); in putwc_0200() 62 ret = putwc(wc, fptr); in putwc_0200() 64 ret = fclose(fptr); in putwc_0200()
|
/third_party/musl/libc-test/src/functionalext/supplement/mman/ |
D | mmap.c | 40 FILE *fptr = fopen(ptr, "w+"); in mmap_0100() local 41 EXPECT_PTRNE("mmap_0100", fptr, NULL); in mmap_0100() 44 fwrite(str, sizeof(char), strlen(str), fptr); in mmap_0100() 45 fseek(fptr, 0L, SEEK_SET); in mmap_0100() 46 EXPECT_TRUE("mmap_0100", fgetc(fptr) != EOF); in mmap_0100() 48 fclose(fptr); in mmap_0100() 61 fptr = NULL; in mmap_0100() 77 FILE *fptr = fopen(ptr, "w+"); in mmap_0200() local 78 EXPECT_PTRNE("mmap_0200", fptr, NULL); in mmap_0200() 82 fwrite(str, sizeof(char), strlen(str), fptr); in mmap_0200() [all …]
|
/third_party/musl/libc-test/src/functionalext/supplement/stdlib/ |
D | atoi.c | 36 int32_t fptr = atoi(str); in atoi_0100() local 37 EXPECT_EQ("atoi_0100", fptr, NUMBER); in atoi_0100() 48 int32_t fptr = atoi(str); in atoi_0200() local 49 EXPECT_EQ("atoi_0200", fptr, NUMBER); in atoi_0200() 60 int32_t fptr = atoi(str); in atoi_0300() local 61 EXPECT_EQ("atoi_0300", fptr, NUMBER); in atoi_0300() 72 int32_t fptr = atoi(str); in atoi_0400() local 73 EXPECT_EQ("atoi_0400", fptr, NUM); in atoi_0400() 84 int32_t fptr = atoi(str); in atoi_0500() local 85 EXPECT_EQ("atoi_0500", fptr, -NUMBER); in atoi_0500() [all …]
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
D | access.c | 34 FILE *fptr = fopen(ptr, "w"); in access_0100() local 35 EXPECT_PTRNE("access_0100", fptr, NULL); in access_0100() 38 fclose(fptr); in access_0100() 40 fptr = NULL; in access_0100() 54 FILE *fptr = fopen(ptr, "w"); in access_0200() local 55 EXPECT_PTRNE("access_0200", fptr, NULL); in access_0200() 59 fclose(fptr); in access_0200() 61 fptr = NULL; in access_0200() 102 FILE *fptr = fopen(ptr, "w"); in access_0500() local 103 EXPECT_PTRNE("access_0500", fptr, NULL); in access_0500() [all …]
|
D | ftruncate.c | 34 FILE *fptr = fopen(ptr, "w"); in ftruncate_0100() local 36 fprintf(fptr, "%s", "this is a sample!"); in ftruncate_0100() 37 int freturn = ftruncate(fileno(fptr), 0); in ftruncate_0100() 41 fclose(fptr); in ftruncate_0100() 43 fptr = NULL; in ftruncate_0100() 56 FILE *fptr = fopen(ptr, "w"); in ftruncate_0200() local 58 fprintf(fptr, "%s", "this is a sample!"); in ftruncate_0200() 59 int freturn = ftruncate(fileno(fptr), 10); in ftruncate_0200() 63 fclose(fptr); in ftruncate_0200() 65 fptr = NULL; in ftruncate_0200() [all …]
|
D | readlink.c | 34 FILE *fptr = fopen(ptr, "w"); in readlink_0100() local 35 EXPECT_TRUE("readlink_0100", fptr != NULL); in readlink_0100() 36 int size = fwrite(wstr, sizeof(char), strlen(wstr), fptr); in readlink_0100() 38 fclose(fptr); in readlink_0100() 48 fptr = NULL; in readlink_0100() 67 FILE *fptr = fopen(ptr, "w"); in readlink_0200() local 68 EXPECT_TRUE("readlink_0200", fptr != NULL); in readlink_0200() 69 int size = fwrite(wstr, sizeof(char), strlen(wstr), fptr); in readlink_0200() 71 fclose(fptr); in readlink_0200() 81 fptr = NULL; in readlink_0200()
|
/third_party/skia/third_party/externals/swiftshader/third_party/astc-encoder/Source/ |
D | astc_image_load_store.cpp | 108 float *fptr = pb->orig_data; in imageblock_initialize_work_from_orig() local 114 pb->data_r[i] = float_to_lns(fptr[0]); in imageblock_initialize_work_from_orig() 115 pb->data_g[i] = float_to_lns(fptr[1]); in imageblock_initialize_work_from_orig() 116 pb->data_b[i] = float_to_lns(fptr[2]); in imageblock_initialize_work_from_orig() 120 pb->data_r[i] = fptr[0] * 65535.0f; in imageblock_initialize_work_from_orig() 121 pb->data_g[i] = fptr[1] * 65535.0f; in imageblock_initialize_work_from_orig() 122 pb->data_b[i] = fptr[2] * 65535.0f; in imageblock_initialize_work_from_orig() 127 pb->data_a[i] = float_to_lns(fptr[3]); in imageblock_initialize_work_from_orig() 131 pb->data_a[i] = fptr[3] * 65535.0f; in imageblock_initialize_work_from_orig() 134 fptr += 4; in imageblock_initialize_work_from_orig() [all …]
|
/third_party/musl/libc-test/src/functionalext/supplement/stat/ |
D | lstat.c | 38 FILE *fptr = fopen(ptr, "w+"); in lstat_0100() local 40 fwrite(str, sizeof(char), strlen(str), fptr); in lstat_0100() 41 fseek(fptr, 0L, SEEK_SET); in lstat_0100() 45 fclose(fptr); in lstat_0100() 60 FILE *fptr = fopen(ptr, "w+"); in lstat_time64_0100() local 62 fwrite(str, sizeof(char), strlen(str), fptr); in lstat_time64_0100() 63 fseek(fptr, 0L, SEEK_SET); in lstat_time64_0100() 67 fclose(fptr); in lstat_time64_0100() 96 FILE *fptr = fopen(ptr, "w+"); in lstat_0300() local 110 fclose(fptr); in lstat_0300()
|
/third_party/musl/libc-test/src/functionalext/supplement/fortify/fortify_gtest/ |
D | fortify_fgets_chk_test.cpp | 25 FILE* fptr = fopen(ptr, "wr+"); variable 26 fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); 27 fflush(fptr); 28 fseek(fptr, 0L, SEEK_SET); 29 char* content = __fgets_chk(str, STR_SIZE, fptr, STR_SIZE); 33 fclose(fptr); 35 fptr = nullptr;
|