Lines Matching defs:path
157 { "ca-path", required_argument, NULL, OPTION_SSL_CA_CERT_PATH },
399 fetch(char *URL, const char *path)
526 r = stat(path, &sb);
533 * path does not refer to a regular file)
538 warnx("%s: stat()", path);
578 if (symlink(url->doc, path) == -1) {
579 warn("%s: symlink()", path);
608 "does not match remote", path);
624 "than remote file (%jd bytes)", path,
629 if ((of = fopen(path, "r+")) == NULL) {
630 warn("%s: fopen()", path);
636 warn("%s: fstat()", path);
651 warn("%s: fseeko()", path);
686 if ((slash = strrchr(path, '/')) == NULL)
687 slash = path;
691 (int)(slash - path), path, slash);
694 warn("%s: mkstemps()", path);
703 of = fopen(path, "w");
705 warn("%s: open()", path);
712 stat_start(&xs, path, us.size, count);
765 (stat(path, &sb) != -1) && sb.st_mode & S_IFREG) {
772 if (utimes(tmppath ? tmppath : path, tv))
773 warn("%s: utimes()", tmppath ? tmppath : path);
793 warn("%s", path);
801 path, (intmax_t)count, (intmax_t)us.size);
810 warnx("%s may be truncated", path);
816 if (tmppath != NULL && rename(tmppath, path) == -1) {
817 warn("%s: rename()", path);
823 if (stat(path, &sb) != -1 && (sb.st_mode & S_IFREG))
824 unlink(tmppath ? tmppath : path);
826 rename(tmppath, path); /* ignore errors here */
847 " [--ca-cert=file] [--ca-path=dir] [--cert=file] [--crl=file]",
853 " [--ca-cert=file] [--ca-path=dir] [--cert=file] [--crl=file]",