• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ iconv_convpath函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中iconv_convpath函数的典型用法代码示例。如果您正苦于以下问题:C++ iconv_convpath函数的具体用法?C++ iconv_convpath怎么用?C++ iconv_convpath使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了iconv_convpath函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: iconv_setcrtime

static int iconv_setcrtime(const char *path, const struct timespec *crtime)
{
	struct iconv *ic = iconv_get();
	char *newpath;
	int err = iconv_convpath(ic, path, &newpath, 0);
	if (!err) {
		err = fuse_fs_setcrtime(ic->next, newpath, crtime);
		free(newpath);
	}
	return err;
}
开发者ID:Abrikatin,项目名称:fuse,代码行数:11,代码来源:iconv.c


示例2: iconv_chflags

static int iconv_chflags(const char *path, uint32_t flags)
{
	struct iconv *ic = iconv_get();
	char *newpath;
	int err = iconv_convpath(ic, path, &newpath, 0);
	if (!err) {
		err = fuse_fs_chflags(ic->next, newpath, flags);
		free(newpath);
	}
	return err;
}
开发者ID:Abrikatin,项目名称:fuse,代码行数:11,代码来源:iconv.c


示例3: iconv_readlink

static int iconv_readlink(const char *path, char *buf, size_t size)
{
	struct iconv *ic = iconv_get();
	char *newpath;
	int err = iconv_convpath(ic, path, &newpath, 0);
	if (!err) {
		err = fuse_fs_readlink(ic->next, newpath, buf, size);
		if (!err) {
			char *newlink;
			err = iconv_convpath(ic, buf, &newlink, 1);
			if (!err) {
				strncpy(buf, newlink, size - 1);
				buf[size - 1] = '\0';
				free(newlink);
			}
		}
		free(newpath);
	}
	return err;
}
开发者ID:1x23,项目名称:unifi-gpl,代码行数:20,代码来源:iconv.c


示例4: iconv_setvolname

static int iconv_setvolname(const char *volname)
{
	struct iconv *ic = iconv_get();
	char *newvolname;
	int err = iconv_convpath(ic, volname, &newvolname, 0);
	if (!err) {
		err = fuse_fs_setvolname(ic->next, newvolname);
		free(newvolname);
	}
	return err;
}
开发者ID:Abrikatin,项目名称:fuse,代码行数:11,代码来源:iconv.c


示例5: iconv_utimens

static int iconv_utimens(const char *path, const struct timespec ts[2])
{
	struct iconv *ic = iconv_get();
	char *newpath;
	int err = iconv_convpath(ic, path, &newpath, 0);
	if (!err) {
		err = fuse_fs_utimens(ic->next, newpath, ts);
		free(newpath);
	}
	return err;
}
开发者ID:1x23,项目名称:unifi-gpl,代码行数:11,代码来源:iconv.c


示例6: iconv_open_file

static int iconv_open_file(const char *path, struct fuse_file_info *fi)
{
	struct iconv *ic = iconv_get();
	char *newpath;
	int err = iconv_convpath(ic, path, &newpath, 0);
	if (!err) {
		err = fuse_fs_open(ic->next, newpath, fi);
		free(newpath);
	}
	return err;
}
开发者ID:1x23,项目名称:unifi-gpl,代码行数:11,代码来源:iconv.c


示例7: iconv_chown

static int iconv_chown(const char *path, uid_t uid, gid_t gid)
{
	struct iconv *ic = iconv_get();
	char *newpath;
	int err = iconv_convpath(ic, path, &newpath, 0);
	if (!err) {
		err = fuse_fs_chown(ic->next, newpath, uid, gid);
		free(newpath);
	}
	return err;
}
开发者ID:1x23,项目名称:unifi-gpl,代码行数:11,代码来源:iconv.c


示例8: iconv_truncate

static int iconv_truncate(const char *path, off_t size)
{
	struct iconv *ic = iconv_get();
	char *newpath;
	int err = iconv_convpath(ic, path, &newpath, 0);
	if (!err) {
		err = fuse_fs_truncate(ic->next, newpath, size);
		free(newpath);
	}
	return err;
}
开发者ID:1x23,项目名称:unifi-gpl,代码行数:11,代码来源:iconv.c


示例9: iconv_setattr_x

static int iconv_setattr_x(const char *path, struct setattr_x *attr)
{
	struct iconv *ic = iconv_get();
	char *newpath;
	int err = iconv_convpath(ic, path, &newpath, 0);
	if (!err) {
		err = fuse_fs_setattr_x(ic->next, newpath, attr);
		free(newpath);
	}
	return err;
}
开发者ID:Abrikatin,项目名称:fuse,代码行数:11,代码来源:iconv.c


示例10: iconv_chmod

static int iconv_chmod(const char *path, mode_t mode)
{
	struct iconv *ic = iconv_get();
	char *newpath;
	int err = iconv_convpath(ic, path, &newpath, 0);
	if (!err) {
		err = fuse_fs_chmod(ic->next, newpath, mode);
		free(newpath);
	}
	return err;
}
开发者ID:1x23,项目名称:unifi-gpl,代码行数:11,代码来源:iconv.c


示例11: iconv_bmap

static int iconv_bmap(const char *path, size_t blocksize, uint64_t *idx)
{
	struct iconv *ic = iconv_get();
	char *newpath;
	int err = iconv_convpath(ic, path, &newpath, 0);
	if (!err) {
		err = fuse_fs_bmap(ic->next, newpath, blocksize, idx);
		free(newpath);
	}
	return err;
}
开发者ID:cephpp,项目名称:fuse,代码行数:11,代码来源:iconv.c


示例12: iconv_access

static int iconv_access(const char *path, int mask)
{
	struct iconv *ic = iconv_get();
	char *newpath;
	int err = iconv_convpath(ic, path, &newpath, 0);
	if (!err) {
		err = fuse_fs_access(ic->next, newpath, mask);
		free(newpath);
	}
	return err;
}
开发者ID:1x23,项目名称:unifi-gpl,代码行数:11,代码来源:iconv.c


示例13: iconv_removexattr

static int iconv_removexattr(const char *path, const char *name)
{
	struct iconv *ic = iconv_get();
	char *newpath;
	int err = iconv_convpath(ic, path, &newpath, 0);
	if (!err) {
		err = fuse_fs_removexattr(ic->next, newpath, name);
		free(newpath);
	}
	return err;
}
开发者ID:cephpp,项目名称:fuse,代码行数:11,代码来源:iconv.c


示例14: iconv_listxattr

static int iconv_listxattr(const char *path, char *list, size_t size)
{
	struct iconv *ic = iconv_get();
	char *newpath;
	int err = iconv_convpath(ic, path, &newpath, 0);
	if (!err) {
		err = fuse_fs_listxattr(ic->next, newpath, list, size);
		free(newpath);
	}
	return err;
}
开发者ID:cephpp,项目名称:fuse,代码行数:11,代码来源:iconv.c


示例15: iconv_statfs

static int iconv_statfs(const char *path, struct statvfs *stbuf)
{
	struct iconv *ic = iconv_get();
	char *newpath;
	int err = iconv_convpath(ic, path, &newpath, 0);
	if (!err) {
		err = fuse_fs_statfs(ic->next, newpath, stbuf);
		free(newpath);
	}
	return err;
}
开发者ID:cephpp,项目名称:fuse,代码行数:11,代码来源:iconv.c


示例16: iconv_write

static int iconv_write(const char *path, const char *buf, size_t size,
		       off_t offset, struct fuse_file_info *fi)
{
	struct iconv *ic = iconv_get();
	char *newpath;
	int err = iconv_convpath(ic, path, &newpath, 0);
	if (!err) {
		err = fuse_fs_write(ic->next, newpath, buf, size, offset, fi);
		free(newpath);
	}
	return err;
}
开发者ID:1x23,项目名称:unifi-gpl,代码行数:12,代码来源:iconv.c


示例17: iconv_setxattr

static int iconv_setxattr(const char *path, const char *name,
                          const char *value, size_t size, int flags)
{
    struct iconv *ic = iconv_get();
    char *newpath;
    int err = iconv_convpath(ic, path, &newpath, 0);
    if (!err) {
        err = fuse_fs_setxattr(ic->next, newpath, name, value, size, flags);
        free(newpath);
    }
    return err;
}
开发者ID:alhazred,项目名称:illumos-sshfs,代码行数:12,代码来源:iconv.c


示例18: iconv_dir_fill

static int iconv_dir_fill(void *buf, const char *name,
			  const struct stat *stbuf, off_t off)
{
	struct iconv_dh *dh = buf;
	char *newname;
	int res = 0;
	if (iconv_convpath(dh->ic, name, &newname, 1) == 0) {
		res = dh->prev_filler(dh->prev_buf, newname, stbuf, off);
		free(newname);
	}
	return res;
}
开发者ID:1x23,项目名称:unifi-gpl,代码行数:12,代码来源:iconv.c


示例19: iconv_fsyncdir

static int iconv_fsyncdir(const char *path, int isdatasync,
			  struct fuse_file_info *fi)
{
	struct iconv *ic = iconv_get();
	char *newpath;
	int err = iconv_convpath(ic, path, &newpath, 0);
	if (!err) {
		err = fuse_fs_fsyncdir(ic->next, newpath, isdatasync, fi);
		free(newpath);
	}
	return err;
}
开发者ID:1x23,项目名称:unifi-gpl,代码行数:12,代码来源:iconv.c


示例20: iconv_lock

static int iconv_lock(const char *path, struct fuse_file_info *fi, int cmd,
		      struct flock *lock)
{
	struct iconv *ic = iconv_get();
	char *newpath;
	int err = iconv_convpath(ic, path, &newpath, 0);
	if (!err) {
		err = fuse_fs_lock(ic->next, newpath, fi, cmd, lock);
		free(newpath);
	}
	return err;
}
开发者ID:1x23,项目名称:unifi-gpl,代码行数:12,代码来源:iconv.c



注:本文中的iconv_convpath函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ iconv_get函数代码示例发布时间:2022-05-30
下一篇:
C++ iconv函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap