/bionic/tests/ |
D | sys_time_test.cpp | 30 TemporaryFile tf; in TEST() local 31 ASSERT_EQ(0, utimes(tf.path, nullptr)); in TEST() 35 TemporaryFile tf; in TEST() local 40 ASSERT_EQ(-1, utimes(tf.path, tv)); in TEST() 43 ASSERT_EQ(-1, utimes(tf.path, tv)); in TEST() 49 ASSERT_EQ(-1, utimes(tf.path, tv)); in TEST() 52 ASSERT_EQ(-1, utimes(tf.path, tv)); in TEST() 57 TemporaryFile tf; in TEST() local 58 ASSERT_EQ(0, futimes(tf.fd, nullptr)); in TEST() 62 TemporaryFile tf; in TEST() local [all …]
|
D | sys_xattr_test.cpp | 27 TemporaryFile tf; in TEST() local 29 ASSERT_EQ(0, setxattr(tf.path, "user.foo", "bar", 4, 0)); in TEST() 30 ASSERT_EQ(4, getxattr(tf.path, "user.foo", buf, sizeof(buf))); in TEST() 33 ASSERT_EQ(4, lgetxattr(tf.path, "user.foo", buf, sizeof(buf))); in TEST() 38 TemporaryFile tf; in TEST() local 40 ASSERT_EQ(0, fsetxattr(tf.fd, "user.foo", "bar", 4, 0)); in TEST() 41 ASSERT_EQ(4, fgetxattr(tf.fd, "user.foo", buf, sizeof(buf))); in TEST() 46 TemporaryFile tf; in TEST() local 48 ASSERT_EQ(0, fsetxattr(tf.fd, "user.foo", "", 0, 0)); in TEST() 49 ASSERT_EQ(0, fgetxattr(tf.fd, "user.foo", buf, sizeof(buf))); in TEST() [all …]
|
D | sys_mman_test.cpp | 43 TemporaryFile tf; in TEST() local 45 void* map = mmap(nullptr, 100, PROT_READ, MAP_SHARED, tf.fd, 1); in TEST() 50 TemporaryFile tf; in TEST() local 52 void* map = mmap64(nullptr, 100, PROT_READ, MAP_SHARED, tf.fd, 1); in TEST() 62 TemporaryFile tf; in TEST() local 64 ASSERT_EQ(STR_SSIZE(STRING_MSG), write(tf.fd, STRING_MSG, sizeof(STRING_MSG))); in TEST() 66 void* map = mmap(nullptr, sizeof(STRING_MSG), PROT_READ, MAP_SHARED, tf.fd, 0); in TEST() 76 TemporaryFile tf; in TEST() local 78 ASSERT_EQ(STR_SSIZE(INITIAL_MSG), write(tf.fd, INITIAL_MSG, sizeof(INITIAL_MSG))); in TEST() 79 lseek(tf.fd, 0, SEEK_SET); in TEST() [all …]
|
D | sys_uio_test.cpp | 30 TemporaryFile tf; in TEST() local 36 ASSERT_EQ(10, writev(tf.fd, ios, 2)); in TEST() 38 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in TEST() 43 ASSERT_EQ(10, readv(tf.fd, ios, 2)); in TEST() 51 TemporaryFile tf; in TestPreadVPwriteV() local 56 ASSERT_EQ(5, write_fn(tf.fd, ios, 1, 5)); in TestPreadVPwriteV() 57 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_CUR)); in TestPreadVPwriteV() 60 ASSERT_EQ(5, write_fn(tf.fd, ios, 1, 0)); in TestPreadVPwriteV() 61 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_CUR)); in TestPreadVPwriteV() 63 ASSERT_EQ(5, read_fn(tf.fd, ios, 1, 5)); in TestPreadVPwriteV() [all …]
|
D | fcntl_test.cpp | 91 TemporaryFile tf; in TEST() local 100 EXPECT_EQ(EINVAL, posix_fadvise(tf.fd, 0, 0, -1)); in TEST() 103 EXPECT_EQ(EINVAL, posix_fadvise64(tf.fd, 0, 0, -1)); in TEST() 106 EXPECT_EQ(0, posix_fadvise(tf.fd, 0, 0, POSIX_FADV_NORMAL)); in TEST() 107 EXPECT_EQ(0, posix_fadvise64(tf.fd, 0, 0, POSIX_FADV_NORMAL)); in TEST() 111 TemporaryFile tf; in TEST() local 117 ASSERT_EQ(-1, fallocate(tf.fd, 0, 0, -1)); in TEST() 121 ASSERT_EQ(-1, fallocate64(tf.fd, 0, 0, -1)); in TEST() 125 ASSERT_EQ(EINVAL, posix_fallocate(tf.fd, 0, -1)); in TEST() 129 ASSERT_EQ(EINVAL, posix_fallocate64(tf.fd, 0, -1)); in TEST() [all …]
|
D | sys_stat_test.cpp | 84 TemporaryFile tf; in TEST() local 85 path = tf.path; in TEST() 178 TemporaryFile tf; in TEST() local 180 ASSERT_EQ(0, fchmodat(AT_FDCWD, tf.path, 0751, 0)); in TEST() 181 AssertFileModeEquals(0751, tf.path); in TEST() 185 TemporaryFile tf; in TEST() local 187 int result = fchmodat(AT_FDCWD, tf.path, 0751, AT_SYMLINK_NOFOLLOW); in TEST() 192 AssertFileModeEquals(0751, tf.path); in TEST() 202 TemporaryFile tf; in TEST() local 205 snprintf(linkname, sizeof(linkname), "%s.link", tf.path); in TEST() [all …]
|
D | unistd_test.cpp | 177 TemporaryFile tf; in TEST() local 178 ASSERT_EQ(0, close(tf.fd)); in TEST() 179 ASSERT_EQ(0, truncate(tf.path, 123)); in TEST() 182 ASSERT_EQ(0, stat(tf.path, &sb)); in TEST() 187 TemporaryFile tf; in TEST() local 188 ASSERT_EQ(0, close(tf.fd)); in TEST() 189 ASSERT_EQ(0, truncate64(tf.path, 123)); in TEST() 192 ASSERT_EQ(0, stat(tf.path, &sb)); in TEST() 197 TemporaryFile tf; in TEST() local 198 ASSERT_EQ(0, ftruncate(tf.fd, 123)); in TEST() [all …]
|
D | execinfo_test.cpp | 196 TemporaryFile tf; in TEST() local 197 backtrace_symbols_fd(frames, 0, tf.fd); in TEST() 198 close(tf.fd); in TEST() 200 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &content)); in TEST() 206 TemporaryFile tf; in TEST() local 207 backtrace_symbols_fd(frames, -1, tf.fd); in TEST() 208 close(tf.fd); in TEST() 210 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &content)); in TEST() 224 TemporaryFile tf; in TEST() local 225 backtrace_symbols_fd(frames.data(), static_cast<int>(frames.size()), tf.fd); in TEST() [all …]
|
D | stdio_test.cpp | 185 TemporaryFile tf; in TEST() local 187 int rc = dprintf(tf.fd, "hello\n"); in TEST() 190 lseek(tf.fd, 0, SEEK_SET); in TEST() 191 FILE* tfile = fdopen(tf.fd, "r"); in TEST() 958 TemporaryFile tf; in TEST() local 960 FILE* tfile = fdopen(tf.fd, "r+"); in TEST() 1510 TemporaryFile tf; in TEST() local 1511 FILE* fp = fdopen(tf.fd, "w+"); in TEST() 1526 fp = fopen(tf.path, "r"); in TEST() 2181 TemporaryFile tf; in test_fwrite_after_fread() local [all …]
|
D | dlext_test.cpp | 528 TemporaryFile tf; // Use tf to get an unique filename. in TEST_F() local 529 ASSERT_NOERROR(close(tf.fd)); in TEST_F() 531 ASSERT_NO_FATAL_FAILURE(CreateRelroFile(kLibName, tf.path, false)); in TEST_F() 535 EXPECT_EQ(tf.path, FindMappingName(relro_data)); in TEST_F() 538 tf.fd = extinfo_.relro_fd; in TEST_F() 542 TemporaryFile tf; // Use tf to get an unique filename. in TEST_F() local 543 ASSERT_NOERROR(close(tf.fd)); in TEST_F() 545 ASSERT_NO_FATAL_FAILURE(CreateRelroFile(kLibNameRecursive, tf.path, true)); in TEST_F() 549 EXPECT_EQ(tf.path, FindMappingName(relro_data)); in TEST_F() 552 EXPECT_EQ(tf.path, FindMappingName(recursive_relro_data)); in TEST_F() [all …]
|
D | stdlib_test.cpp | 460 MyTemporaryFile tf([](char* path) { return mkostemp64(path, O_CLOEXEC); }); in TEST() local 461 ASSERT_TRUE(CloseOnExec(tf.fd)); in TEST() 465 MyTemporaryFile tf([](char* path) { return mkostemp(path, O_CLOEXEC); }); in TEST() local 466 ASSERT_TRUE(CloseOnExec(tf.fd)); in TEST() 470 MyTemporaryFile tf(mkstemp64); in TEST() local 472 ASSERT_EQ(0, fstat64(tf.fd, &sb)); in TEST() 473 ASSERT_EQ(O_LARGEFILE, fcntl(tf.fd, F_GETFL) & O_LARGEFILE); in TEST() 477 MyTemporaryFile tf(mkstemp); in TEST() local 479 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST()
|
D | glob_test.cpp | 167 TemporaryFile tf; in TEST() local 169 ASSERT_EQ(0, glob(tf.path, GLOB_MARK, nullptr, &g)); in TEST() 172 ASSERT_STREQ(tf.path, g.gl_pathv[0]); in TEST()
|
D | malloc_test.cpp | 408 TemporaryFile tf; in TEST() local 409 ASSERT_TRUE(tf.fd != -1); in TEST() 410 FILE* fp = fdopen(tf.fd, "w+"); in TEST() 411 tf.release(); in TEST() 417 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &contents)); in TEST() 475 TemporaryFile tf; in TEST() local 476 ASSERT_TRUE(tf.fd != -1); in TEST() 477 FILE* fp = fdopen(tf.fd, "w+"); in TEST() 478 tf.release(); in TEST() 486 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &contents)); in TEST() [all …]
|
/bionic/benchmarks/ |
D | stdio_benchmark.cpp | 27 static void FillFile(TemporaryFile& tf) { in FillFile() argument 32 FILE* fp = fopen(tf.path, "we"); in FillFile() 82 TemporaryFile tf; in FopenFgetlnFclose() local 83 FillFile(tf); in FopenFgetlnFclose() 85 FILE* fp = fopen(tf.path, "re"); in FopenFgetlnFclose() 106 TemporaryFile tf; in FopenFgetsFclose() local 107 FillFile(tf); in FopenFgetsFclose() 110 FILE* fp = fopen(tf.path, "re"); in FopenFgetsFclose() 129 TemporaryFile tf; in FopenGetlineFclose() local 130 FillFile(tf); in FopenGetlineFclose() [all …]
|
D | syscall_mm_benchmark.cpp | 105 TemporaryFile tf; in MmapFileBenchmark() local 107 if (tf.fd < 0) { in MmapFileBenchmark() 114 if (area_size > 0 && ftruncate(tf.fd, area_size)) { in MmapFileBenchmark() 121 MmapFixedBenchmark(state, params, tf.fd, area_size, offs); in MmapFileBenchmark() 123 MmapBenchmark(state, params, tf.fd); in MmapFileBenchmark() 392 TemporaryFile tf; in MprotectBenchmarkWithMmapFile() local 394 if (tf.fd < 0) { in MprotectBenchmarkWithMmapFile() 399 if (params.size > 0 && ftruncate(tf.fd, params.size)) { in MprotectBenchmarkWithMmapFile() 404 void* addr = mmap(nullptr, params.size, params.initial_prot, MAP_PRIVATE, tf.fd, 0); in MprotectBenchmarkWithMmapFile()
|
/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_unit_tests.cpp | 2551 TemporaryFile tf; in TEST_F() local 2552 ASSERT_TRUE(tf.fd != -1); in TEST_F() 2553 FILE* fp = fdopen(tf.fd, "w+"); in TEST_F() 2554 tf.release(); in TEST_F() 2560 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &contents)); in TEST_F() 2584 TemporaryFile tf; in TEST_F() local 2585 ASSERT_TRUE(tf.fd != -1); in TEST_F() 2586 FILE* fp = fdopen(tf.fd, "w+"); in TEST_F() 2587 tf.release(); in TEST_F() 2593 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &contents)); in TEST_F() [all …]
|
D | malloc_debug_system_tests.cpp | 715 TemporaryFile tf; in TEST() local 716 ASSERT_TRUE(tf.fd != -1); in TEST() 718 FILE* fp = fdopen(tf.fd, "w+"); in TEST() 720 printf("Unable to create %s\n", tf.path); in TEST() 723 tf.release(); in TEST()
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | e_lgammaf_r.c | 45 tf = -1.21486291e-01, /* 0xbdf8cdce */ variable 180 r += tf + p; break; in lgammaf_r()
|
D | e_lgamma_r.c | 108 tf = -1.21486290535849611461e-01, /* 0xBFBF19B9, 0xBCC38A42 */ variable 264 r += tf + p; break; in lgamma_r()
|
/bionic/libm/upstream-freebsd/lib/msun/ld128/ |
D | e_lgammal_r.c | 70 tf = -1.21486290535849608095514557177691584e-01L, variable 289 r += tf + p; break; in lgammal_r()
|