Lines Matching defs:path
81 #define STATFS_FN(path, buf) (statfs(path,buf,sizeof(buf)))
87 #define STATFS_FN(path, buf) (statvfs(path,buf))
93 #define STATFS_FN(path, buf) (statvfs64(path,buf))
99 #define STATFS_FN(path, buf) (statfs(path,buf))
105 #define STATFS_FN(path, buf) (statfs(path,buf,sizeof(buf),0))
148 #define STATFS_FN(path,buf) (dummy_statfs(buf))
358 char path[PATH_MAX];
370 snprintf(path, sizeof(path), "%s%s", g_rdpdr_device[device_id].local_path, filename);
372 sprintf(path, "%s%s", g_rdpdr_device[device_id].local_path, filename ? filename : "");
383 if (strstr(path, "/.."))
393 unlink(path);
421 /*printf("Open: \"%s\" flags: %X, accessmask: %X sharemode: %X create disp: %X\n", path, flags_and_attributes, accessmask, sharemode, create_disposition); */
424 if ((stat(path, &filestat) == 0) && (S_ISDIR(filestat.st_mode)))
436 mkdir(path, mode);
439 dirp = opendir(path);
477 handle = open_weak_exclusive(path, flags, mode);
523 strncpy(g_fileinfo[handle].path, path, PATH_MAX - 1);
554 if (rmdir(pfinfo->path) < 0)
556 perror(pfinfo->path);
569 if (unlink(pfinfo->path) < 0)
571 perror(pfinfo->path);
653 char *path, *filename;
655 path = g_fileinfo[handle].path;
670 filename = 1 + strrchr(path, '/');
803 if (utime(pfinfo->path, &tvs) && errno != EPERM)
852 if (rename(pfinfo->path, fullpath) != 0)
893 DIR *dp = opendir(pfinfo->path);
925 if (STATFS_FN(pfinfo->path, &stat_fs) == 0)
1022 dpr = opendir(pfinfo->path);
1035 fullname = (char *) xmalloc(strlen(pfinfo->path) + strlen(dp->d_name) + 2);
1036 sprintf(fullname, "%s/%s", pfinfo->path, dp->d_name);
1127 if (STATFS_FN(pfinfo->path, &stat_fs) != 0)
1133 fsinfo = FsVolumeInfo(pfinfo->path);
1206 dirname = pfinfo->path;