1 | /** $Id: VBoxSFFile.cpp 68612 2017-09-03 15:49:33Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBoxSF - OS/2 Shared Folders, the file level IFS EPs.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (c) 2007 knut st. osmundsen <[email protected]>
|
---|
8 | *
|
---|
9 | * Permission is hereby granted, free of charge, to any person
|
---|
10 | * obtaining a copy of this software and associated documentation
|
---|
11 | * files (the "Software"), to deal in the Software without
|
---|
12 | * restriction, including without limitation the rights to use,
|
---|
13 | * copy, modify, merge, publish, distribute, sublicense, and/or sell
|
---|
14 | * copies of the Software, and to permit persons to whom the
|
---|
15 | * Software is furnished to do so, subject to the following
|
---|
16 | * conditions:
|
---|
17 | *
|
---|
18 | * The above copyright notice and this permission notice shall be
|
---|
19 | * included in all copies or substantial portions of the Software.
|
---|
20 | *
|
---|
21 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
---|
22 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
---|
23 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
---|
24 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
---|
25 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
---|
26 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
---|
27 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
---|
28 | * OTHER DEALINGS IN THE SOFTWARE.
|
---|
29 | */
|
---|
30 |
|
---|
31 |
|
---|
32 | /*********************************************************************************************************************************
|
---|
33 | * Header Files *
|
---|
34 | *********************************************************************************************************************************/
|
---|
35 | #define LOG_GROUP LOG_GROUP_DEFAULT
|
---|
36 | #include "VBoxSFInternal.h"
|
---|
37 |
|
---|
38 | #include <VBox/log.h>
|
---|
39 | #include <iprt/assert.h>
|
---|
40 |
|
---|
41 |
|
---|
42 |
|
---|
43 | DECLASM(int)
|
---|
44 | FS32_OPENCREATE(PCDFSI pcdfsi, PVBOXSFCD pcdfsd, PCSZ pszName, USHORT iCurDirEnd,
|
---|
45 | PSFFSI psffsi, PVBOXSFFSD psffsd, ULONG uOpenMode, USHORT fOpenFlag,
|
---|
46 | PUSHORT puAction, USHORT fAttr, PBYTE pbEABuf, PUSHORT pfGenFlag)
|
---|
47 | {
|
---|
48 | NOREF(pcdfsi); NOREF(pcdfsd); NOREF(pszName); NOREF(iCurDirEnd); NOREF(psffsi); NOREF(psffsd); NOREF(uOpenMode);
|
---|
49 | NOREF(fOpenFlag); NOREF(puAction); NOREF(fAttr); NOREF(pbEABuf); NOREF(pfGenFlag);
|
---|
50 | return ERROR_NOT_SUPPORTED;
|
---|
51 | }
|
---|
52 |
|
---|
53 |
|
---|
54 | DECLASM(int)
|
---|
55 | FS32_CLOSE(ULONG uType, ULONG fIoFlags, PSFFSI psffsi, PVBOXSFFSD psffsd)
|
---|
56 | {
|
---|
57 | NOREF(uType); NOREF(fIoFlags); NOREF(psffsi); NOREF(psffsd);
|
---|
58 | return ERROR_NOT_SUPPORTED;
|
---|
59 | }
|
---|
60 |
|
---|
61 |
|
---|
62 | DECLASM(int)
|
---|
63 | FS32_COMMIT(ULONG uType, ULONG fIoFlags, PSFFSI psffsi, PVBOXSFFSD psffsd)
|
---|
64 | {
|
---|
65 | NOREF(uType); NOREF(fIoFlags); NOREF(psffsi); NOREF(psffsd);
|
---|
66 | return ERROR_NOT_SUPPORTED;
|
---|
67 | }
|
---|
68 |
|
---|
69 |
|
---|
70 | extern "C" APIRET APIENTRY
|
---|
71 | FS32_CHGFILEPTRL(PSFFSI psffsi, PVBOXSFFSD psffsd, LONGLONG off, ULONG uMethod, ULONG fIoFlags)
|
---|
72 | {
|
---|
73 | NOREF(psffsi); NOREF(psffsd); NOREF(off); NOREF(uMethod); NOREF(fIoFlags);
|
---|
74 | return ERROR_NOT_SUPPORTED;
|
---|
75 | }
|
---|
76 |
|
---|
77 |
|
---|
78 | /** Forwards the call to FS32_CHGFILEPTRL. */
|
---|
79 | extern "C" APIRET APIENTRY
|
---|
80 | FS32_CHGFILEPTR(PSFFSI psffsi, PVBOXSFFSD psffsd, LONG off, ULONG uMethod, ULONG fIoFlags)
|
---|
81 | {
|
---|
82 | return FS32_CHGFILEPTRL(psffsi, psffsd, off, uMethod, fIoFlags);
|
---|
83 | }
|
---|
84 |
|
---|
85 | DECLASM(int)
|
---|
86 | FS32_FILEINFO(ULONG fFlag, PSFFSI psffsi, PVBOXSFFSD psffsd, ULONG uLevel,
|
---|
87 | PBYTE pbData, ULONG cbData, ULONG fIoFlags)
|
---|
88 | {
|
---|
89 | NOREF(fFlag); NOREF(psffsi); NOREF(psffsd); NOREF(uLevel); NOREF(pbData); NOREF(cbData); NOREF(fIoFlags);
|
---|
90 | return ERROR_NOT_SUPPORTED;
|
---|
91 | }
|
---|
92 |
|
---|
93 | DECLASM(int)
|
---|
94 | FS32_NEWSIZEL(PSFFSI psffsi, PVBOXSFFSD psffsd, LONGLONG cbFile, ULONG fIoFlags)
|
---|
95 | {
|
---|
96 | NOREF(psffsi); NOREF(psffsd); NOREF(cbFile); NOREF(fIoFlags);
|
---|
97 | return ERROR_NOT_SUPPORTED;
|
---|
98 | }
|
---|
99 |
|
---|
100 |
|
---|
101 | extern "C" APIRET APIENTRY
|
---|
102 | FS32_READ(PSFFSI psffsi, PVBOXSFFSD psffsd, PVOID pvData, PULONG pcb, ULONG fIoFlags)
|
---|
103 | {
|
---|
104 | NOREF(psffsi); NOREF(psffsd); NOREF(pvData); NOREF(pcb); NOREF(fIoFlags);
|
---|
105 | return ERROR_NOT_SUPPORTED;
|
---|
106 | }
|
---|
107 |
|
---|
108 |
|
---|
109 | extern "C" APIRET APIENTRY
|
---|
110 | FS32_WRITE(PSFFSI psffsi, PVBOXSFFSD psffsd, PVOID pvData, PULONG pcb, ULONG fIoFlags)
|
---|
111 | {
|
---|
112 | NOREF(psffsi); NOREF(psffsd); NOREF(pvData); NOREF(pcb); NOREF(fIoFlags);
|
---|
113 | return ERROR_NOT_SUPPORTED;
|
---|
114 | }
|
---|
115 |
|
---|
116 |
|
---|
117 | extern "C" APIRET APIENTRY
|
---|
118 | FS32_READFILEATCACHE(PSFFSI psffsi, PVBOXSFFSD psffsd, ULONG fIoFlags, LONGLONG off, ULONG pcb, KernCacheList_t **ppCacheList)
|
---|
119 | {
|
---|
120 | NOREF(psffsi); NOREF(psffsd); NOREF(fIoFlags); NOREF(off); NOREF(pcb); NOREF(ppCacheList);
|
---|
121 | return ERROR_NOT_SUPPORTED;
|
---|
122 | }
|
---|
123 |
|
---|
124 |
|
---|
125 | extern "C" APIRET APIENTRY
|
---|
126 | FS32_RETURNFILECACHE(KernCacheList_t *pCacheList)
|
---|
127 | {
|
---|
128 | NOREF(pCacheList);
|
---|
129 | return ERROR_NOT_SUPPORTED;
|
---|
130 | }
|
---|
131 |
|
---|
132 |
|
---|
133 | /* oddments */
|
---|
134 |
|
---|
135 | DECLASM(int)
|
---|
136 | FS32_CANCELLOCKREQUESTL(PSFFSI psffsi, PVBOXSFFSD psffsd, struct filelockl *pLockRange)
|
---|
137 | {
|
---|
138 | NOREF(psffsi); NOREF(psffsd); NOREF(pLockRange);
|
---|
139 | return ERROR_NOT_SUPPORTED;
|
---|
140 | }
|
---|
141 |
|
---|
142 |
|
---|
143 | DECLASM(int)
|
---|
144 | FS32_CANCELLOCKREQUEST(PSFFSI psffsi, PVBOXSFFSD psffsd, struct filelock *pLockRange)
|
---|
145 | {
|
---|
146 | NOREF(psffsi); NOREF(psffsd); NOREF(pLockRange);
|
---|
147 | return ERROR_NOT_SUPPORTED;
|
---|
148 | }
|
---|
149 |
|
---|
150 |
|
---|
151 | DECLASM(int)
|
---|
152 | FS32_FILELOCKSL(PSFFSI psffsi, PVBOXSFFSD psffsd, struct filelockl *pUnLockRange,
|
---|
153 | struct filelockl *pLockRange, ULONG cMsTimeout, ULONG fFlags)
|
---|
154 | {
|
---|
155 | NOREF(psffsi); NOREF(psffsd); NOREF(pUnLockRange); NOREF(pLockRange); NOREF(cMsTimeout); NOREF(fFlags);
|
---|
156 | return ERROR_NOT_SUPPORTED;
|
---|
157 | }
|
---|
158 |
|
---|
159 |
|
---|
160 | DECLASM(int)
|
---|
161 | FS32_FILELOCKS(PSFFSI psffsi, PVBOXSFFSD psffsd, struct filelock *pUnLockRange,
|
---|
162 | struct filelock *pLockRange, ULONG cMsTimeout, ULONG fFlags)
|
---|
163 | {
|
---|
164 | NOREF(psffsi); NOREF(psffsd); NOREF(pUnLockRange); NOREF(pLockRange); NOREF(cMsTimeout); NOREF(fFlags);
|
---|
165 | return ERROR_NOT_SUPPORTED;
|
---|
166 | }
|
---|
167 |
|
---|
168 |
|
---|
169 | DECLASM(int)
|
---|
170 | FS32_IOCTL(PSFFSI psffsi, PVBOXSFFSD psffsd, USHORT uCategory, USHORT uFunction,
|
---|
171 | PVOID pvParm, USHORT cbParm, PUSHORT pcbParmIO,
|
---|
172 | PVOID pvData, USHORT cbData, PUSHORT pcbDataIO)
|
---|
173 | {
|
---|
174 | NOREF(psffsi); NOREF(psffsd); NOREF(uCategory); NOREF(uFunction); NOREF(pvParm); NOREF(cbParm); NOREF(pcbParmIO);
|
---|
175 | NOREF(pvData); NOREF(cbData); NOREF(pcbDataIO);
|
---|
176 | return ERROR_NOT_SUPPORTED;
|
---|
177 | }
|
---|
178 |
|
---|
179 |
|
---|
180 | DECLASM(int)
|
---|
181 | FS32_FILEIO(PSFFSI psffsi, PVBOXSFFSD psffsd, PBYTE pbCmdList, USHORT cbCmdList,
|
---|
182 | PUSHORT poffError, USHORT fIoFlag)
|
---|
183 | {
|
---|
184 | NOREF(psffsi); NOREF(psffsd); NOREF(pbCmdList); NOREF(cbCmdList); NOREF(poffError); NOREF(fIoFlag);
|
---|
185 | return ERROR_NOT_SUPPORTED;
|
---|
186 | }
|
---|
187 |
|
---|
188 |
|
---|
189 | DECLASM(int)
|
---|
190 | FS32_NMPIPE(PSFFSI psffsi, PVBOXSFFSD psffsd, USHORT uOpType, union npoper *pOpRec,
|
---|
191 | PBYTE pbData, PCSZ pszName)
|
---|
192 | {
|
---|
193 | NOREF(psffsi); NOREF(psffsd); NOREF(uOpType); NOREF(pOpRec); NOREF(pbData); NOREF(pszName);
|
---|
194 | return ERROR_NOT_SUPPORTED;
|
---|
195 | }
|
---|
196 |
|
---|
197 |
|
---|
198 | DECLASM(int)
|
---|
199 | FS32_OPENPAGEFILE(PULONG pfFlags, PULONG pcMaxReq, PCSZ pszName, PSFFSI psffsi, PVBOXSFFSD psffsd,
|
---|
200 | USHORT uOpenMode, USHORT fOpenFlags, USHORT fAttr, ULONG uReserved)
|
---|
201 | {
|
---|
202 | NOREF(pfFlags); NOREF(pcMaxReq); NOREF(pszName); NOREF(psffsi); NOREF(psffsd); NOREF(uOpenMode); NOREF(fOpenFlags);
|
---|
203 | NOREF(fAttr); NOREF(uReserved);
|
---|
204 | return ERROR_NOT_SUPPORTED;
|
---|
205 | }
|
---|
206 |
|
---|
207 |
|
---|
208 | DECLASM(int)
|
---|
209 | FS32_SETSWAP(PSFFSI psffsi, PVBOXSFFSD psffsd)
|
---|
210 | {
|
---|
211 | NOREF(psffsi); NOREF(psffsd);
|
---|
212 | return ERROR_NOT_SUPPORTED;
|
---|
213 | }
|
---|
214 |
|
---|
215 |
|
---|
216 | DECLASM(int)
|
---|
217 | FS32_ALLOCATEPAGESPACE(PSFFSI psffsi, PVBOXSFFSD psffsd, ULONG cb, USHORT cbWantContig)
|
---|
218 | {
|
---|
219 | NOREF(psffsi); NOREF(psffsd); NOREF(cb); NOREF(cbWantContig);
|
---|
220 | return ERROR_NOT_SUPPORTED;
|
---|
221 | }
|
---|
222 |
|
---|
223 |
|
---|
224 | DECLASM(int)
|
---|
225 | FS32_DOPAGEIO(PSFFSI psffsi, PVBOXSFFSD psffsd, struct PageCmdHeader *pList)
|
---|
226 | {
|
---|
227 | NOREF(psffsi); NOREF(psffsd); NOREF(pList);
|
---|
228 | return ERROR_NOT_SUPPORTED;
|
---|
229 | }
|
---|
230 |
|
---|