Lines Matching defs:kfile
79 const char *kfile, *fsfile;
122 kfile = argv[0];
126 if ((kfd = open(kfile, O_RDONLY, 0)) == -1)
127 err(1, "open %s", kfile);
129 if ((kfd = open(kfile, O_RDWR, 0)) == -1)
130 err(1, "open %s", kfile);
134 err(1, "fstat %s", kfile);
136 errx(1, "%s too big to map", kfile);
140 err(1, "mmap %s", kfile);
142 fprintf(stderr, "mapped %s\n", kfile);
144 bin = bin_open(kfd, kfile, bfdname);
149 errx(1, "could not find symbols in %s", kfile);
151 fprintf(stderr, "got symbols from %s\n", kfile);
179 (extract ? "from" : "into"), kfile, left_to_copy);
183 err(1, "seek %s", kfile);
193 rfile = kfile;
200 wfile = kfile;
228 err(1, "seek %s", kfile);
231 err(1, "write %s", kfile);