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

📄 x_timer.h

📁 一套客户/服务器模式的备份系统代码,跨平台,支持linux,AIX, IRIX, FreeBSD, Digital Unix (OSF1), Solaris and HP-UX.
💻 H
字号:
/****************** Start of $RCSfile: x_timer.h,v $  ****************** $Source: /home/alb/afbackup/afbackup-3.3.8.1/RCS/x_timer.h,v $* $Id: x_timer.h,v 1.2 2004/07/08 20:34:47 alb Exp alb $* $Date: 2004/07/08 20:34:47 $* $Author: alb $********* description *************************************************		Posix Timer replacement functions********************************************************************/#ifndef __X_TIMERS#define __X_TIMERS __X_TIMERS#include <lconf.h>#include <signal.h>#ifdef	INC_SYS_TIME_H#include <sys/time.h>#endif#ifdef	INC_TIME_H#include <time.h>#endif#ifdef	INC_SYS_TIMERS_H#include <sys/timers.h>#endif#ifdef	TIMER_ABSTIME#undef	TIMER_ABSTIME#endif#ifdef	TIMER_ADDREL#undef	TIMER_ADDREL#endif#ifdef	_TIMER_PRESERVE_EXEC#undef	_TIMER_PRESERVE_EXEC#endif#define	TIMER_ABSTIME		1#define	TIMER_ADDREL		(TIMER_ABSTIME << 1)#define	_TIMER_PRESERVE_EXEC	(TIMER_ABSTIME << 2)#define	clock_getres(id, res)	restimer((id), (res), &_local_timer_ptr_)#define	CLOCK_TYPE_REALTIME	1struct Signal_Event {  signal_t	sigev_signum;};typedef	int	ClockID;typedef	int	Timer;#ifdef	__cplusplusextern	"C"	{#endifextern	Timer	timer_make(ClockID, struct Signal_Event *);extern	int	timer_del(Timer);extern	int	timer_get(Timer, struct itimerval *);extern	int	timer_set(Timer, int, struct itimerval *,						struct itimerval *);extern	int	clock_get(ClockID, struct timeval *);#ifdef	__cplusplus}#endif#endif	/* __X_TIMERS *//************ end of %M% **************************************/

⌨️ 快捷键说明

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