Lines Matching refs:open
146 * child_function: open the file for read and write. Call the runtest routine.
154 if ((fd_w = open(filename, O_WRONLY | O_CREAT, 0666)) < 0) {
156 "open(%s, O_WRONLY|O_CREAT, ..) failed",
160 if ((fd_r = open(filename, O_DIRECT | O_RDONLY, 0666)) < 0) {
162 "open(%s, O_DIRECT|O_RDONLY, ..) failed",
177 open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) < 0) {
178 tst_resm(TFAIL, "fd_w open failed for %s: %s", filename,
182 if ((fd_r = open(filename, O_RDONLY, 0666)) < 0) {
183 tst_resm(TFAIL, "fd_r open failed for %s: %s",
198 open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) < 0) {
199 tst_resm(TFAIL, "fd_w open failed for %s: %s", filename,
203 if ((fd_r = open(filename, O_DIRECT | O_RDONLY, 0666)) < 0) {
204 tst_resm(TFAIL, "fd_r open failed for %s: %s",
349 if ((fd1 = open(filename, O_CREAT | O_EXCL, 0600)) < 0)
351 "open(%s, O_CREAT|O_EXCL, ..) failed", filename);
355 if ((fd1 = open(filename, O_DIRECT, 0600)) < 0)
356 tst_brkm(TCONF, cleanup, "open(%s, O_DIRECT, ..) failed",