]> pd.if.org Git - mmurtl/blob - ossource/mfiles.h
autocommit for file dated 1995-01-30 22:28:40
[mmurtl] / ossource / mfiles.h
1 /* MFiles.h    MMURTL File service direct blocking calls */\r
2 \r
3 /* MMURTL Operating System Source Code\r
4    Copyright 1991,1992,1993,1994 Richard A. Burgess\r
5    ALL RIGHTS RESERVED\r
6    Version 1.0\r
7 */\r
8 \r
9 \r
10 #define ModeRead 0\r
11 #define ModeModify 1\r
12 \r
13 extern far long CreateFile(char *pName, long cbName, long Attrib);\r
14 \r
15 extern far long CreateDir(char *pName, long cbName);\r
16 \r
17 extern far long DeleteDir(char *pName, long cbName);\r
18 \r
19 extern far long OpenFile(char *pName, long cbName, char Mode,\r
20                                                 char fStream, long *pdHandleRet);\r
21 \r
22 \r
23 extern far long RenameFile(char *pCrntName, long cbCrntName,\r
24                            char *pNewName, long cbNewName);\r
25 extern far long GetFileSize(long dHandle, long *pdSizeRet);\r
26 extern far long SetFileSize(long dHandle, long dSize);\r
27 \r
28 extern far long ReadBlock (long dHandle, char *pBytesRet, long nBytes,\r
29                           long dLFA, long *pdnBytesRet);\r
30 extern far long WriteBlock(long dHandle,\r
31                                    char *pData,\r
32                                    long nBytes,\r
33                                    long dLFA,\r
34                                    long *pdnBytesRet);\r
35 extern far long ReadBytes (long dHandle, char *pBytesRet,\r
36                               long nBytes, long *pdBytesRet);\r
37 extern far long WriteBytes (long dHandle, char *pBytes,\r
38                               long nBytes, long *pdBytesRet);\r
39 extern far long GetFileLFA(long dHandle, long *pdLFARet);\r
40 extern far long SetFileLFA(long dHandle, long dLFA);\r
41 extern far long CloseFile (long dHandle);\r
42 extern far long DeleteFile (long dHandle);\r
43 \r
44 extern far long GetDirSector(char *pPathSpec,\r
45                                                          long cbPathSpec,\r
46                              char *pSectorRet,\r
47                                                          long sSectorRet,\r
48                                                          long SectorNum);\r
49 \r
50 /****** End of Module ********/\r