1 | /** $Id: VBoxSFFile.cpp 57358 2015-08-14 15:16:38Z 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 ulOpenMode, USHORT usOpenFlag,
|
---|
46 | PUSHORT pusAction, USHORT usAttr, PBYTE pcEABuf, PUSHORT pfgenflag)
|
---|
47 | {
|
---|
48 | return ERROR_NOT_SUPPORTED;
|
---|
49 | }
|
---|
50 |
|
---|
51 |
|
---|
52 | DECLASM(int)
|
---|
53 | FS32_CLOSE(ULONG type, ULONG IOflag, PSFFSI psffsi, PVBOXSFFSD psffsd)
|
---|
54 | {
|
---|
55 | return ERROR_NOT_SUPPORTED;
|
---|
56 | }
|
---|
57 |
|
---|
58 |
|
---|
59 | DECLASM(int)
|
---|
60 | FS32_COMMIT(ULONG type, ULONG IOflag, PSFFSI psffsi, PVBOXSFFSD psffsd)
|
---|
61 | {
|
---|
62 | return ERROR_NOT_SUPPORTED;
|
---|
63 | }
|
---|
64 |
|
---|
65 |
|
---|
66 | extern "C" APIRET APIENTRY
|
---|
67 | FS32_CHGFILEPTRL(PSFFSI psffsi, PVBOXSFFSD psffsd, LONGLONG off, ULONG ulMethod, ULONG IOflag)
|
---|
68 | {
|
---|
69 | return ERROR_NOT_SUPPORTED;
|
---|
70 | }
|
---|
71 |
|
---|
72 |
|
---|
73 | /** Forwards the call to FS32_CHGFILEPTRL. */
|
---|
74 | extern "C" APIRET APIENTRY
|
---|
75 | FS32_CHGFILEPTR(PSFFSI psffsi, PVBOXSFFSD psffsd, LONG off, ULONG ulMethod, ULONG IOflag)
|
---|
76 | {
|
---|
77 | return FS32_CHGFILEPTRL(psffsi, psffsd, off, ulMethod, IOflag);
|
---|
78 | }
|
---|
79 |
|
---|
80 | DECLASM(int)
|
---|
81 | FS32_FILEINFO(ULONG flag, PSFFSI psffsi, PVBOXSFFSD psffsd, ULONG level,
|
---|
82 | PBYTE pData, ULONG cbData, ULONG IOflag)
|
---|
83 | {
|
---|
84 | return ERROR_NOT_SUPPORTED;
|
---|
85 | }
|
---|
86 |
|
---|
87 | DECLASM(int)
|
---|
88 | FS32_NEWSIZEL(PSFFSI psffsi, PVBOXSFFSD psffsd, LONGLONG cbFile, ULONG IOflag)
|
---|
89 | {
|
---|
90 | return ERROR_NOT_SUPPORTED;
|
---|
91 | }
|
---|
92 |
|
---|
93 |
|
---|
94 | extern "C" APIRET APIENTRY
|
---|
95 | FS32_READ(PSFFSI psffsi, PVBOXSFFSD psffsd, PVOID pvData, PULONG pcb, ULONG IOflag)
|
---|
96 | {
|
---|
97 | return ERROR_NOT_SUPPORTED;
|
---|
98 | }
|
---|
99 |
|
---|
100 |
|
---|
101 | extern "C" APIRET APIENTRY
|
---|
102 | FS32_WRITE(PSFFSI psffsi, PVBOXSFFSD psffsd, PVOID pvData, PULONG pcb, ULONG IOflag)
|
---|
103 | {
|
---|
104 | return ERROR_NOT_SUPPORTED;
|
---|
105 | }
|
---|
106 |
|
---|
107 |
|
---|
108 | extern "C" APIRET APIENTRY
|
---|
109 | FS32_READFILEATCACHE(PSFFSI psffsi, PVBOXSFFSD psffsd, ULONG IOflag, LONGLONG off, ULONG pcb, KernCacheList_t **ppCacheList)
|
---|
110 | {
|
---|
111 | return ERROR_NOT_SUPPORTED;
|
---|
112 | }
|
---|
113 |
|
---|
114 |
|
---|
115 | extern "C" APIRET APIENTRY
|
---|
116 | FS32_RETURNFILECACHE(KernCacheList_t *pCacheList)
|
---|
117 | {
|
---|
118 | return ERROR_NOT_SUPPORTED;
|
---|
119 | }
|
---|
120 |
|
---|
121 |
|
---|
122 | /* oddments */
|
---|
123 |
|
---|
124 | DECLASM(int)
|
---|
125 | FS32_CANCELLOCKREQUESTL(PSFFSI psffsi, PVBOXSFFSD psffsd, struct filelockl *pLockRange)
|
---|
126 | {
|
---|
127 | return ERROR_NOT_SUPPORTED;
|
---|
128 | }
|
---|
129 |
|
---|
130 |
|
---|
131 | DECLASM(int)
|
---|
132 | FS32_CANCELLOCKREQUEST(PSFFSI psffsi, PVBOXSFFSD psffsd, struct filelock *pLockRange)
|
---|
133 | {
|
---|
134 | return ERROR_NOT_SUPPORTED;
|
---|
135 | }
|
---|
136 |
|
---|
137 |
|
---|
138 | DECLASM(int)
|
---|
139 | FS32_FILELOCKSL(PSFFSI psffsi, PVBOXSFFSD psffsd, struct filelockl *pUnLockRange,
|
---|
140 | struct filelockl *pLockRange, ULONG timeout, ULONG flags)
|
---|
141 | {
|
---|
142 | return ERROR_NOT_SUPPORTED;
|
---|
143 | }
|
---|
144 |
|
---|
145 |
|
---|
146 | DECLASM(int)
|
---|
147 | FS32_FILELOCKS(PSFFSI psffsi, PVBOXSFFSD psffsd, struct filelock *pUnLockRange,
|
---|
148 | struct filelock *pLockRange, ULONG timeout, ULONG flags)
|
---|
149 | {
|
---|
150 | return ERROR_NOT_SUPPORTED;
|
---|
151 | }
|
---|
152 |
|
---|
153 |
|
---|
154 | DECLASM(int)
|
---|
155 | FS32_IOCTL(PSFFSI psffsi, PVBOXSFFSD psffsd, USHORT cat, USHORT func,
|
---|
156 | PVOID pParm, USHORT lenParm, PUSHORT plenParmIO,
|
---|
157 | PVOID pData, USHORT lenData, PUSHORT plenDataIO)
|
---|
158 | {
|
---|
159 | return ERROR_NOT_SUPPORTED;
|
---|
160 | }
|
---|
161 |
|
---|
162 |
|
---|
163 | DECLASM(int)
|
---|
164 | FS32_FILEIO(PSFFSI psffsi, PVBOXSFFSD psffsd, PBYTE pCmdList, USHORT cbCmdList,
|
---|
165 | PUSHORT poError, USHORT IOflag)
|
---|
166 | {
|
---|
167 | return ERROR_NOT_SUPPORTED;
|
---|
168 | }
|
---|
169 |
|
---|
170 |
|
---|
171 | DECLASM(int)
|
---|
172 | FS32_NMPIPE(PSFFSI psffsi, PVBOXSFFSD psffsd, USHORT OpType, union npoper *pOpRec,
|
---|
173 | PBYTE pData, PCSZ pszName)
|
---|
174 | {
|
---|
175 | return ERROR_NOT_SUPPORTED;
|
---|
176 | }
|
---|
177 |
|
---|
178 |
|
---|
179 | DECLASM(int)
|
---|
180 | FS32_OPENPAGEFILE(PULONG pFlag, PULONG pcMaxReq, PCSZ pszName, PSFFSI psffsi, PVBOXSFFSD psffsd,
|
---|
181 | USHORT ulOpenMode, USHORT usOpenFlag, USHORT usAttr, ULONG Reserved)
|
---|
182 | {
|
---|
183 | return ERROR_NOT_SUPPORTED;
|
---|
184 | }
|
---|
185 |
|
---|
186 |
|
---|
187 | DECLASM(int)
|
---|
188 | FS32_SETSWAP(PSFFSI psffsi, PVBOXSFFSD psffsd)
|
---|
189 | {
|
---|
190 | return ERROR_NOT_SUPPORTED;
|
---|
191 | }
|
---|
192 |
|
---|
193 |
|
---|
194 | DECLASM(int)
|
---|
195 | FS32_ALLOCATEPAGESPACE(PSFFSI psffsi, PVBOXSFFSD psffsd, ULONG cb, USHORT cbWantContig)
|
---|
196 | {
|
---|
197 | return ERROR_NOT_SUPPORTED;
|
---|
198 | }
|
---|
199 |
|
---|
200 |
|
---|
201 | DECLASM(int)
|
---|
202 | FS32_DOPAGEIO(PSFFSI psffsi, PVBOXSFFSD psffsd, struct PageCmdHeader *pList)
|
---|
203 | {
|
---|
204 | return ERROR_NOT_SUPPORTED;
|
---|
205 | }
|
---|
206 |
|
---|