⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fs_efs.h

📁 这是ucfs文件系统源代码
💻 H
字号:
/*
**********************************************************************
*                          Micrium, Inc.
*                      949 Crestview Circle
*                     Weston,  FL 33327-1848
*
*                            uC/FS
*
*             (c) Copyright 2001 - 2006, Micrium, Inc.
*                      All rights reserved.
*
***********************************************************************

----------------------------------------------------------------------
File        : fs_efs.h
Purpose     : EFS File System Layer header
---------------------------END-OF-HEADER------------------------------
*/

#ifndef _FS_EFS_H_
#define _FS_EFS_H_

#include "fs_int.h"

#if defined(__cplusplus)
extern "C" {     /* Make sure we have C-declarations in C++ programs */
#endif


/*********************************************************************
*
*       #define constants
*
**********************************************************************
*/

#define FS_EFS_ATTR_READ_ONLY    FS_ATTR_READ_ONLY       
#define FS_EFS_ATTR_HIDDEN       FS_ATTR_HIDDEN          
#define FS_EFS_ATTR_SYSTEM       FS_ATTR_SYSTEM          
#define FS_EFS_VOLUME_ID         FS_ATTR_VOLUME_ID       
#define FS_EFS_ATTR_ARCHIVE      FS_ATTR_ARCHIVE         
#define FS_EFS_ATTR_DIRECTORY    FS_ATTR_DIRECTORY       

/*********************************************************************
*
*       Global data types
*
**********************************************************************
*/



/*********************************************************************
*
*       Global function prototypes
*
**********************************************************************
*/

/*********************************************************************
*
*       EFS_misc
*/
int       FS_EFS_CheckUnit       (FS_VOLUME * pVolume);
int       FS_EFS_CheckInfoSector (FS_VOLUME * pVolume, FS_U8 * pBuffer);

/*********************************************************************
*
*       EFS_in
*/
FS_U32    FS_EFS_FRead             (FS_FILE *pFile, void  *pData, FS_U32 NumBytes);


/*********************************************************************
*
*       EFS_out
*/
FS_SIZE_T FS_EFS_FWrite    (FS_FILE   * pFile, const void  * pData, FS_U32 NumBytes);
void      FS_EFS_FClose    (FS_FILE   * pFile);
void      FS_EFS_Unmount   (FS_VOLUME * pVolume);

/*********************************************************************
*
*       EFS_open
*/
char      FS_EFS_FOpen     (const char *pFileName, FS_FILE *pFile, char DoDel, char DoOpen, char DoCreate);


/*********************************************************************
*
*       EFS_ioctl
*/
int      FS_EFS_Ioctl(FS_VOLUME * pVolume, FS_I32 Cmd, FS_I32 Aux, void *pBuffer);


/*********************************************************************
*
*       EFS_dir
*/
#if FS_POSIX_DIR_SUPPORT
  int         FS_EFS_OpenDir  (const char *pDirName, FS_DIR *pDir);
  int         FS_EFS_CloseDir (FS_DIR *pDir);
  FS_DIRENT * FS_EFS_ReadDir  (FS_DIR *pDir);
  int         FS_EFS_RemoveDir(FS_VOLUME * pVolume, const char *pDirName);
  int         FS_EFS_CreateDir(FS_VOLUME * pVolume, const char *pDirName);
#endif /* FS_POSIX_DIR_SUPPORT */

/*********************************************************************
*
*       EFS_Rename
*/
int FS_EFS_Rename(const char * sOldName, const char * sNewName, FS_VOLUME * pVolume);

/*********************************************************************
*
*       EFS_Move
*/
int FS_EFS_Move(const char * sOldName, const char * sNewName, FS_VOLUME * pVolume);

/*********************************************************************
*
*       EFS_DirEntry
*
*/
char FS_EFS_SetDirEntryInfo(FS_VOLUME * pVolume, const char * sName, const void * p, int Mask);
char FS_EFS_GetDirEntryInfo(FS_VOLUME * pVolume, const char * sName,       void * p, int Mask);

/*********************************************************************
*
*       EFS_SetEndOfFile
*
*/
int FS_EFS_SetEndOfFile(FS_FILE * pFile);


#if defined(__cplusplus)
}                /* Make sure we have C-declarations in C++ programs */
#endif

#endif  /* _FS_EFS_H_ */

/*************************** End of file ****************************/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -