📄 fssynchinterf.hem
字号:
/*S**************************************************************************** ........................................................................ COPYRIGHT (c) Philips Semiconductors Nuremberg 2003 .. All rights are reserved. Reproduction in whole or in part is .. prohibited without the written consent of the copyright owner. . ......................................................................... File name : FsSyncInterf.hem.. Project : DragonFly.. Module : OSFS.. %version: ???.. Compiler name and release:...............:........:..........:............:........................... *----------------------------------------------------------------------------* * DESCRIPTION * * This file contains externally used macro declarations for Synchronous * interface. *----------------------------------------------------------------------------* *----------------------------------------------------------------------------* * FUNCTIONS DEFINED IN THIS FILE *----------------------------------------------------------------------------* * Name | Object *----------------------------------------------------------------------------* * * *----------------------------------------------------------------------------* *----------------------------------------------------------------------------* * EVOLUTION *----------------------------------------------------------------------------* * Date | Author | Description *----------------------------------------------------------------------------* * 15.01.04 | ADE | File header is added****************************************************************************E*/#ifndef FSSYNCHINTERF_HEM#define FSSYNCHINTERF_HEM#ifdef SYNCHRONOUS_FILE_SYSTEM_FTR/***************************************************************************** * Commands *****************************************************************************//* Open a file *//*-------------*/#define MC_FSS_FOPEN(pp_FileName,pp_Mode) \ Fs87_23Fopen(pp_FileName, pp_Mode)#define MC_FSS_FOPENSIZED(pp_FileName,pp_Mode, vp_MaxFileSize) \ Fs87_01FopenSized(pp_FileName, pp_Mode, vp_MaxFileSize)/* Close a file *//*--------------*/#define MC_FSS_FCLOSE(pp_Stream) \ Fs87_02Fclose(pp_Stream)/* Remove a file *//*----------------*/#define MC_FSS_REMOVE(pp_FileName) \ Fs87_03Remove(pp_FileName)/* Rename a file *//*---------------*/#define MC_FSS_RENAME(pp_OldName, pp_NewName) \ Fs87_04Rename(pp_OldName, pp_NewName)/* Setvbuff of a file *//*--------------------*/#define MC_FSS_SETVBUFF(pp_Stream, pp_Buff, vp_BuffMode, vp_Size) \ Fs87_05Setvbuf(pp_Stream, pp_Buff, vp_BuffMode, vp_Size)/* Ftell of a file *//*-----------------*/#define MC_FSS_FTELL(pp_Stream) \ Fs87_06Ftell( pp_Stream )/* Fseek of a file *//*-----------------*/#define MC_FSS_FSEEK(pp_Stream, vp_Offset, vp_Whence) \ Fs87_07Fseek(pp_Stream, vp_Offset, vp_Whence)/* Rewind of a file *//*------------------*/#define MC_FSS_REWIND(pp_Stream) \ Fs87_08Rewind(pp_Stream)/* Stat of a file *//*----------------*/#define MC_FSS_STAT( pp_FilePath, pp_FileInfo) \ Fs87_09Stat( pp_FilePath, pp_FileInfo)/* Flush of a file *//*-----------------*/#define MC_FSS_FFLUSH(pp_Stream) \ Fs87_10Fflush(pp_Stream)/* End of a file *//*---------------*/#define MC_FSS_EOF( pp_Stream) \ Fs87_11Feof( pp_Stream )/* Write in a file *//*-----------------*/#define MC_FSS_FWRITE(pp_Buff, vp_ElementSize, vp_NumberOfElements, pp_Stream) \ Fs87_12Fwrite(pp_Buff, vp_ElementSize, vp_NumberOfElements,pp_Stream)/* Read in a file *//*----------------*/#define MC_FSS_FREAD(pp_Buff, vp_ElementSize, vp_NumberOfElements, pp_Stream) \ Fs87_13Fread(pp_Buff, vp_ElementSize, vp_NumberOfElements, pp_Stream)/* Get info about a volume *//*-------------------------*/#define MC_FSS_GET_VOL_INFO(pp_VolName, pp_VolumeInfo) \ Fs87_24GetVolInfo(pp_VolName, pp_VolumeInfo)/* Makes a directory *//*-------------------*/#define MC_FSS_MKDIR(pp_Path, vp_Mode) \ Fs87_14Mkdir(pp_Path, vp_Mode)/* Removes a directory *//*---------------------*/#define MC_FSS_RMDIR(pp_Path) \ Fs87_15Rmdir(pp_Path)/* Change directory *//*------------------*/#define MC_FSS_CHDIR(pp_Path) \ Fs87_16Chdir(pp_Path)/* Get current working directory *//*-------------------------------*/#define MC_FSS_GETCWD(pp_Buff, vp_Size) \ Fs87_17Getcwd(pp_Buff, vp_Size)/* Opens a directory *//*-------------------*/#define MC_FSS_OPENDIR(pp_DirName) \ Fs87_18Opendir(pp_DirName)/* Closes a directory *//*--------------------*/#define MC_FSS_CLOSEDIR(pp_DirPtr) \ Fs87_19Closedir(pp_DirPtr)/* Reads a directory *//*-------------------*/#define MC_FSS_READDIR(pp_DirPtr) \ Fs87_20Readdir(pp_DirPtr)/* Rewind a directory *//*--------------------*/#define MC_FSS_REWINDDIR(pp_DirPtr) \ Fs87_21Rewinddir(pp_DirPtr)/* Set the size of a file *//*------------------------*/#define MC_FSS_SETSIZE(pp_Stream, vp_NewSize) \ Fs87_22SetSize(pp_Stream, vp_NewSize)/***************************************************************************** * Error number *****************************************************************************/#define MC_FSS_SETERRORNUMBER(void) \ Fs87_32SetErrorNumber(void)#endif /* SYNCHRONOUS_FILE_SYSTEM_FTR */#endif /* FSSYNCHINTERF_HEM */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -