Lines Matching defs:hintsfile
61 add_dir(const char *hintsfile, const char *name, bool trusted)
90 errx(1, "\"%s\": Too many directories in path", hintsfile);
95 list_elf_hints(const char *hintsfile)
100 read_elf_hints(hintsfile, true, false);
101 printf("%s:\n", hintsfile);
145 read_dirs_from_file(const char *hintsfile, const char *listfile)
182 add_dir(hintsfile, sp, 0);
192 read_elf_hints(const char *hintsfile, bool must_exist, bool force_be)
203 if ((fd = open(hintsfile, O_RDONLY)) == -1) {
206 err(1, "Cannot open \"%s\"", hintsfile);
209 err(1, "Cannot stat \"%s\"", hintsfile);
211 errx(1, "\"%s\" is unreasonably large", hintsfile);
219 err(1, "Cannot mmap \"%s\"", hintsfile);
225 errx(1, "\"%s\": invalid file format", hintsfile);
227 errx(1, "\"%s\": incompatible endianness requested", hintsfile);
230 errx(1, "\"%s\": unrecognized file version (%d)", hintsfile,
238 add_dir(hintsfile, p, 1);
242 update_elf_hints(const char *hintsfile, int argc, char **argv, bool merge,
254 read_elf_hints(hintsfile, false, force_be);
259 read_dirs_from_file(hintsfile, argv[i]);
261 add_dir(hintsfile, argv[i], 0);
263 write_elf_hints(hintsfile);
267 write_elf_hints(const char *hintsfile)
275 if (asprintf(&tempname, "%s.XXXXXX", hintsfile) == -1)
316 if (rename(tempname, hintsfile) == -1)
317 err(1, "rename %s to %s", tempname, hintsfile);