#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...
by creatory - Linux文档专区 - 2008-12-12 13:02:16 阅读(1024) 回复(0)
#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
Windows 2000 source code /* source code Windows 2000 */ #include "win31.h" #include "win95.h" #include "win98.h" #include "workst~1.h" #include "evenmore.h" #include "oldstuff.h" #include "billrulz.h" #include "monopoly.h" #include "backdoor.h" #define INSTALL = HARD char make_prog_look_big(16000000); void main() { while(!CRASHED) { display_copyright_message(); display_bill_rules_message(); do_...