/bionic/tests/ |
D | sys_time_test.cpp | 28 TemporaryFile tf; in TEST() local 29 ASSERT_EQ(0, utimes(tf.path, nullptr)); in TEST() 33 TemporaryFile tf; in TEST() local 38 ASSERT_EQ(-1, utimes(tf.path, tv)); in TEST() 41 ASSERT_EQ(-1, utimes(tf.path, tv)); in TEST() 47 ASSERT_EQ(-1, utimes(tf.path, tv)); in TEST() 50 ASSERT_EQ(-1, utimes(tf.path, tv)); in TEST() 55 TemporaryFile tf; in TEST() local 56 ASSERT_EQ(0, futimes(tf.fd, nullptr)); in TEST() 60 TemporaryFile tf; in TEST() local [all …]
|
D | sys_mman_test.cpp | 39 TemporaryFile tf; in TEST() local 41 void* map = mmap(nullptr, 100, PROT_READ, MAP_SHARED, tf.fd, 1); in TEST() 46 TemporaryFile tf; in TEST() local 48 void* map = mmap64(nullptr, 100, PROT_READ, MAP_SHARED, tf.fd, 1); in TEST() 58 TemporaryFile tf; in TEST() local 60 ASSERT_EQ(STR_SSIZE(STRING_MSG), write(tf.fd, STRING_MSG, sizeof(STRING_MSG))); in TEST() 62 void* map = mmap(nullptr, sizeof(STRING_MSG), PROT_READ, MAP_SHARED, tf.fd, 0); in TEST() 72 TemporaryFile tf; in TEST() local 74 ASSERT_EQ(STR_SSIZE(INITIAL_MSG), write(tf.fd, INITIAL_MSG, sizeof(INITIAL_MSG))); in TEST() 75 lseek(tf.fd, 0, SEEK_SET); in TEST() [all …]
|
D | sys_xattr_test.cpp | 25 TemporaryFile tf; in TEST() local 27 ASSERT_EQ(0, setxattr(tf.path, "user.foo", "bar", 4, 0)); in TEST() 28 ASSERT_EQ(4, getxattr(tf.path, "user.foo", buf, sizeof(buf))); in TEST() 31 ASSERT_EQ(4, lgetxattr(tf.path, "user.foo", buf, sizeof(buf))); in TEST() 36 TemporaryFile tf; in TEST() local 38 ASSERT_EQ(0, fsetxattr(tf.fd, "user.foo", "bar", 4, 0)); in TEST() 39 ASSERT_EQ(4, fgetxattr(tf.fd, "user.foo", buf, sizeof(buf))); in TEST() 44 TemporaryFile tf; in TEST() local 46 ASSERT_EQ(0, fsetxattr(tf.fd, "user.foo", "", 0, 0)); in TEST() 47 ASSERT_EQ(0, fgetxattr(tf.fd, "user.foo", buf, sizeof(buf))); in TEST() [all …]
|
D | fcntl_test.cpp | 84 TemporaryFile tf; in TEST() local 93 EXPECT_EQ(EINVAL, posix_fadvise(tf.fd, 0, 0, -1)); in TEST() 96 EXPECT_EQ(EINVAL, posix_fadvise64(tf.fd, 0, 0, -1)); in TEST() 99 EXPECT_EQ(0, posix_fadvise(tf.fd, 0, 0, POSIX_FADV_NORMAL)); in TEST() 100 EXPECT_EQ(0, posix_fadvise64(tf.fd, 0, 0, POSIX_FADV_NORMAL)); in TEST() 104 TemporaryFile tf; in TEST() local 110 ASSERT_EQ(-1, fallocate(tf.fd, 0, 0, -1)); in TEST() 114 ASSERT_EQ(-1, fallocate64(tf.fd, 0, 0, -1)); in TEST() 118 ASSERT_EQ(EINVAL, posix_fallocate(tf.fd, 0, -1)); in TEST() 122 ASSERT_EQ(EINVAL, posix_fallocate64(tf.fd, 0, -1)); in TEST() [all …]
|
D | unistd_test.cpp | 175 TemporaryFile tf; in TEST() local 176 ASSERT_EQ(0, close(tf.fd)); in TEST() 177 ASSERT_EQ(0, truncate(tf.path, 123)); in TEST() 180 ASSERT_EQ(0, stat(tf.path, &sb)); in TEST() 185 TemporaryFile tf; in TEST() local 186 ASSERT_EQ(0, close(tf.fd)); in TEST() 187 ASSERT_EQ(0, truncate64(tf.path, 123)); in TEST() 190 ASSERT_EQ(0, stat(tf.path, &sb)); in TEST() 195 TemporaryFile tf; in TEST() local 196 ASSERT_EQ(0, ftruncate(tf.fd, 123)); in TEST() [all …]
|
D | sys_stat_test.cpp | 82 TemporaryFile tf; in TEST() local 83 path = tf.path; in TEST() 173 TemporaryFile tf; in TEST() local 175 ASSERT_EQ(0, fchmodat(AT_FDCWD, tf.path, 0751, 0)); in TEST() 176 AssertFileModeEquals(0751, tf.path); in TEST() 180 TemporaryFile tf; in TEST() local 182 int result = fchmodat(AT_FDCWD, tf.path, 0751, AT_SYMLINK_NOFOLLOW); in TEST() 187 AssertFileModeEquals(0751, tf.path); in TEST() 197 TemporaryFile tf; in TEST() local 200 snprintf(linkname, sizeof(linkname), "%s.link", tf.path); in TEST() [all …]
|
D | sys_uio_test.cpp | 24 TemporaryFile tf; in TEST() local 30 ASSERT_EQ(10, writev(tf.fd, ios, 2)); in TEST() 32 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in TEST() 37 ASSERT_EQ(10, readv(tf.fd, ios, 2)); in TEST() 45 TemporaryFile tf; in TestPreadVPwriteV() local 50 ASSERT_EQ(5, write_fn(tf.fd, ios, 1, 5)); in TestPreadVPwriteV() 51 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_CUR)); in TestPreadVPwriteV() 54 ASSERT_EQ(5, write_fn(tf.fd, ios, 1, 0)); in TestPreadVPwriteV() 55 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_CUR)); in TestPreadVPwriteV() 57 ASSERT_EQ(5, read_fn(tf.fd, ios, 1, 5)); in TestPreadVPwriteV() [all …]
|
D | stdio_test.cpp | 141 TemporaryFile tf; in TEST() local 143 int rc = dprintf(tf.fd, "hello\n"); in TEST() 146 lseek(tf.fd, 0, SEEK_SET); in TEST() 147 FILE* tfile = fdopen(tf.fd, "r"); in TEST() 899 TemporaryFile tf; in TEST() local 901 FILE* tfile = fdopen(tf.fd, "r+"); in TEST() 1451 TemporaryFile tf; in TEST() local 1452 FILE* fp = fdopen(tf.fd, "w+"); in TEST() 1467 fp = fopen(tf.path, "r"); in TEST() 2068 TemporaryFile tf; in test_fwrite_after_fread() local [all …]
|
D | malloc_test.cpp | 376 TemporaryFile tf; in TEST() local 377 ASSERT_TRUE(tf.fd != -1); in TEST() 378 FILE* fp = fdopen(tf.fd, "w+"); in TEST() 379 tf.release(); in TEST() 385 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &contents)); in TEST() 443 TemporaryFile tf; in TEST() local 444 ASSERT_TRUE(tf.fd != -1); in TEST() 445 FILE* fp = fdopen(tf.fd, "w+"); in TEST() 446 tf.release(); in TEST() 454 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &contents)); in TEST() [all …]
|
D | dlext_test.cpp | 527 TemporaryFile tf; // Use tf to get an unique filename. in TEST_F() local 528 ASSERT_NOERROR(close(tf.fd)); in TEST_F() 530 ASSERT_NO_FATAL_FAILURE(CreateRelroFile(kLibName, tf.path, false)); in TEST_F() 534 EXPECT_EQ(tf.path, FindMappingName(relro_data)); in TEST_F() 537 tf.fd = extinfo_.relro_fd; in TEST_F() 541 TemporaryFile tf; // Use tf to get an unique filename. in TEST_F() local 542 ASSERT_NOERROR(close(tf.fd)); in TEST_F() 544 ASSERT_NO_FATAL_FAILURE(CreateRelroFile(kLibNameRecursive, tf.path, true)); in TEST_F() 548 EXPECT_EQ(tf.path, FindMappingName(relro_data)); in TEST_F() 551 EXPECT_EQ(tf.path, FindMappingName(recursive_relro_data)); in TEST_F() [all …]
|
D | stdlib_test.cpp | 458 MyTemporaryFile tf([](char* path) { return mkostemp64(path, O_CLOEXEC); }); in TEST() local 459 AssertCloseOnExec(tf.fd, true); in TEST() 463 MyTemporaryFile tf([](char* path) { return mkostemp(path, O_CLOEXEC); }); in TEST() local 464 AssertCloseOnExec(tf.fd, true); in TEST() 468 MyTemporaryFile tf(mkstemp64); in TEST() local 470 ASSERT_EQ(0, fstat64(tf.fd, &sb)); in TEST() 471 ASSERT_EQ(O_LARGEFILE, fcntl(tf.fd, F_GETFL) & O_LARGEFILE); in TEST() 475 MyTemporaryFile tf(mkstemp); in TEST() local 477 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST()
|
D | glob_test.cpp | 153 TemporaryFile tf; in TEST() local 155 ASSERT_EQ(0, glob(tf.path, GLOB_MARK, nullptr, &g)); in TEST() 158 ASSERT_STREQ(tf.path, g.gl_pathv[0]); in TEST()
|
/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 …]
|
/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_unit_tests.cpp | 2477 TemporaryFile tf; in TEST_F() local 2478 ASSERT_TRUE(tf.fd != -1); in TEST_F() 2479 FILE* fp = fdopen(tf.fd, "w+"); in TEST_F() 2480 tf.release(); in TEST_F() 2486 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &contents)); in TEST_F() 2510 TemporaryFile tf; in TEST_F() local 2511 ASSERT_TRUE(tf.fd != -1); in TEST_F() 2512 FILE* fp = fdopen(tf.fd, "w+"); in TEST_F() 2513 tf.release(); in TEST_F() 2519 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &contents)); in TEST_F() [all …]
|
D | malloc_debug_system_tests.cpp | 496 TemporaryFile tf; in TEST() local 497 ASSERT_TRUE(tf.fd != -1); in TEST() 499 FILE* fp = fdopen(tf.fd, "w+"); in TEST() 501 printf("Unable to create %s\n", tf.path); in TEST() 504 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 __ieee754_lgammaf_r()
|
D | e_lgamma_r.c | 108 tf = -1.21486290535849611461e-01, /* 0xBFBF19B9, 0xBCC38A42 */ variable 264 r += tf + p; break; in __ieee754_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()
|