コード例 #1
0
ファイル: subdir.c プロジェクト: bfleischer/fuse-macosx
static int subdir_getxtimes(const char *path, struct timespec *bkuptime,
			    struct timespec *crtime)
{
	struct subdir *d = subdir_get();
	char *newpath;
	int err = subdir_addpath(d, path, &newpath);
	if (!err) {
		err = fuse_fs_getxtimes(d->next, newpath, bkuptime, crtime);
		free(newpath);
	}
	return err;
}
コード例 #2
0
ファイル: iconv.c プロジェクト: Abrikatin/fuse
static int iconv_getxtimes(const char *path, struct timespec *bkuptime,
			   struct timespec *crtime)
{
	struct iconv *ic = iconv_get();
	char *newpath;
	int err = iconv_convpath(ic, path, &newpath, 0);
	if (!err) {
		err = fuse_fs_getxtimes(ic->next, newpath, bkuptime, crtime);
		free(newpath);
	}
	return err;
}
コード例 #3
0
ファイル: volicon.c プロジェクト: matthewdooler/FDT
static int
volicon_getxtimes(const char *path, struct timespec *bkuptime,
                  struct timespec *crtime)
{
    if (volicon_is_a_magic_file(path)) {
        bkuptime->tv_sec = 0;
        bkuptime->tv_nsec = 0;
        crtime->tv_sec = 0;
        crtime->tv_nsec = 0;
        return 0;
    }

    return fuse_fs_getxtimes(volicon_get()->next, path, bkuptime, crtime);
}