Lines Matching refs:open
326 int fd = open(path, O_RDONLY);
328 PERROR("open");
523 path_fd = open(path, O_PATH);
525 PERROR("open(O_PATH)");
715 fd = open(testfile, O_WRONLY);
717 PERROR("open");
840 fd_in = open(testfile, O_CREAT | O_RDWR, 0644);
1023 fd = open(testfile, O_CREAT | O_RDWR | O_TRUNC, 0644);
1116 start_test("open(%s, %s, 0%03o)", exist ? "+" : "-", flags_str, mode);
1126 fd = open(testfile, flags, mode);
1129 ERROR("open should have failed");
1137 ERROR("open should have failed");
1144 PERROR("open");
1288 fd = open(testfile, flags);
1291 PERROR("open");
1296 ERROR("open should have failed");
1647 res = open(PATH("a/foo"), O_CREAT, 0644);
1649 PERROR("open");
1690 res = open(PATH("a/bar"), O_CREAT, 0644);
1692 PERROR("open");
1926 start_test("open(%s) in read-only directory", flags_str);
1933 fd = open(subfile, flags, 0644);
1937 ERROR("open should have failed");