下面这个函数可以实现删除文件的功能。刚刚看到。谢谢楼上的。
int efs_unlink (const char *path);
/**
* Delete a name in the filesystem. If this is the only reference to this
* file, the file itself will also be deleted. efs_unlink can be used on
* all filesystem objects, except for directories. Use ::efs_rmdir for
* directories.
*
* @param path
* The file that needs to be deleted.
*
* @par Errors:
* ENOENT : No such path was found.\n
* EPERM : permission denied.\n
* ETXTBSY : The file is open or used. So it cannot be unlinked.\n
* ENAMETOOLONG : File-name/directory name exceeded NAME_MAX
* limit or the pathname exceeded PATH_MAX limit.
*
* @return
* Returns 0 for success, or -1 for error.