当前位置: 首页>>代码示例>>C++>>正文


C++ iconv_get函数代码示例

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


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

示例1: 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

示例2: iconv_getattr

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

示例3: 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

示例4: 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:1x23,项目名称:unifi-gpl,代码行数:11,代码来源:iconv.c

示例5: 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

示例6: 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

示例7: iconv_release

static int iconv_release(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_release(ic->next, newpath, fi);
		free(newpath);
	}
	return err;
}
开发者ID:1x23,项目名称:unifi-gpl,代码行数:11,代码来源:iconv.c

示例8: 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

示例9: 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

示例10: 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

示例11: 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

示例12: 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:1x23,项目名称:unifi-gpl,代码行数:11,代码来源:iconv.c

示例13: 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:1x23,项目名称:unifi-gpl,代码行数:11,代码来源:iconv.c

示例14: 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

示例15: 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


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