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

📄 ospfh_patch.h

📁 实现禁位自动排列在禁位中具体实现了此方法所以这是一个创新很有应用价值在VC平台上调试通过
💻 H
字号:

#ifndef UTIL_THREAD_PATCH
#define UTIL_THREAD_PATCH 


#include <time.h>
#include <math.h>




//#define XFREE(a, b) free(b)
//#define XCALLOC(a, b) malloc(b)
//#define XMALLOC(a, b) malloc(b)

//#define zlog(a,b,c,d) printf(c,d)
//#define zlog_warn(a, b) printf(a,b)
#define assert(a)  if (!a) printf("Error in NULL pointer")


void gettimeofday(struct timeval *,int *);

#define __attribute__(a)

//typedef int size_t;
typedef int pid_t;

#define LOG_ERR 1
#define LOG_WARNING 2
#define LOG_INFO 3
#define LOG_NOTICE 4
#define LOG_DEBUG 5
#define MAXPATHLEN 6

/*command.c*/
#define ENOENT 10
#define link(a) 0
#define mkstemp(a) 100


/*sockop.c*/
#define EINVAL 11


/*sock union*/
#define EAFNOSUPPORT 1
#define ENOSPC 2
typedef int socklen_t;

#define F_GETFL 1
#define F_SETFL 2
#define O_NONBLOCK 3
#define EINPROGRESS 4
/*vty.c*/
#define SYSCONFDIR
struct utsname{
	char* nodename;
};
#define buffer_flush_window(a)
#define buffer_flush_vty_all(a)
#define access_list_apply(a)
#define access_list_lookup(a)



#define IAC 1
#define WILL 2
#define TELOPT_ECHO 3
#define TELOPT_SGA 4 
#define DONT 5
#define TELOPT_LINEMODE 6
#define DO 7
#define TELOPT_NAWS 8
#define SB 9
#define SE 10
#define AFI_IP 11
#define FILTER_DENY 12
#define O_RDONLY 13




/*log.c*/
#define vsyslog(a,b,c) printf(b,c)
#define openlog(a)
#define closelog()



/*prefix*/
/*

#define zmalloc(x,y) malloc((y))
#define zfree(x,y) free((y))
#define zcalloc(x,y) malloc((y))



*/

#define XMALLOC(x,y) malloc((y))
#define XCALLOC(x,y) malloc((y))
#define XFREE(x,y) free((y))
#define zlog(y) 
#define zlog_warn(y)
//liu







#endif



⌨️ 快捷键说明

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