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

📄 log.h

📁 网络数据管理协议的开发
💻 H
字号:
/*                               -*- Mode: C -*-  * log.h *  * Description     : NMDP common error and debug logging *                   function interfaces. *  * Copyright (c) 1996,1997 PDC, Network Appliance. All Rights Reserved. * * $Id: log.h,v 1.4 1997/02/03 06:12:19 tim Exp $ */#ifndef _ndmp_log_h#define _ndmp_log_h#if !defined(lint) && !defined(SABER)static char ndmp_log_rcsId[] __attribute__ ((unused)) = "@(#) $Id: log.h,v 1.4 1997/02/03 06:12:19 tim Exp $";#endif#include <sys/types.h>#include <syslog.h>typedef void			LogFunc_t(u_long, char*, ...);typedef LogFunc_t*		LogFuncPtr_t;LogFuncPtr_t	LogSaveFileAndLine(char*, u_long, LogFuncPtr_t);LogFunc_t		LogDebug;LogFunc_t		LogError;#define Debug	(*LogSaveFileAndLine)(__FILE__, __LINE__, LogDebug)#define Error	(*LogSaveFileAndLine)(__FILE__, __LINE__, LogError)void			Log(char*, ...);u_long			SetDebugLevel(u_long	level);u_long			GetDebugLevel(void);/* * Debug categories. */#define	DBG_CAT_CONN      0x00010	/* Connection management */#define	DBG_CAT_COMM      0x00020	/* Communication library */#define DBG_CAT_CONNECT   0x00040	/* Connection request handling */#define DBG_CAT_CONFIG    0x00080	/* Configuration request handling */#define DBG_CAT_TAPE      0x00100	/* Tape request handling */#define DBG_CAT_SCSI      0x00200	/* SCSI request handling */#define DBG_CAT_DATA      0x00400	/* Data request handling */#define DBG_CAT_NOTIFY    0x00800	/* Notify request handling */#define DBG_CAT_HISTORY   0x01000	/* File history request handling */#define DBG_CAT_LOG       0x02000	/* Log request handling */#define DBG_CAT_MOVER     0x04000	/* Data mover */#define DBG_CAT_BACKUP    0x08000	/* Dump/restore module *//* * Debug focus. */#define DBG_FOC_ALWAYS    0#define DBG_FOC_FLOW      1#define DBG_FOC_DETAIL    2#endif /* ifndef _ndmp_log_h */

⌨️ 快捷键说明

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