Lines Matching defs:file
295 static bool read_next_kernel_config_option(gzFile file, char *buf, size_t n,
300 while (gzgets(file, buf, n)) {
405 gzFile file = NULL;
414 file = gzopen(path, "r");
417 if (!file) {
419 * config file at /proc/config.gz.
421 file = gzopen("/proc/config.gz", "r");
423 if (!file) {
424 p_info("skipping kernel config, can't open file: %s",
429 if (!gzgets(file, buf, sizeof(buf)) ||
430 !gzgets(file, buf, sizeof(buf))) {
431 p_info("skipping kernel config, can't read from file: %s",
435 if (strcmp(buf, "# Automatically generated file; DO NOT EDIT.\n")) {
436 p_info("skipping kernel config, can't find correct file");
440 while (read_next_kernel_config_option(file, buf, sizeof(buf), &value)) {
451 if (file)
452 gzclose(file);