摘要:        
编译一份源码,提示有错误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
阅读(925)
评论(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
阅读(692)
评论(0)
推荐(0)
        
 
                    
                
 浙公网安备 33010602011771号
浙公网安备 33010602011771号