Searched defs:tf (Results 1 - 12 of 12) sorted by relevance

/bionic/tests/
H A Dsys_time_test.cpp47 TemporaryFile tf; local
48 ASSERT_EQ(0, utimes(tf.filename, NULL));
H A Dsys_xattr_test.cpp25 TemporaryFile tf; local
27 ASSERT_EQ(0, setxattr(tf.filename, "user.foo", "bar", 4, 0));
28 ASSERT_EQ(4, getxattr(tf.filename, "user.foo", buf, sizeof(buf)));
31 ASSERT_EQ(4, lgetxattr(tf.filename, "user.foo", buf, sizeof(buf)));
36 TemporaryFile tf; local
38 ASSERT_EQ(0, fsetxattr(tf.fd, "user.foo", "bar", 4, 0));
39 ASSERT_EQ(4, fgetxattr(tf.fd, "user.foo", buf, sizeof(buf)));
44 TemporaryFile tf; local
46 ASSERT_EQ(0, fsetxattr(tf.fd, "user.foo", "", 0, 0));
47 ASSERT_EQ(0, fgetxattr(tf
51 TemporaryFile tf; local
69 TemporaryFile tf; local
86 TemporaryFile tf; local
[all...]
H A Dsys_stat_test.cpp75 TemporaryFile tf; local
76 path = tf.filename;
149 TemporaryFile tf; local
151 ASSERT_EQ(0, fchmodat(AT_FDCWD, tf.filename, 0751, 0));
152 AssertFileModeEquals(0751, tf.filename);
156 TemporaryFile tf; local
158 int result = fchmodat(AT_FDCWD, tf.filename, 0751, AT_SYMLINK_NOFOLLOW);
163 AssertFileModeEquals(0751, tf.filename);
173 TemporaryFile tf; local
176 snprintf(linkname, sizeof(linkname), "%s.link", tf
185 TemporaryFile tf; local
206 TemporaryFile tf; local
229 TemporaryFile tf; local
[all...]
H A Dsys_mman_test.cpp38 TemporaryFile tf; local
40 void* map = mmap(NULL, 100, PROT_READ, MAP_SHARED, tf.fd, 1);
45 TemporaryFile tf; local
47 void* map = mmap64(NULL, 100, PROT_READ, MAP_SHARED, tf.fd, 1);
57 TemporaryFile tf; local
59 ASSERT_EQ(STR_SSIZE(STRING_MSG), write(tf.fd, STRING_MSG, sizeof(STRING_MSG)));
61 void* map = mmap(NULL, sizeof(STRING_MSG), PROT_READ, MAP_SHARED, tf.fd, 0);
71 TemporaryFile tf; local
73 ASSERT_EQ(STR_SSIZE(INITIAL_MSG), write(tf.fd, INITIAL_MSG, sizeof(INITIAL_MSG)));
74 lseek(tf
98 TemporaryFile tf; local
134 TemporaryFile tf; local
[all...]
H A Dfcntl_test.cpp74 TemporaryFile tf; local
83 EXPECT_EQ(EINVAL, posix_fadvise(tf.fd, 0, 0, -1));
86 EXPECT_EQ(EINVAL, posix_fadvise64(tf.fd, 0, 0, -1));
89 EXPECT_EQ(0, posix_fadvise(tf.fd, 0, 0, POSIX_FADV_NORMAL));
90 EXPECT_EQ(0, posix_fadvise64(tf.fd, 0, 0, POSIX_FADV_NORMAL));
94 TemporaryFile tf; local
100 ASSERT_EQ(-1, fallocate(tf.fd, 0, 0, -1));
104 ASSERT_EQ(-1, fallocate64(tf.fd, 0, 0, -1));
108 ASSERT_EQ(EINVAL, posix_fallocate(tf.fd, 0, -1));
112 ASSERT_EQ(EINVAL, posix_fallocate64(tf
117 TemporaryFile tf; local
164 TemporaryFile tf; local
[all...]
H A Dstdlib_test.cpp247 TemporaryFile tf([](char* path) { return mkostemp64(path, O_CLOEXEC); });
248 int flags = fcntl(tf.fd, F_GETFD);
254 TemporaryFile tf([](char* path) { return mkostemp(path, O_CLOEXEC); });
255 int flags = fcntl(tf.fd, F_GETFD);
261 TemporaryFile tf(mkstemp64);
263 ASSERT_EQ(0, fstat64(tf.fd, &sb));
264 ASSERT_EQ(O_LARGEFILE, fcntl(tf.fd, F_GETFL) & O_LARGEFILE);
268 TemporaryFile tf; local
270 ASSERT_EQ(0, fstat(tf.fd, &sb));
H A Ddlext_test.cpp383 TemporaryFile tf; // Use tf to get an unique filename. local
384 ASSERT_NOERROR(close(tf.fd));
386 ASSERT_NO_FATAL_FAILURE(CreateRelroFile(LIBNAME, tf.filename));
389 // Use destructor of tf to close and unlink the file.
390 tf.fd = extinfo_.relro_fd;
394 TemporaryFile tf; // // Use tf to get an unique filename. local
395 ASSERT_NOERROR(close(tf.fd));
397 ASSERT_NO_FATAL_FAILURE(CreateRelroFile(LIBNAME_NORELRO, tf
414 TemporaryFile tf; // Use tf to get an unique filename. local
[all...]
H A Dunistd_test.cpp140 TemporaryFile tf; local
141 ASSERT_EQ(0, close(tf.fd));
142 ASSERT_EQ(0, truncate(tf.filename, 123));
145 ASSERT_EQ(0, stat(tf.filename, &sb));
150 TemporaryFile tf; local
151 ASSERT_EQ(0, close(tf.fd));
152 ASSERT_EQ(0, truncate64(tf.filename, 123));
155 ASSERT_EQ(0, stat(tf.filename, &sb));
160 TemporaryFile tf; local
161 ASSERT_EQ(0, ftruncate(tf
170 TemporaryFile tf; local
180 TemporaryFile tf; local
363 TemporaryFile tf; local
508 TemporaryFile tf; local
[all...]
H A Dstdio_test.cpp77 TemporaryFile tf; local
79 int rc = dprintf(tf.fd, "hello\n");
82 lseek(tf.fd, 0, SEEK_SET);
83 FILE* tfile = fdopen(tf.fd, "r");
702 TemporaryFile tf; local
703 FILE* fp = fdopen(tf.fd, "w+");
718 fp = fopen(tf.filename, "r");
946 TemporaryFile tf; local
948 FILE* fp = fdopen(tf.fd, "w+");
980 TemporaryFile tf; local
[all...]
/bionic/libm/upstream-freebsd/lib/msun/src/
H A De_lgammaf_r.c42 * |(lgamma(x) - tf) - t(x - tc)| < 2**-30.8.
45 tf = -1.21486291e-01, /* 0xbdf8cdce */ variable
180 r += tf + p; break;
H A De_lgamma_r.c108 tf = -1.21486290535849611461e-01, /* 0xBFBF19B9, 0xBCC38A42 */ variable
109 /* tt = -(tail of tf) */
264 r += tf + p; break;
/bionic/libm/upstream-freebsd/lib/msun/ld128/
H A De_lgammal_r.c66 * |(lgamma(x) - tf) - t(x - tc)| < 2**-120.3.
70 tf = -1.21486290535849608095514557177691584e-01L, variable
289 r += tf + p; break;

Completed in 195 milliseconds