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

📄 libcore.h

📁 液晶电视完整代码可实现人机界面
💻 H
字号:
#ifndef _LIBCORE_H#define _LIBCORE_H#include <assert.h>#include <fcntl.h>#include <sys/stat.h>#include <signal.h>#include <unistd.h>#include <sys/types.h>#include <sys/stat.h>#include <sys/timeb.h>#include <stdio.h>#include <stdlib.h>#include <time.h>#include <string.h>#include <strings.h>#include <sys/time.h>#include <stdarg.h>#include <errno.h>#include <fcntl.h>#include "const_def.h"typedef struct _core_conf {	char name[NODELEN + 1];	char exec[FILEPATHLEN + 1];	long amount;	long online;	int  valid;			//0 表示结束, 1 表示有效} CoreConf;#ifndef XmlNode#define XmlNode char#endif#ifndef XmlDocument#define XmlDocument CXMLParser#endif#define FLAG_NORMAL             0   #define FLAG_RELOAD             1  #define FLAG_FORMEXIT           2#define	WDOG_LOCK_NAME	  "wdog.lock"		//唯一性文件锁名称#define	BEPSRECV_CONF	  "etc/BepsRecv.xml"	//Cnaps进程配置文件#define	BEPSSEND_CONF	  "etc/BepsSend.xml"	//Mb进程配置文件#define PROC_MAP	  "ProcMap.xml"		//进程映象文件#define MAINCTL_CONF	  "MainCtl.xml"	//核心进程配置文件#define MAINCTL_LOG_NAME "MainCtl.log"	//核心进程日志文件#define PROCMAP		  "ProcMap"		//进程映象中记录的进程个数#define S_PROC_COUNT	  "count"		//进程映象中记录的进程个数#define DEF_LOG_PATH      "/tmp"		//默认日志路径#define DATABASE          "DIRWAYSDB"           //默认连接数据库#define	lockW(fd, offset, whence, len) onFilelock(fd, F_SETLK, F_WRLCK, offset, whence, len)#define	lockU(fd, offset, whence, len) onFilelock(fd, F_SETLK, F_UNLCK, offset, whence, len)long    onFilelock(int fd, int cmd, int type, off_t offset, int whence, off_t len);long	holdFilelock(char *);long	unholdFilelock(int);time_t	getFileTime(char *);int	newProc(const char *, const char *);int	initDaemon();int	errlog(char *, ...);void ssleep(long usec);int	filelog(char *, char *, ...);//int getUsernamePassword(char *decrypt_username, char *decrypt_password);void rc2_keyschedule( unsigned short xkey[64],const unsigned char *key,unsigned len,unsigned bits );void rc2_decrypt( const unsigned short xkey[64],unsigned char *plain,const unsigned char *cipher );#endif

⌨️ 快捷键说明

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