Searched refs:tf (Results 1 - 13 of 13) sorted by relevance

/bionic/tests/
H A Dsys_uio_test.cpp24 TemporaryFile tf; local
30 ASSERT_EQ(10, writev(tf.fd, ios, 2));
32 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET));
37 ASSERT_EQ(10, readv(tf.fd, ios, 2));
45 TemporaryFile tf; local
50 ASSERT_EQ(5, write_fn(tf.fd, ios, 1, 5));
51 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_CUR));
54 ASSERT_EQ(5, write_fn(tf.fd, ios, 1, 0));
55 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_CUR));
57 ASSERT_EQ(5, read_fn(tf
[all...]
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
87 TemporaryFile tf; local
105 TemporaryFile tf; local
114 TemporaryFile tf; local
[all...]
H A Dsys_mman_test.cpp39 TemporaryFile tf; local
41 void* map = mmap(NULL, 100, PROT_READ, MAP_SHARED, tf.fd, 1);
46 TemporaryFile tf; local
48 void* map = mmap64(NULL, 100, PROT_READ, MAP_SHARED, tf.fd, 1);
58 TemporaryFile tf; local
60 ASSERT_EQ(STR_SSIZE(STRING_MSG), write(tf.fd, STRING_MSG, sizeof(STRING_MSG)));
62 void* map = mmap(NULL, sizeof(STRING_MSG), PROT_READ, MAP_SHARED, tf.fd, 0);
72 TemporaryFile tf; local
74 ASSERT_EQ(STR_SSIZE(INITIAL_MSG), write(tf.fd, INITIAL_MSG, sizeof(INITIAL_MSG)));
75 lseek(tf
99 TemporaryFile tf; local
135 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 Dunistd_test.cpp155 TemporaryFile tf; local
156 ASSERT_EQ(0, close(tf.fd));
157 ASSERT_EQ(0, truncate(tf.filename, 123));
160 ASSERT_EQ(0, stat(tf.filename, &sb));
165 TemporaryFile tf; local
166 ASSERT_EQ(0, close(tf.fd));
167 ASSERT_EQ(0, truncate64(tf.filename, 123));
170 ASSERT_EQ(0, stat(tf.filename, &sb));
175 TemporaryFile tf; local
176 ASSERT_EQ(0, ftruncate(tf
185 TemporaryFile tf; local
195 TemporaryFile tf; local
375 TemporaryFile tf; local
521 TemporaryFile tf; local
871 TemporaryFile tf; local
894 TemporaryFile tf; local
916 TemporaryFile tf; local
931 TemporaryFile tf; local
958 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_time_test.cpp47 TemporaryFile tf; local
48 ASSERT_EQ(0, utimes(tf.filename, NULL));
H A Dstdlib_test.cpp249 TemporaryFile tf([](char* path) { return mkostemp64(path, O_CLOEXEC); });
250 int flags = fcntl(tf.fd, F_GETFD);
256 TemporaryFile tf([](char* path) { return mkostemp(path, O_CLOEXEC); });
257 int flags = fcntl(tf.fd, F_GETFD);
263 TemporaryFile tf(mkstemp64);
265 ASSERT_EQ(0, fstat64(tf.fd, &sb));
266 ASSERT_EQ(O_LARGEFILE, fcntl(tf.fd, F_GETFL) & O_LARGEFILE);
270 TemporaryFile tf; local
272 ASSERT_EQ(0, fstat(tf.fd, &sb));
H A Dstdio_test.cpp89 TemporaryFile tf; local
91 int rc = dprintf(tf.fd, "hello\n");
94 lseek(tf.fd, 0, SEEK_SET);
95 FILE* tfile = fdopen(tf.fd, "r");
748 TemporaryFile tf; local
749 FILE* fp = fdopen(tf.fd, "w+");
764 fp = fopen(tf.filename, "r");
1000 TemporaryFile tf; local
1002 FILE* fp = fdopen(tf.fd, "w+");
1034 TemporaryFile tf; local
1072 TemporaryFile tf; local
1190 TemporaryFile* tf = new TemporaryFile; local
1230 TemporaryFile tf; local
1273 TemporaryFile tf; local
[all...]
H A Ddlext_test.cpp474 TemporaryFile tf; // Use tf to get an unique filename. local
475 ASSERT_NOERROR(close(tf.fd));
477 ASSERT_NO_FATAL_FAILURE(CreateRelroFile(LIBNAME, tf.filename));
480 // Use destructor of tf to close and unlink the file.
481 tf.fd = extinfo_.relro_fd;
485 TemporaryFile tf; // // Use tf to get an unique filename. local
486 ASSERT_NOERROR(close(tf.fd));
488 ASSERT_NO_FATAL_FAILURE(CreateRelroFile(LIBNAME_NORELRO, tf
505 TemporaryFile tf; // Use tf to get an unique filename. 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 136 milliseconds