Lines Matching refs:c_str

87       if (!fnmatch(exclude.c_str(), name.c_str(), 0)) return false;  in ShouldInclude()
96 if (!fnmatch(include.c_str(), name.c_str(), 0)) return true; in ShouldInclude()
104 if (stat(path.c_str(), &sb) != -1 && S_ISDIR(sb.st_mode)) return true; in MakeDirectoryHierarchy()
110 return (mkdir(path.c_str(), 0777) != -1); in MakeDirectoryHierarchy()
169 printf("replace %s? [y]es, [n]o, [A]ll, [N]one: ", dst.c_str()); in PromptOverwrite()
207 die(0, "failed to extract %s: %s", name.c_str(), ErrorCodeString(err)); in ExtractToPipe()
210 die(errno, "failed to write %s to stdout", name.c_str()); in ExtractToPipe()
218 die(0, "bad filename %s", name.c_str()); in ExtractOne()
231 die(errno, "couldn't create directory hierarchy for %s", dst.c_str()); in ExtractOne()
236 if (mkdir(name.c_str(), entry.unix_mode) == -1) { in ExtractOne()
240 if (stat(name.c_str(), &sb) != -1 && S_ISDIR(sb.st_mode)) return; in ExtractOne()
242 die(errno, "couldn't extract directory %s", dst.c_str()); in ExtractOne()
248 int fd = open(name.c_str(), O_CREAT | O_WRONLY | O_CLOEXEC | O_EXCL, entry.unix_mode); in ExtractOne()
253 fd = open(name.c_str(), O_WRONLY | O_CREAT | O_CLOEXEC | O_TRUNC, entry.unix_mode); in ExtractOne()
255 if (fd == -1) die(errno, "couldn't create file %s", dst.c_str()); in ExtractOne()
258 if (!flag_q) printf(" inflating: %s\n", dst.c_str()); in ExtractOne()
260 if (err < 0) die(0, "failed to extract %s: %s", dst.c_str(), ErrorCodeString(err)); in ExtractOne()
273 name.c_str()); in ListOne()
275 printf("%9" PRIu64 " %s %s\n", entry.uncompressed_length, time, name.c_str()); in ListOne()
282 printf("%s\n", name.c_str()); in InfoOne()
336 entry.has_data_descriptor ? 'X' : 'x', method, time, name.c_str()); in InfoOne()
528 if (mkdir(flag_d.c_str(), 0777) == -1 && errno != EEXIST) { in main()
529 die(errno, "couldn't created %s", flag_d.c_str()); in main()
531 if (chdir(flag_d.c_str()) == -1) { in main()
532 die(errno, "couldn't chdir to %s", flag_d.c_str()); in main()