Read the source code using vim hi all, I am a vim user.After 3 year's work under linux, I get some experiences about how to read source code using vim.Here I am very glad to share for it. 1. ctags plugin ctags R * generate the tags file,edit the tags file using shell,make it easily be read Ctrl+] Ctrl+t jump to and back the function defined 2.foldermethod setting nmap zf zf}a “fold all...
by senno - Linux文档专区 - 2009-10-25 16:34:40 阅读(1254) 回复(0)
最近在读Linux源代码时,安装了lxr-0.3.tar.gz(http://lxr.linux.no),把安装方法贴出来,供各位网友参考 解压后,修改Makefile,PERLBIN不用修改,INSTALLPREFIX改为 INSTALLPREFIX=/var/www/html/lxr 然后make install 我看的源代码版本为2.4.0,软件包linux-2.4.0.tar.bz2,在/var/www/html/lxr/source目录下,建立目录linux-2.4.0,进入linux-2.4.0目录,解压linux-2.4.0.tar.bz2 在/var/www/html/lxr/source目录下生成ve...
最近在读Linux源代码时,安装了lxr-0.3.tar.gz(http://lxr.linux.no),把安装方法贴出来,供各位网友参考 解压后,修改Makefile,PERLBIN不用修改,INSTALLPREFIX改为 INSTALLPREFIX=/var/www/html/lxr 然后make install 我看的源代码版本为2.4.0,软件包linux-2.4.0.tar.bz2,在/var/www/html/lxr/source目录下,建立目录linux-2.4.0,进入linux-2.4.0目录,解压linux-2.4.0.tar.bz2 在/var/www/html/lxr/source目录下生成ve...
#include #include #include #include #include #include #include #include /*get file type sub routine 0:directory 1:regular file -1:error occured */ int getfiletype(const char *filename) { struct stat statbuf; if(stat(filename,&statbuf)==-1) return -1; if(S_ISDIR(statbuf.st_mode)) return 0; if(S_ISREG(statbuf.st_mode)) return 1; } /*output file attribute sub routine*/ void outputfileattr(con...
#include #include #include #include #include #include #include #define BUF_SIZE 1024 int main(int argc,char **argv) { int fromfd,tofd; int bytes_read,bytes_write; char buffer[BUF_SIZE]; char *ptr; /*command run parameter test*/ if(argc!=3) { fprintf(stderr,"Usage:%s srcfile destfile\n",argv[0]); return 0; } /*open source file*/ if((fromfd=open(argv[1],O_RDONLY))==-1) { fprintf(stderr,"Open ...
版本为redhat enterprises as4 u4,内核为2.6.9-42.由于安装网卡驱动时需要提供kernel source code,请问我需要安装哪些rpm包才能满足要求,redhat安装盘上是否提供?希望碰到过相同问题的朋友指点下,不胜感激,谢谢!!!!
READ THE FUCKING source code Start........ 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/39425/showart_344990.html
文件: jmsdemo.rar 大小: 1371KB 下载: 下载 source code only supply to study. 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/20665/showart_275373.html