-
Notifications
You must be signed in to change notification settings - Fork 0
/
diskUtility.h
65 lines (58 loc) · 1.91 KB
/
diskUtility.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef XFS_DISKUTIL_H
#define XFS_DISKUTIL_H
#include "constants.h"
#include "inode.h"
#include "labels.h"
#include "memOrg.h"
#include "virtualDisk.h"
#include <stdio.h>
#define ASSEMBLY_CODE 0
#define DATA_FILE 1
#define XFS_ERROR -1
void disk_init();
void formatDisk(int format);
XOSFILE *getAllFiles();
void listAllFiles();
void displayFileContents(char *name);
void exportFile(char *filename, char *unixfile);
int clearDiskBlocks(int disk_start_block, int no_of_disk_blocks);
int copyBlocksToFile(int startblock, int endblock, char *filename);
int writeFileToDisk(FILE *fp, int blockNum, int type);
int getDataFileSize(FILE *fp);
void displayDiskFreeList();
void trim(char *str);
void expandpath(char *path);
void addext(char *filename, char *ext);
int loadCode(char *fileName, int disk_start_block, int no_of_disk_blocks);
int loadCodeWithLabels(char *infile, int disk_block, int no_of_disk_blocks, int mem_page);
int loadOSCode(char *infile);
int loadOS2Code(char *infile);
int loadTimerCode(char *infile);
int loadDiskControllerIntCode(char *infile);
int loadConsoleIntCode(char *infile);
int loadExHandlerToDisk(char *infile);
int loadIntCode(char *infile, int intNo);
int loadModuleCode(char *infile, int modNo);
int loadINITCode(char *infile);
int loadIdleCode(char *infile);
int loadShellCode(char *infile);
int loadLibraryCode(char *infile);
int loadDataToDisk(char *name);
int loadExecutableToDisk(char *name);
int deleteOSCodeFromDisk();
int deleteOS2CodeFromDisk();
int deleteTimerFromDisk();
int deleteDiskControllerINTFromDisk();
int deleteConsoleINTFromDisk();
int deleteExHandlerFromDisk();
int deleteIntCodeFromDisk(int intNo);
int deleteModuleCodeFromDisk(int modNo);
int deleteINITFromDisk();
int deleteIdleFromDisk();
int deleteShellFromDisk();
int deleteLibraryFromDisk();
int deleteFileFromDisk(char *name);
void displayDiskFreeList();
int dumpRootFile(const char *filename);
int dumpInodeTable(const char *filename);
#endif