VirtualBox

source: vbox/trunk/src/VBox/Additions/os2/VBoxSF/VBoxSFFile.cpp@ 68612

最後變更 在這個檔案從68612是 68612,由 vboxsync 提交於 7 年 前

os2/VBoxSF: Make it compile with watcom.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id Revision
檔案大小: 7.2 KB
 
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
43DECLASM(int)
44FS32_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
54DECLASM(int)
55FS32_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
62DECLASM(int)
63FS32_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
70extern "C" APIRET APIENTRY
71FS32_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. */
79extern "C" APIRET APIENTRY
80FS32_CHGFILEPTR(PSFFSI psffsi, PVBOXSFFSD psffsd, LONG off, ULONG uMethod, ULONG fIoFlags)
81{
82 return FS32_CHGFILEPTRL(psffsi, psffsd, off, uMethod, fIoFlags);
83}
84
85DECLASM(int)
86FS32_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
93DECLASM(int)
94FS32_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
101extern "C" APIRET APIENTRY
102FS32_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
109extern "C" APIRET APIENTRY
110FS32_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
117extern "C" APIRET APIENTRY
118FS32_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
125extern "C" APIRET APIENTRY
126FS32_RETURNFILECACHE(KernCacheList_t *pCacheList)
127{
128 NOREF(pCacheList);
129 return ERROR_NOT_SUPPORTED;
130}
131
132
133/* oddments */
134
135DECLASM(int)
136FS32_CANCELLOCKREQUESTL(PSFFSI psffsi, PVBOXSFFSD psffsd, struct filelockl *pLockRange)
137{
138 NOREF(psffsi); NOREF(psffsd); NOREF(pLockRange);
139 return ERROR_NOT_SUPPORTED;
140}
141
142
143DECLASM(int)
144FS32_CANCELLOCKREQUEST(PSFFSI psffsi, PVBOXSFFSD psffsd, struct filelock *pLockRange)
145{
146 NOREF(psffsi); NOREF(psffsd); NOREF(pLockRange);
147 return ERROR_NOT_SUPPORTED;
148}
149
150
151DECLASM(int)
152FS32_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
160DECLASM(int)
161FS32_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
169DECLASM(int)
170FS32_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
180DECLASM(int)
181FS32_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
189DECLASM(int)
190FS32_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
198DECLASM(int)
199FS32_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
208DECLASM(int)
209FS32_SETSWAP(PSFFSI psffsi, PVBOXSFFSD psffsd)
210{
211 NOREF(psffsi); NOREF(psffsd);
212 return ERROR_NOT_SUPPORTED;
213}
214
215
216DECLASM(int)
217FS32_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
224DECLASM(int)
225FS32_DOPAGEIO(PSFFSI psffsi, PVBOXSFFSD psffsd, struct PageCmdHeader *pList)
226{
227 NOREF(psffsi); NOREF(psffsd); NOREF(pList);
228 return ERROR_NOT_SUPPORTED;
229}
230
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette