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

C++ NOT_YET_IMPLEMENTED函数代码示例

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

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



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

示例1: s5fs_delete_vnode

/*
 * See the comment in vfs.h for what is expected of this function.
 *
 * When this function returns, the inode refcount should be decremented.
 *
 * You probably want to use s5_free_inode() if there are no more links to
 * the inode, and dont forget to unpin the page
 */
static void
s5fs_delete_vnode(vnode_t *vnode)
{
        NOT_YET_IMPLEMENTED("S5FS: s5fs_delete_vnode");
}
开发者ID:lygood2007,项目名称:Weenix,代码行数:13,代码来源:s5fs.c


示例2: range_perm

/*
 * range_perm is essentially a version of addr_perm that checks an entire
 * range of addresses (from avaddr to avaddr+len).  Though you will
 * probably want to use your addr_perm() function in your implementation of
 * range_perm, you don't need to check every possible address.  Remember
 * that page protections have, as the name suggests, page granularity.
 * Like addr_perm, this function should return 1 if the range is valid for
 * the given permissions, and 0 otherwise.
 */
int range_perm(struct proc *p, const void *avaddr, size_t len, int perm) {
  NOT_YET_IMPLEMENTED("VM: ***none***");
  return 0;
}
开发者ID:acconsta,项目名称:Weenix,代码行数:13,代码来源:access.c


示例3: do_mount

/*
 * Implementing this function is not required and strongly discouraged unless
 * you are absolutely sure your Weenix is perfect.
 *
 * This is the syscall entry point into vfs for mounting. You will need to
 * create the fs_t struct and populate its fs_dev and fs_type fields before
 * calling vfs's mountfunc(). mountfunc() will use the fields you populated
 * in order to determine which underlying filesystem's mount function should
 * be run, then it will finish setting up the fs_t struct. At this point you
 * have a fully functioning file system, however it is not mounted on the
 * virtual file system, you will need to call vfs_mount to do this.
 *
 * There are lots of things which can go wrong here. Make sure you have good
 * error handling. Remember the fs_dev and fs_type buffers have limited size
 * so you should not write arbitrary length strings to them.
 */
int
do_mount(const char *source, const char *target, const char *type)
{
        NOT_YET_IMPLEMENTED("MOUNTING: do_mount");
        return -EINVAL;
}
开发者ID:rvsharath91,项目名称:Projects,代码行数:22,代码来源:vfs_syscall.c


示例4: s5_link

/*
 * Create a new directory entry in directory 'parent' with the given name, which
 * refers to the same file as 'child'.
 *
 * When this function returns, the inode refcount on the file that was linked to
 * should be incremented.
 *
 * Remember to incrament the ref counts appropriately
 *
 * You probably want to use s5_find_dirent(), s5_write_file(), and s5_dirty_inode().
 */
int
s5_link(vnode_t *parent, vnode_t *child, const char *name, size_t namelen)
{
        NOT_YET_IMPLEMENTED("S5FS: s5_link");
        return -1;
}
开发者ID:Sherry-Shi,项目名称:operating-system,代码行数:17,代码来源:s5fs_subr.c


示例5: s5_seek_to_block

/*
 * Return the disk-block number for the given seek pointer (aka file
 * position).
 *
 * If the seek pointer refers to a sparse block, and alloc is false,
 * then return 0. If the seek pointer refers to a sparse block, and
 * alloc is true, then allocate a new disk block (and make the inode
 * point to it) and return it.
 *
 * Be sure to handle indirect blocks!
 *
 * If there is an error, return -errno.
 *
 * You probably want to use pframe_get, pframe_pin, pframe_unpin, pframe_dirty.
 */
int
s5_seek_to_block(vnode_t *vnode, off_t seekptr, int alloc)
{
        NOT_YET_IMPLEMENTED("S5FS: s5_seek_to_block");
        return -1;
}
开发者ID:Sherry-Shi,项目名称:operating-system,代码行数:21,代码来源:s5fs_subr.c


示例6: s5_write_file

/*
 * Write len bytes to the given inode, starting at seek bytes from the
 * beginning of the inode. On success, return the number of bytes
 * actually written (which should be 'len', unless there's only enough
 * room for a partial write); on failure, return -errno.
 *
 * This function should allow writing to files or directories, treating
 * them identically.
 *
 * Writing to a sparse block of the file should cause that block to be
 * allocated.  Writing past the end of the file should increase the size
 * of the file. Blocks between the end and where you start writing will
 * be sparse.
 *
 * Do not call s5_seek_to_block() directly from this function.  You will
 * use the vnode's pframe functions, which will eventually result in a
 * call to s5_seek_to_block().
 *
 * You will need pframe_dirty(), pframe_get(), memcpy().
 */
int
s5_write_file(vnode_t *vnode, off_t seek, const char *bytes, size_t len)
{
        NOT_YET_IMPLEMENTED("S5FS: s5_write_file");
        return -1;
}
开发者ID:Sherry-Shi,项目名称:operating-system,代码行数:26,代码来源:s5fs_subr.c


示例7: s5_alloc_block

/*
 * Allocate a new disk-block off the block free list and return it. If
 * there are no free blocks, return -ENOSPC.
 *
 * This will not initialize the contents of an allocated block; these
 * contents are undefined.
 *
 * If the super block's s5s_nfree is 0, you need to refill 
 * s5s_free_blocks and reset s5s_nfree.  You need to read the contents 
 * of this page using the pframe system in order to obtain the next set of
 * free block numbers.
 *
 * Don't forget to dirty the appropriate blocks!
 *
 * You'll probably want to use lock_s5(), unlock_s5(), pframe_get(),
 * and s5_dirty_super()
 */
static int
s5_alloc_block(s5fs_t *fs)
{
        NOT_YET_IMPLEMENTED("S5FS: s5_alloc_block");
        return -1;
}
开发者ID:Sherry-Shi,项目名称:operating-system,代码行数:23,代码来源:s5fs_subr.c


示例8: s5fs_lookup

/*
 * See the comment in vnode.h for what is expected of this function.
 *
 * You probably want to use s5_find_dirent() and vget().
 */
int
s5fs_lookup(vnode_t *base, const char *name, size_t namelen, vnode_t **result)
{
        NOT_YET_IMPLEMENTED("S5FS: s5fs_lookup");
        return -1;
}
开发者ID:lygood2007,项目名称:Weenix,代码行数:11,代码来源:s5fs.c


示例9: s5fs_unlink

/*
 * See the comment in vnode.h for what is expected of this function.
 *
 * When this function returns, the inode refcount of the unlinked file
 * should be decremented.
 *
 * You probably want to use s5_remove_dirent().
 */
static int
s5fs_unlink(vnode_t *dir, const char *name, size_t namelen)
{
        NOT_YET_IMPLEMENTED("S5FS: s5fs_unlink");
        return -1;
}
开发者ID:lygood2007,项目名称:Weenix,代码行数:14,代码来源:s5fs.c


示例10: s5fs_create

/*
 * See the comment in vnode.h for what is expected of this function.
 *
 * When this function returns, the inode refcount of the file should be 2
 * and the vnode refcount should be 1.
 *
 * You probably want to use s5_alloc_inode(), s5_link(), and vget().
 */
static int
s5fs_create(vnode_t *dir, const char *name, size_t namelen, vnode_t **result)
{
        NOT_YET_IMPLEMENTED("S5FS: s5fs_create");
        return -1;
}
开发者ID:lygood2007,项目名称:Weenix,代码行数:14,代码来源:s5fs.c


示例11: s5fs_mknod

/*
 * See the comment in vnode.h for what is expected of this function.
 *
 * This function is similar to s5fs_create, but it creates a special
 * file specified by 'devid'.
 *
 * You probably want to use s5_alloc_inode, s5_link(), vget(), and vput().
 */
static int
s5fs_mknod(vnode_t *dir, const char *name, size_t namelen, int mode, devid_t devid)
{
        NOT_YET_IMPLEMENTED("S5FS: s5fs_mknod");
        return -1;
}
开发者ID:lygood2007,项目名称:Weenix,代码行数:14,代码来源:s5fs.c


示例12: s5fs_write

/* Simply call s5_write_file. */
static int
s5fs_write(vnode_t *vnode, off_t offset, const void *buf, size_t len)
{
        NOT_YET_IMPLEMENTED("S5FS: s5fs_write");
        return -1;
}
开发者ID:lygood2007,项目名称:Weenix,代码行数:7,代码来源:s5fs.c


示例13: s5fs_read

/* Simply call s5_read_file. */
static int
s5fs_read(vnode_t *vnode, off_t offset, void *buf, size_t len)
{
        NOT_YET_IMPLEMENTED("S5FS: s5fs_read");
        return -1;
}
开发者ID:lygood2007,项目名称:Weenix,代码行数:7,代码来源:s5fs.c


示例14: s5fs_query_vnode

/*
 * See the comment in vfs.h for what is expected of this function.
 *
 * The vnode still exists on disk if it has a linkcount greater than 1.
 * (Remember, VFS takes a reference on the inode as long as it uses it.)
 *
 */
static int
s5fs_query_vnode(vnode_t *vnode)
{
        NOT_YET_IMPLEMENTED("S5FS: s5fs_query_vnode");
        return 0;
}
开发者ID:lygood2007,项目名称:Weenix,代码行数:13,代码来源:s5fs.c


示例15: do_link

/* To link:
 *      o open_namev(from)
 *      o dir_namev(to)
 *      o call the destination dir's (to) link vn_ops.
 *      o return the result of link, or an error
 *
 * Remember to vput the vnodes returned from open_namev and dir_namev.
 *
 * Error cases you must handle for this function at the VFS level:
 *      o EEXIST
 *        to already exists.
 *      o ENOENT
 *        A directory component in from or to does not exist.
 *      o ENOTDIR
 *        A component used as a directory in from or to is not, in fact, a
 *        directory.
 *      o ENAMETOOLONG
 *        A component of from or to was too long.
 *      o EISDIR
 *        from is a directory.
 */
int
do_link(const char *from, const char *to)
{
	NOT_YET_IMPLEMENTED("Link ");
	return -1;
	/*size_t namelen=0;
	const char *name=NULL;
	vnode_t *base = NULL;
	vnode_t *res_vnode_to=NULL;
	vnode_t *res_vnode_from=NULL;
	vnode_t *temp_vnode=NULL;

	KASSERT(from);
	KASSERT(to);

	int from_namev_ret=open_namev(from,NULL,&res_vnode_from,NULL);
	if(from_namev_ret<0)
	{
		KASSERT(from_namev_ret<0);
		dbg(DBG_PRINT,"(GRADING2D 3.g): From component has failed.\n");
		return from_namev_ret;
	}
	KASSERT(res_vnode_from);
	if(S_ISDIR(res_vnode_from->vn_mode))
	{
		KASSERT(S_ISDIR(res_vnode_from->vn_mode));
		dbg(DBG_PRINT, "(GRADING2D 3.g): From is a directory.\n");
		vput(res_vnode_from);
		return -EISDIR;
	}

	int to_namev_ret=dir_namev(to, &namelen,&name,NULL,&res_vnode_to);
	if(to_namev_ret<0)
	{*/
	/* Here we have to check if the vnode from has occurred successfully.
	  * If yes then simply vput the from */
	/*	KASSERT(to_namev_ret<0);
		dbg(DBG_PRINT,"(GRADING2D 3.g): To component has failed.\n");

		vput(res_vnode_from);
		return to_namev_ret;
	}
	KASSERT(res_vnode_to);

	if(!S_ISDIR(res_vnode_to->vn_mode))
	{
		KASSERT(!S_ISDIR(res_vnode_to->vn_mode));
		dbg(DBG_PRINT, "(GRADING2D 3.g): Some directory component is not a directory\n");
		vput(res_vnode_to);
		vput(res_vnode_from);
		return -ENOTDIR;
	}*/

	/* Need to check res_vnode before we call this to avoid conflict */
	/* To check if the path exists */
	/*KASSERT(name!=NULL);
	dbg(DBG_PRINT, "(GRADING2D 3.g): The name component is present\n");

	int loookup_ret=lookup(res_vnode_to,name,namelen,&temp_vnode);
	if(0==loookup_ret)
	{
		KASSERT(0==loookup_ret);
		dbg(DBG_PRINT, "(GRADING2D 3.g): The path exists. Would not be able to create the directory.\n");
		vput(res_vnode_to);
		vput(res_vnode_from);
		vput(temp_vnode);
		return -EEXIST;
	}

	KASSERT(res_vnode_to->vn_ops->link);
	int link_ret=(res_vnode_to->vn_ops->link)(res_vnode_from,res_vnode_to,name,namelen);
	vput(res_vnode_to);
	vput(res_vnode_from);

	if(link_ret<0){
		dbg(DBG_PRINT, "(GRADING2D 3.g): There is a problem in linking.\n");
		return link_ret;
	}

//.........这里部分代码省略.........
开发者ID:nikita92,项目名称:Kernel-2-Virtual-File-System-,代码行数:101,代码来源:vfs_syscall.c


示例16: s5fs_rmdir

/*
 * See the comment in vnode.h for what is expected of this function.
 *
 * When this function returns, the inode refcount on the parent should be
 * decremented (since ".." in the removed directory no longer references
 * it). Remember that the directory must be empty (except for "." and
 * "..").
 *
 * You probably want to use s5_find_dirent() and s5_remove_dirent().
 */
static int
s5fs_rmdir(vnode_t *parent, const char *name, size_t namelen)
{
        NOT_YET_IMPLEMENTED("S5FS: s5fs_rmdir");
        return -1;
}
开发者ID:lygood2007,项目名称:Weenix,代码行数:16,代码来源:s5fs.c


示例17: process

void process( const std::string & file, ExportMode exportMode )
{
	auto start = clock( );

	std::cout << "\n\n OPERATING ON " << file << std::endl;
	
	gpu_triangle_array * tris = nullptr, * volumeTris = nullptr;


	//	Determine loading method
	std::string fileExt = getFileExtension( file );
	if( fileExt == "fbx" )
	{
		gpu_vertex_array * points;
		gpu_index_array * indices;

		workflow_import_fbx( file, &points, &indices );
		workflow_gen_tris( points, indices, &tris );
		workflow_gen_normals( tris );

		delete points;
		delete indices;
	}
	else if( fileExt == "msh" )
	{
		gpu_vertex_array * volumeData = nullptr;

		gpu_vertex_array * points;
		gpu_index_array * indices, * innerIndices;

		workflow_import_msh( file, &points, &indices, &innerIndices );
		int x = indices->data()[0];
		int y = innerIndices->data( )[0];
		workflow_gen_tris( points, indices, &tris );
		workflow_gen_tris( points, innerIndices, &volumeTris );
		workflow_gen_normals( tris );
		workflow_gen_normals( volumeTris );
		
		if( volumeData )
			delete volumeData;
		delete points;
		delete indices, innerIndices;
	}
	else
		NOT_YET_IMPLEMENTED( );



	workflow_render_mesh( tris );
	if( volumeTris ) workflow_render_mesh( volumeTris );

	if( should_generate_center )
	{
		if( !did_generate_center ) {
			collection_center = workflow_get_mesh_center( tris );
			did_generate_center = true;
		}

		workflow_recenter_mesh( tris, collection_center );
		if( volumeTris ) workflow_recenter_mesh( volumeTris, collection_center );
	}


	cpu_chunk_array * chunks, * volumeChunks = nullptr;
	generate_chunks( tris, &chunks );
	if( volumeTris ) generate_chunks( volumeTris, &volumeChunks );

	CreateDirectoryA( getFileName( file ).c_str( ), nullptr );

	typedef void( *ChunkExportWorkflow )(const std::string &, cpu_chunk_array *);
	//	Strategy pattern
	ChunkExportWorkflow exportWorkflow = nullptr;
	switch( exportMode )
	{
	case(EXPORT_FBX) :
		exportWorkflow = workflow_chunk_export_fbx;
		break;
	case(EXPORT_BINARY) :
		exportWorkflow = workflow_chunk_export_binary;
		break;
	}

	exportWorkflow( getFileName( file ) + "/surfaces", chunks );
	if( volumeChunks ) exportWorkflow( getFileName( file ) + "/volumes", volumeChunks );


	delete tris;
	if( volumeTris )
		delete volumeTris;
	delete chunks;
	if( volumeChunks )
		delete volumeChunks;

	std::cout << "\nDONE" << std::endl;
	std::cout << "Total operation took " << formatTime( clock( ) - start ) << std::endl;
}
开发者ID:guorenxu,项目名称:UICColum,代码行数:96,代码来源:AppMain.cpp


示例18: s5fs_readdir

/*
 * See the comment in vnode.h for what is expected of this function.
 *
 * Here you need to use s5_read_file() to read a s5_dirent_t from a directory
 * and copy that data into the given dirent. The value of d_off is dependent on
 * your implementation and may or may not b e necessary.  Finally, return the
 * number of bytes read.
 */
static int
s5fs_readdir(vnode_t *vnode, off_t offset, struct dirent *d)
{
        NOT_YET_IMPLEMENTED("S5FS: s5fs_readdir");
        return -1;
}
开发者ID:lygood2007,项目名称:Weenix,代码行数:14,代码来源:s5fs.c


示例19: s5_read_file

/*
 * Read up to len bytes from the given inode, starting at seek bytes
 * from the beginning of the inode. On success, return the number of
 * bytes actually read, or 0 if the end of the file has been reached; on
 * failure, return -errno.
 *
 * This function should allow reading from files or directories,
 * treating them identically.
 *
 * Reading from a sparse block of the file should act like reading
 * zeros; it should not cause the sparse blocks to be allocated.
 *
 * Similarly as in s5_write_file(), do not call s5_seek_to_block()
 * directly from this function.
 *
 * If the region to be read would extend past the end of the file, less
 * data will be read than was requested.
 *
 * You probably want to use pframe_get(), memcpy().
 */
int
s5_read_file(struct vnode *vnode, off_t seek, char *dest, size_t len)
{
        NOT_YET_IMPLEMENTED("S5FS: s5_read_file");
        return -1;
}
开发者ID:Sherry-Shi,项目名称:operating-system,代码行数:26,代码来源:s5fs_subr.c


示例20: s5fs_stat

/*
 * See the comment in vnode.h for what is expected of this function.
 *
 * Don't worry if you don't know what some of the fields in struct stat
 * mean. The ones you should be sure to set are st_mode, st_ino,
 * st_nlink, st_size, st_blksize, and st_blocks.
 *
 * You probably want to use s5_inode_blocks().
 */
static int
s5fs_stat(vnode_t *vnode, struct stat *ss)
{
        NOT_YET_IMPLEMENTED("S5FS: s5fs_stat");
        return -1;
}
开发者ID:lygood2007,项目名称:Weenix,代码行数:15,代码来源:s5fs.c



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C++ NOX函数代码示例发布时间:2022-05-30
下一篇:
C++ NOT_USED函数代码示例发布时间: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