Lines Matching defs:path

74 static int	clear_target(char *path, char *ftype, int is_a_dir);
76 unsigned long compute_checksum(int *r_err, char *path);
117 * of the file at the path provided
120 * path - path to file
133 * - VE_EXIST = path name does not exist
134 * - VE_FTYPE = path file type is not recognized, is not supported,
136 * - VE_ATTR = path mode/group/user is not what was expected
144 cverify(int fix, char *ftype, char *path, struct cinfo *cinfo,
159 if (stat(path, &status) < 0) {
175 if (utime(path, &times)) {
218 mycksum = compute_checksum(&cksumerr, path);
249 * - pointer to string representing path to file to
340 clear_target(char *path, char *ftype, int is_a_dir)
347 if (rmdir(path)) { /* try to remove it. */
348 reperr(pkg_gt(ERR_RMDIR), path);
353 if (remove(path)) {
366 * of the file at the path provided.
369 * path - path to file
375 * - VE_EXIST = path name does not exist
376 * - VE_FTYPE = path file type is not recognized, is not supported,
378 * - VE_ATTR = path mode/group/user is not what was expected
385 averify(int fix, char *ftype, char *path, struct ainfo *ainfo)
413 if (stat(path, &status) < 0) {
431 cd = strdup(path);
462 if (!clear_target(path, ftype, targ_is_dir))
465 if (link(ainfo->local, path)) {
495 if ((*ftype == 's') ? lstat(path, &status) :
496 stat(path, &status)) {
504 if ((n = lstat(path, &status)) == -1) {
558 reperr(pkg_gt(ERR_FTYPED), path);
573 n = readlink(path, buf, PATH_MAX);
594 /* The path doesn't exist or is different than it should be. */
600 if (!clear_target(path, ftype, targ_is_dir))
607 if (mkdir(path, ainfo->mode)) {
613 p = strdup(path);
626 if (stat(path, &status) < 0) {
631 if (symlink(ainfo->local, path)) {
657 logerr(MSG_WLDDEVNO, path,
661 if (mknod(path, ainfo->mode | S_IFCHR,
663 (stat(path, &status) < 0)) {
687 logerr(MSG_WLDDEVNO, path,
691 if (mknod(path, ainfo->mode | S_IFBLK,
693 (stat(path, &status) < 0)) {
698 if (mknod(path, ainfo->mode | S_IFIFO, NULL) ||
699 (stat(path, &status) < 0)) {
735 (chmod(path, ainfo->mode) < 0))
816 if (statvfs(path, &vfsstatus) < 0) {
823 chown(path, uid, gid) < 0) {
840 fverify(int fix, char *ftype, char *path, struct ainfo *ainfo,
851 if ((retval = averify(fix, ftype, path, ainfo)) == 0) {
854 reperr(pkg_gt(WRN_QV_SIZE), path);
860 reperr(pkg_gt(WRN_QV_MTIME), path);