📄 acc_shm.h
字号:
/*Name:acc_shm.h 定义计费系统共享内存的一些常量和函数*/#ifndef sys_acc_shm#define sys_acc_shm#include "account.h"#include "acc_file.h"/* 用户基本信息索引结点 */typedef struct _shmUser{ INT32 Uid; /* 用户标识码 */ BYTE Uname[L_NAME]; /* 用户名 */ INT32 offset; /* 用户基本信息表偏移 :第一个记录为0;新加入索引结点时,值为-1 */ INT32 uextset; /* 用户综合信息表偏移:第一个记录为0;新加入索引结点时,值为-1 */ BYTE dirty; /* 被弄脏标志:0 未写入文件,1 已被写入文件 */ INT32 ListPtr; /* 交易明细表头指针 */ stru_user *UserPtr; /* 本结点对应用户基本信息表指针, NULL 对应用户基本信息不在内存中 */ stru_uext * UextPtr; /* 本结点对应用户综合信息表指针, NULL 对应用户综合信息不在内存中*/ struct _shmUser *left; /* 左子树 */ struct _shmUser *right; /* 右子树 */} Index_User;/* 用户组权限索引结点 */typedef struct _shmGroup{ INT32 Gid; /* 用户组编码 */ INT32 GpMask; /* 用户组掩码 */ INT32 offset; BYTE dirty; stru_group * GroupPtr; /* 本结点对应用户组权限表指针 */ struct _shmGroup *next; /* */} Index_Group;/* 消费类型表索引结点 */typedef struct _shmCtype{ INT16 CsuType; /* 消费类型编码 */ INT32 offset; BYTE dirty; stru_ctype * CtypePtr; /* */ struct _shmCtype * next; /* */} Index_Ctype;/* 系统文件文本行 typedef struct Stru_Txt_Note { char line[TS_MaxText]; struct Stru_Txt_Note *next; } Stru_Txt;*//* 函数说明 */#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -