#include stdio.h#include stdlib.h#include stdarg.h#include string.h#include signal.h#include sys/types.h#include sys/stat.h#include linux/capability.h#define GETARG(a,x) (a-x##_arg)static int debug = 0;#define __die(condition,format,...) do { \ if(condition) {\ fprintf(stderr,"[erro Read More
posted @ 2010-12-30 14:05 BloodAndBone Views(293) Comments(0) Diggs(0) Edit
enumutype{INTEGER=1,STRING=2,GNUMBERS=3};structu_tag{enumutypeutype;/*theunion'sdiscriminant*/union{intival;char*pval;structgnumbersgn;}uval;};structxdr_discrimu_tag_arms[4]={{INTEGER,xdr_int},{GNUMBERS,xdr_gnumbers}{STRING,xdr_wrap_string},{__dontcare__,NULL}/*alwaysterminatearmswithaNULLxdr_proc*/ Read More
posted @ 2010-12-30 13:58 BloodAndBone Views(293) Comments(0) Diggs(0) Edit
挂接命令(mount)命令格式:mount [-t vfstype] [-ooptions] device dir其中:1.-tvfstype指定文件系统的类型,通常不必指定。mount会自动选择正确的类型。常用类型有:  光盘或光盘镜像:iso9660  DOSfat16文件系统:msdos  Windows 9xfat32文件系统:vfat  Windows NTntfs文件系统:ntfs  MountWindows文件网络共享:smbfs  UNIX(LINUX)文件网络共享:nfs2.-o options主要用来描述设备或档案的挂接方式。常用的参数有:  loop:用来把一个文件当成硬 Read More
posted @ 2010-12-30 09:26 BloodAndBone Views(727) Comments(0) Diggs(0) Edit