Lines Matching refs:filepath
360 char filepath[PATH_MAX];
368 bzero(filepath, PATH_MAX);
373 init_result |= (strlcat(filepath, g_target_path, PATH_MAX) == PATH_MAX);
374 init_result |= (strlcat(filepath, "/", PATH_MAX) == PATH_MAX);
375 init_result |= (strlcpy(dirpath, filepath, PATH_MAX) == PATH_MAX);
376 init_result |= (strlcat(filepath, "cpt_test_file", PATH_MAX) == PATH_MAX);
420 fd = open(filepath, O_CREAT | O_EXCL | O_RDWR | O_CLOEXEC);
485 fd = open(filepath, O_RDWR | O_CLOEXEC);
558 fd = open(filepath, O_RDWR | O_TRUNC | O_CLOEXEC);
568 fd = open(filepath, O_RDWR | O_CLOEXEC);
584 fd = open(filepath, O_RDWR | O_CLOEXEC);
649 fd = open(filepath, O_RDWR | O_CLOEXEC);
658 unlink(filepath);
700 if ((strlcpy(filepath, dirpath, PATH_MAX) == PATH_MAX) || (strlcat(filepath, "cpt_test_file", PATH_MAX) == PATH_MAX))
731 fd = open(filepath, O_CREAT | O_EXCL | O_CLOEXEC);
756 unlink(filepath);
781 fd = open(filepath, O_CREAT | O_EXCL | O_CLOEXEC);
809 fd = open(filepath, O_CREAT | O_EXCL | O_RDWR | O_CLOEXEC);
899 unlink(filepath);