Lines Matching defs:exist
302 ERROR("file should not exist");
306 ERROR("file should not exist: %s", strerror(errno));
1103 #define test_open(exist, flags, mode) do_test_open(exist, flags, #flags, mode)
1105 static int do_test_open(int exist, int flags, const char *flags_str, int mode)
1116 start_test("open(%s, %s, 0%03o)", exist ? "+" : "-", flags_str, mode);
1118 if (exist) {
1127 if ((flags & O_CREAT) && (flags & O_EXCL) && exist) {
1135 if (!(flags & O_CREAT) && !exist) {
1152 if (exist)
1158 if (exist && !(flags & O_TRUNC) && (mode & S_IRUSR))
1177 if (exist && !(flags & O_TRUNC) &&
1217 if (exist && !(flags & O_TRUNC) &&
1222 } else if (exist)