Lines Matching defs:name

104 	/* Remove the base name. Just return if nothing is left */
133 /* touch depfile for symbol 'name' */
134 static int conf_touch_dep(const char *name)
138 /* check overflow: prefix + name + '\0' must fit in buffer. */
139 if (depfile_prefix_len + strlen(name) + 1 > sizeof(depfile_path))
142 strcpy(depfile_path + depfile_prefix_len, name);
210 char *name = getenv("KCONFIG_CONFIG");
212 return name ? name : ".config";
217 char *name = getenv("KCONFIG_AUTOCONFIG");
219 return name ? name : "include/config/auto.conf";
224 char *name = getenv("KCONFIG_AUTOHEADER");
226 return name ? name : "include/generated/autoconf.h";
231 char *name = getenv("KCONFIG_RUSTCCFG");
233 return name ? name : "include/generated/rustc_cfg";
261 p, sym->name);
289 p, sym->name);
319 int conf_read_simple(const char *name, int def)
330 if (name) {
331 in = zconf_fopen(name);
335 name = conf_get_configname();
336 in = zconf_fopen(name);
379 conf_filename = name;
458 conf_warning("override: reassigning to symbol %s", sym->name);
470 conf_warning("%s creates inconsistent choice state", sym->name);
476 conf_warning("override: %s changes choice state", sym->name);
489 int conf_read(const char *name)
496 if (conf_read_simple(name, S_DEF_USER)) {
650 fprintf(fp, "# %s%s is not set\n", CONFIG_, sym->name);
659 fprintf(fp, "%s%s=%s\n", CONFIG_, sym->name, val);
715 fprintf(fp, "#define %s%s%s %s%s\n", CONFIG_, sym->name, sym_suffix,
753 fprintf(fp, "--cfg=%s%s\n", CONFIG_, sym->name);
774 fprintf(fp, "--cfg=%s%s=%s\n", CONFIG_, sym->name, val);
854 int conf_write(const char *name)
864 if (!name)
865 name = conf_get_configname();
867 if (!*name) {
868 fprintf(stderr, "config name is empty\n");
872 if (is_dir(name)) {
873 fprintf(stderr, "%s: Is a directory\n", name);
877 if (make_parent_dir(name))
883 out = fopen(name, "w");
886 name, (int)getpid());
949 if (is_same(name, tmpname)) {
950 conf_message("No change to %s", name);
956 snprintf(oldname, sizeof(oldname), "%s.old", name);
957 rename(name, oldname);
958 if (rename(tmpname, name))
962 conf_message("configuration written to %s", name);
972 char name[PATH_MAX], tmp[PATH_MAX];
976 ret = snprintf(name, sizeof(name), "%s.cmd", autoconf_name);
977 if (ret >= sizeof(name)) /* check truncation */
980 if (make_parent_dir(name))
1003 if (rename(tmp, name)) {
1013 const char *name, *tmp;
1017 name = conf_get_autoconfig_name();
1018 tmp = strrchr(name, '/');
1019 depfile_prefix_len = tmp ? tmp - name + 1 : 0;
1023 strncpy(depfile_path, name, depfile_prefix_len);
1026 conf_read_simple(name, S_DEF_AUTO);
1031 if ((sym->flags & SYMBOL_NO_WRITE) || !sym->name)
1080 res = conf_touch_dep(sym->name);
1113 if ((sym->flags & SYMBOL_WRITE) && sym->name)