摘要: 源自APUE 习题10.5代码参考自上一篇译文博客:Implementing Software Timer。代码由两部分组成:my_alarm.h my_alarm.cmy_alarm.h#include <stdio.h>#include <unistd.h>#include <time.h>#include <signal.h>#define TIME time_t#define MAXALARM 255#define MAXTIME 1000#define FALSE 0#define TRUE 1typedef struct { int 阅读全文
posted @ 2013-05-03 14:33 CoreyGao 阅读(203) 评论(0) 推荐(0) 编辑