Lines Matching refs:tmpfile
28 char tmpfile[] = "/data/mkostemp_0100_XXXXXX";
29 int fd = mkostemp(tmpfile, O_APPEND);
32 int cnt = write(fd, tmpfile, strlen(tmpfile));
33 EXPECT_TRUE("mkostemp_0100", cnt == strlen(tmpfile));
36 int len = sprintf(rmfile, "rm %s", tmpfile);
51 char tmpfile[] = "/data/mkostemp_0200_XXXXXX";
52 int fd = mkostemp(tmpfile, O_CLOEXEC);
55 int cnt = write(fd, tmpfile, strlen(tmpfile));
56 EXPECT_TRUE("mkostemp_0200", cnt == strlen(tmpfile));
59 int len = sprintf(rmfile, "rm %s", tmpfile);
74 char tmpfile[] = "/data/mkostemp_0300_XXXXXX";
75 int fd = mkostemp(tmpfile, O_SYNC);
78 int cnt = write(fd, tmpfile, strlen(tmpfile));
79 EXPECT_TRUE("mkostemp_0300", cnt == strlen(tmpfile));
82 int len = sprintf(rmfile, "rm %s", tmpfile);
97 char tmpfile[] = "/tmp/mkostemp_0400.dat";
98 int fd = mkostemp(tmpfile, O_APPEND);
101 int cnt = write(fd, tmpfile, strlen(tmpfile));
102 EXPECT_TRUE("mkostemp_0400", cnt == strlen(tmpfile));
105 int len = sprintf(rmfile, "rm %s", tmpfile);
120 char tmpfile[] = "/tmp/mkostemp_0500.dat";
121 int fd = mkostemp(tmpfile, O_CLOEXEC);
124 int cnt = write(fd, tmpfile, strlen(tmpfile));
125 EXPECT_TRUE("mkostemp_0500", cnt == strlen(tmpfile));
128 int len = sprintf(rmfile, "rm %s", tmpfile);
143 char tmpfile[] = "/tmp/mkostemp_0600.dat";
144 int fd = mkostemp(tmpfile, O_SYNC);
147 int cnt = write(fd, tmpfile, strlen(tmpfile));
148 EXPECT_TRUE("mkostemp_0600", cnt == strlen(tmpfile));
151 int len = sprintf(rmfile, "rm %s", tmpfile);