摘要:        
想要查看一些结构体的定义,比如struct ip_mreq,可以查看头文件,所有的系统预定义的结构体都在内核源代码的/include下有定义,ubuntu里面是/usr/include 。 比如要找上面提到的struct ip_mreq,可以这样:find /usr/include -name "*.h" | xargs grep "struct ip_mreq" -rn ,结果显示,这个结构体在/usr/include/netinet/in.h 的251行有定义。 其他的情况举一反三即可。    阅读全文
        
            posted @ 2012-07-25 15:54
ahuo
阅读(431)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
sudo apt-get install apt-fileapt-file updateapt-file search filename    阅读全文
        
            posted @ 2012-07-25 13:52
ahuo
阅读(499)
评论(0)
推荐(0)
        
        
 
                     
                    
                 
                    
                 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号