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

📄 fss.hec

📁 我今天开始上传5份TI、NXP、MTK的手机开发全套资料。希望对大家有很大的帮助
💻 HEC
字号:
/*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 :    Fss.hec.. Project :      SSYOL3 WAP/MMS.. Module :       OSFS.. %version:      1.1.5 %.. Compiler name and release:...............:........:..........:............:........................... *----------------------------------------------------------------------------* *                                    DESCRIPTION * *   This file contains externally used constant declarations for FSS *----------------------------------------------------------------------------* *----------------------------------------------------------------------------* *                           FUNCTIONS DEFINED IN THIS FILE *----------------------------------------------------------------------------* * Name            | Object *----------------------------------------------------------------------------* * * *----------------------------------------------------------------------------* *----------------------------------------------------------------------------* *                                    EVOLUTION *----------------------------------------------------------------------------* * Date     | Author             | Description *----------------------------------------------------------------------------* * 27.03.03 | tcmc_sgp           | File header is added * 02.05.03 | tcmc_sgp           | Delay error is added****************************************************************************E*/#ifndef FSS_HEC#define FSS_HEC/* Volume states *//*---------------*/#define FSS_NOT_FORMATED	0	/* Volume not formated */#define FSS_FORMATED		1	/* Volume is formated */#define FSS_FROZEN		2	/* Volume is frozen *//* Path characteristics *//*----------------------*/#define FSS_PATH_MAX		256	/* Max length of a path */#define	FSS_NAME_MAX		44	/* Max length of a name or a volume *//* Garbage modes *//*---------------*/#define FSS_GARBAGE_WRITE_DISABLED	0	/* Write is not allowed during						   garbage */#define FSS_GARBAGE_WRITE_ENABLED	1	/* Write is allowed during 						   garbage *//* Buffering modes used for setvbuff command *//*-------------------------------------------*/#define FSS_IONBF	0		/* No buffering for the file */#define FSS_IOFBF	1		/* Full buffering of the file *//* Positionning in a file *//*------------------------*/#define FSS_SEEK_SET	0		/* Offset is absolute */#define FSS_SEEK_CUR	1		/* Offset is relative to current 					   position */#define FSS_SEEK_END	2		/* Offset is relative to end of file */#define FSS_EOF		-1/* Parameters used for mode of a file ( acces right, type of file ....) *//*----------------------------------------------------------------------*/#define	FSS_POS_IRUSR 	0#define	FSS_POS_IRGRP	1 #define	FSS_POS_IROTH 	2#define	FSS_POS_IWUSR 	3#define	FSS_POS_IWGRP 	4#define	FSS_POS_IWOTH 	5#define	FSS_POS_IXUSR 	6#define FSS_POS_IXGRP 	7#define	FSS_POS_IXOTH 	8#define FSS_POS_ISUID	9#define FSS_POS_ISGID	10#define FSS_POS_FILE_TYPE		12#define FSS_FILE_TYPE_FIELD_SIZE	4#define	FSS_S_IRUSR	( 1 << FSS_POS_IRUSR )#define FSS_S_IRGRP	( 1 << FSS_POS_IRGRP )#define	FSS_S_IROTH	( 1 << FSS_POS_IROTH )#define	FSS_S_IWUSR	( 1 << FSS_POS_IWUSR )#define FSS_S_IWGRP	( 1 << FSS_POS_IWGRP )#define	FSS_S_IWOTH	( 1 << FSS_POS_IWOTH )#define	FSS_S_IXUSR	( 1 << FSS_POS_IXUSR )#define FSS_S_IXGRP	( 1 << FSS_POS_IXGRP )#define	FSS_S_IXOTH	( 1 << FSS_POS_IXOTH )#define FSS_S_ISUID	( 1 << FSS_POS_ISUID )#define FSS_S_ISGID	( 1 << FSS_POS_ISGID )#define FSS_S_FILETYPE	( ( (1 << FSS_FILE_TYPE_FIELD_SIZE - 1 ) ) << FSS_POS_FILE_TYPE )#define FSS_IRWXU	(FSS_S_IRUSR | FSS_S_IWUSR | FSS_S_IXUSR)#define FSS_IRWXG	(FSS_S_IRGRP | FSS_S_IWGRP | FSS_S_IXGRP)#define FSS_IRWXO	(FSS_S_IROTH | FSS_S_IWOTH | FSS_S_IXOTH)#define	FSS_TYPE_ORDINARY_FILE	0	/* Value of an ordinary obj in type of					   file field */#define FSS_TYPE_DIRECTORY	4 	/* Value of a directory obj in type of					   file field */#define FSS_S_ISREG(mode)	(( (mode) >> FSS_POS_FILE_TYPE ) == FSS_TYPE_ORDINARY_FILE )#define FSS_S_ISDIR(mode)	(( (mode) >> FSS_POS_FILE_TYPE ) == FSS_TYPE_DIRECTORY )#define FSS_SET_TYPE_MODE_MODE(mode, type )  	/*Error for POSIX conformance*/#ifdef SYNCHRONOUS_FILE_SYSTEM_FTR#define FSS_ERROR		-1#endif/* Error codes */#define FSS_OK			0#define FSS_EACCES		2	/* Search permission denied for a 					   directory */#define FSS_EAGAIN		3#define FSS_EBADF		4	/* Bad file descriptor */#define FSS_EBUSY		5	/* The directory is busy */#define FSS_EEXIST		6	/* The file already exist */#define FSS_EFBIG		7	/* Attempt to write to a file that 					   exceed max file size */#define FSS_EINTR		8	/* This function was interrupt by a 					   signal */#define FSS_EINVAL 		9	/* Invalid argument ( size null ....)*/#define FSS_EISDIR		10	/* The object is a directory */#define FSS_ENFILE		11	/* Too many files open by this entity*/#define FSS_EMLINK		12	/* Number of links exceed FSS_LINK_MAX					   */#define FSS_ENAMETOOLONG	13	/* Length of a path or of a path name 					   component too long */#define FSS_ENODEV		14	/* No such device ( function not 					   appropriate to device per example 					   read on a print device ....) */#define FSS_ENOENT		15	/* No entry. A volume, a file or a 					   directory does not exist */#define FSS_ENOSPC		16	/* No space left on device ( device 					   full ) */#define FSS_ENOTDIR		17	/* The component specified is not a 					   directory */#define FSS_ENOTEMPTY		18 	/* Attempt to delete or rename a 					   non-empty directory */#define FSS_ENOTTY		19	/* Terminal control function used for 					   a device that is not a terminal */#define FSS_ENXIO		20	/* No such device. If device not ready					   or not mounted */#define FSS_EPERM		21	/* Operation not permitted ( not the 					   privileges for ) */#define FSS_EROFS		22	/* Read only file system */#define FSS_EXDEV		23 	/* External device ( returned if it is					    not on the same volume, used for 					    rename ) */#define FSS_ENOTSUP		24	/* File command is not supported by 					   the system or the volume */#define FSS_ERANGE		25	/* Argument out of range *//* Special FSS error numbers */#define FSS_ERR_NOT_FIRST_OPER		100	/* Used for setvbuff if it is 						   not the first operation							on the file */#define FSS_ERR_FILE_OR_DIR_OPEN	101	/* A file or a directory is 						   open in the volume */#define FSS_ERR_STALE_CURR_DIR		102	/* Current directory was 						   removed ( has to be changed 						   ) */#define FSS_ERR_INCOHERENT_CMD_ORDER	103	/* Incoherent command order ( 						   a write is followed from a 						   read or the reverse without						   use of an positionning						   positionning or flush-> 						   fseek, fflush, rewind ..)*/ #define FSS_ERR_VOL_NOT_FORMATED	104#define FSS_ERR_TOO_MUTCH_OBJ_ON_DEVICE	105	/* The Volume manager's FAT 						   has not enough entries for						   the number of objects to 						   manage */#define FSS_ERR_INIT_FAIL		106	/* Init made at end of volume 						   mount fails */#define FSS_ERR_VOL_FROZEN		107	/* Command not possible volume						   is frozen */#define FSS_ERR_FREEZE_OVF		108	/* The freeze counter 						   overflows ( more than 255 						   freezes ) */#define FSS_ERR_FREEZE_UNF		109	/* The freeze counter 						   underflows ( more unfreeze 						   than freeze commands */#define FSS_ERR_MEMORY_CORRUPTED	110	/* The status of this file was						   RECORDING at initialisation						   or contradiction between 						   FAT and files in flash */#ifdef SYNCHRONOUS_FILE_SYSTEM_FTR/* Error for Teleca application */#define FSS_ERR_DELAY_OPER              111	/* Erase operation ongoing */#endif/* Behavior cases for message interface */ #define FSS_WITH_ACK		0	/* Request is to acknolwdge */#define FSS_ACK_IF_ERR		1	/* Request is only to acknoledge if 					   error */#define FSS_NO_ACK		2	/* Request is not acknowledged */#endif

⌨️ 快捷键说明

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