摘要: 编译一份源码,提示有错误error: invalid conversion from ‘__pthread_t*’ to ‘pid_t’initializing argument 1 of ‘int kill(pid_t, int);定位到源码kill((p->_pNodeBuf[p->_cur_num-1])._th_id,SIGKILL);即kill的参数类型为pid_t,而实际上传递的为pthread_t,这种情况下gcc报错提示无法转换。在网上搜索到有个函数pthread_kill(pthread_t pid,int sig);替换下即可。但是有个问题,pthread_t 阅读全文
posted @ 2012-02-25 14:38 westfly 阅读(878) 评论(0) 推荐(0) 编辑
摘要: 从项目webalizer抓取到一个有用的关于儒略日(Julian Day)的函数。关于"儒略日数"介绍参考http://blog.sina.com.cn/s/blog_53027c620100mtii.html/*****************************************************************//**//* JDATE - Julian date calculator *//**//* Calculates the number of days since Jan 1, 0000. ... 阅读全文
posted @ 2012-02-25 09:58 westfly 阅读(668) 评论(0) 推荐(0) 编辑