欢迎来到天天文库
浏览记录
ID:39504557
大小:202.00 KB
页数:25页
时间:2019-07-04
《计算机操作系统教程实验指导(第2版)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、1.编程管理文件makefikefilsys:main.oingetput.oiallfre.oballfre.oname.oaccess.olog.oclose.ocreat.odelete.odir.oopen.ordwt.oformat.oinstall.ohalt.occ-ofilsysmain.oingetput.oiallfre.oballfre.oname.oaccess.olog.oclose.ocreat.odelete.odir.oopen.ordwt.oformat.oinstall.ohalt.omain.o:main.c
2、filesys.hcc-cmain.cigetput.o:igetput.cfilesys.hcc-cigetput.ciallfre.o:iallfre.cfilesys.hcc-ciallfre.cballfre.o:ballfre.cfilesys.hcc-cballfre.cname.o:name.cfilesys.hcc-cname.caccesse.o:access.cfilesys.hcc-caccess.clog.o:log.cfilesys.hcc-clog.cclose.o:close.cfilesys.hcc-cclose.
3、ccreat.o:creat.cfilesys.hcc-ccreat.cdelete.o:delete.cfilesys.hcc-cdelete.cdir.o:dir.cfilesys.hcc-cdir.copen.o:open.cfilesys.hcc-copen.crdwt.o:rdwt.cfilesys.hcc-crdwt.cformat.o:format.cfilesys.hcc-cformat.cinstall.o:install.cfilesys.hcc-cinstall.chalt.o:halt.ccc-chalt.c2.头文件fi
4、lesye.h#defineBLOCKSIZE512#defineSYSOPENFILE40#defineDIRNUM128#definePWDSIZ14#definePWDNUM12#defineNOFILE20#defineNADDR1025#defineNHINO128#defineUSERNUM10#defineDINODESIZ32#defineFILEBLK512#defineNICFREE50#defineNICNOD50#defineDINODESTART2*BLOCKSIZ#defineDATASTART(2+DINODEBLK
5、)*BLOCKSIZ#defineDIEMPTY00000#defineDIFILE01000#defineDIDIR02000#defineUDIREAD00001#defineUDIWRITE00002#defineUDIEXICUTE00004#defineGDIREAD00010#defineGDIWRITE00020#defineGDIEXICUTE00040#defineODIREAD00100#defineODIWRITE00200#defineODIEXICUTE00400#defineREAD1#defineWRITE2#def
6、ineEXICUTE3#defineDEFAULTMODE00777#defineIUPDATE00002#defineSUPDATE00001#defineFREAD00001#defineFWRITE00002#defineFAPPEND00004#defineDISKFULL6552525#defineSEEL..SET0/*文件系统数据结构*、structinode{structinode*i_frow;structinode*i_back;chari_flag;unsignedinti_ino;unsignedinti_count;un
7、signedshortdi_number;unsignedshortdi_moder;unsignedshortdi_uid;unsignedshortdi_gid;unsignedshortdi_size;unsignedintdi_addr[NADDR];};structdinode{unsignedshortdi_number;unsignedshortdi_moder;unsignedshortdi_uid;unsignedshortdi_gid;unsignedlongdi_size;unsignedintdi_addr[NADDR];
8、};structdireet{chard_name[DIRSIZ];unsignedintd_ino;};structfilsys{un
此文档下载收益归作者所有