Lines Matching refs:filename
68 check_file(const char *filename, mode_t *mode) in check_file() argument
74 fd = open(filename, O_RDONLY); in check_file()
76 warn("Unable to open %s", filename); in check_file()
81 warn("stat(2) failed on %s", filename); in check_file()
87 warnx("%s is not a regular file", filename); in check_file()
93 warnx("%s is not an ELF file", filename); in check_file()
99 warn("Error reading %s", filename); in check_file()
105 warnx("%s is not an ELF file", filename); in check_file()
116 fix_file(const char *filename, mode_t mode) in fix_file() argument
123 if (chmod(filename, mode | S_IWUSR) == -1) { in fix_file()
124 warn("failed to make %s writable", filename); in fix_file()
129 cmd[4] = filename; in fix_file()
138 warnx("Removing CTF information from %s failed", filename); in fix_file()
143 if (chmod(filename, mode) == -1) { in fix_file()
144 warn("could not reset permissions of %s", filename); in fix_file()