Lines Matching defs:path
101 static int configuration_init(const char *path, struct configuration *config)
108 if (path && access(path, F_OK)) {
109 ERROR("'%s' is not accessible\n", path);
113 if (!path && !config->nr_tz_regex) {
120 if (!config_read_file(&cfg, path)) {
257 static int thermometer_add_tz(const char *path, const char *name, int polling,
263 sprintf(tz_path, CLASS_THERMAL"/%s/temp", path);
283 INFO("Added thermal zone '%s->%s (polling:%d)'\n", path, name, polling);
359 char *path;
372 asprintf(&path, "%s/%s%s", options->output,
375 if (!options->overwrite && !access(path, F_OK)) {
376 ERROR("'%s' already exists\n", path);
380 f = fopen(path, "w");
382 ERROR("Failed to create '%s':%m\n", path);
390 DEBUG("Created '%s' file for thermal zone '%s'\n", path, thermometer->tz[i].name);