Lines Matching refs:fd
29 int fd = mkostemp(tmpfile, O_APPEND); in mkostemp_0100() local
30 EXPECT_TRUE("mkostemp_0100", fd != -1); in mkostemp_0100()
31 if (fd != -1) { in mkostemp_0100()
32 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemp_0100()
34 close(fd); in mkostemp_0100()
52 int fd = mkostemp(tmpfile, O_CLOEXEC); in mkostemp_0200() local
53 EXPECT_TRUE("mkostemp_0200", fd != -1); in mkostemp_0200()
54 if (fd != -1) { in mkostemp_0200()
55 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemp_0200()
57 close(fd); in mkostemp_0200()
75 int fd = mkostemp(tmpfile, O_SYNC); in mkostemp_0300() local
76 EXPECT_TRUE("mkostemp_0300", fd != -1); in mkostemp_0300()
77 if (fd != -1) { in mkostemp_0300()
78 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemp_0300()
80 close(fd); in mkostemp_0300()
98 int fd = mkostemp(tmpfile, O_APPEND); in mkostemp_0400() local
99 EXPECT_TRUE("mkostemp_0400", fd == -1); in mkostemp_0400()
100 if (fd != -1) { in mkostemp_0400()
101 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemp_0400()
103 close(fd); in mkostemp_0400()
121 int fd = mkostemp(tmpfile, O_CLOEXEC); in mkostemp_0500() local
122 EXPECT_TRUE("mkostemp_0500", fd == -1); in mkostemp_0500()
123 if (fd != -1) { in mkostemp_0500()
124 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemp_0500()
126 close(fd); in mkostemp_0500()
144 int fd = mkostemp(tmpfile, O_SYNC); in mkostemp_0600() local
145 EXPECT_TRUE("mkostemp_0600", fd == -1); in mkostemp_0600()
146 if (fd != -1) { in mkostemp_0600()
147 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemp_0600()
149 close(fd); in mkostemp_0600()