Fix off_t cast that breaks FreeBSD.
[wine/wine64.git] / files / tape.c
blob17650d73c58692c324371f6232d1358a3c35a7c5
1 /*
2 * Tape handling functions
4 * Copyright 1999 Chris Morgan <cmorgan@wpi.edu>
5 * James Abbatiello <abbeyj@wpi.edu>
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 * TODO:
22 * Everything, all functions are stubs.
25 #include "winbase.h"
26 #include "winerror.h"
27 #include "wine/debug.h"
29 WINE_DEFAULT_DEBUG_CHANNEL(tape);
32 /************************************************************************
33 * BackupRead (KERNEL32.@)
35 BOOL WINAPI BackupRead( HANDLE hFile, LPBYTE lpBuffer, DWORD nNumberOfBytesToRead,
36 LPDWORD lpNumberOfBytesRead, BOOL bAbort,
37 BOOL bProcessSecurity, LPVOID *lpContext )
39 FIXME("(%p, %p, %ld, %p, %d, %d, %p) stub!\n", hFile, lpBuffer,
40 nNumberOfBytesToRead, lpNumberOfBytesRead, bAbort, bProcessSecurity,
41 lpContext);
43 SetLastError( ERROR_NOT_SUPPORTED );
45 return FALSE;
49 /************************************************************************
50 * BackupSeek (KERNEL32.@)
52 BOOL WINAPI BackupSeek( HANDLE hFile, DWORD dwLowBytesToSeek, DWORD dwHighBytesToSeek,
53 LPDWORD lpdwLowByteSeeked, LPDWORD lpdwHighByteSeeked,
54 LPVOID *lpContext )
56 FIXME("(%p, %ld, %ld, %p, %p, %p) stub!\n", hFile, dwLowBytesToSeek,
57 dwHighBytesToSeek, lpdwLowByteSeeked, lpdwHighByteSeeked, lpContext);
59 SetLastError( ERROR_NOT_SUPPORTED );
61 return FALSE;
65 /************************************************************************
66 * BackupWrite (KERNEL32.@)
68 BOOL WINAPI BackupWrite( HANDLE hFile, LPBYTE lpBuffer, DWORD nNumberOfBytesToWrite,
69 LPDWORD lpNumberOfBytesWritten, BOOL bAbort,
70 BOOL bProcessSecurity, LPVOID *lpContext )
72 FIXME("(%p, %p, %ld, %p, %d, %d, %p) stub!\n", hFile, lpBuffer,
73 nNumberOfBytesToWrite, lpNumberOfBytesWritten, bAbort,
74 bProcessSecurity, lpContext);
76 SetLastError( ERROR_NOT_SUPPORTED );
78 return FALSE;
82 /************************************************************************
83 * CreateTapePartition (KERNEL32.@)
85 DWORD WINAPI CreateTapePartition( HANDLE hDevice, DWORD dwPartitionMethod,
86 DWORD dwCount, DWORD dwSize )
88 FIXME("(%p, %ld, %ld, %ld) stub!\n", hDevice, dwPartitionMethod, dwCount,
89 dwSize);
91 SetLastError( ERROR_NOT_SUPPORTED );
93 return FALSE;
97 /************************************************************************
98 * EraseTape (KERNEL32.@)
100 DWORD WINAPI EraseTape( HANDLE hDevice, DWORD dwEraseType, BOOL bImmediate )
102 FIXME("(%p, %ld, %d) stub!\n", hDevice, dwEraseType, bImmediate);
104 SetLastError( ERROR_NOT_SUPPORTED );
106 return FALSE;
110 /************************************************************************
111 * GetTapeParameters (KERNEL32.@)
113 DWORD WINAPI GetTapeParameters( HANDLE hDevice, DWORD dwOperation,
114 LPDWORD lpdwSize, LPVOID lpTapeInformation )
116 FIXME("(%p, %ld, %p, %p) stub!\n", hDevice, dwOperation, lpdwSize,
117 lpTapeInformation);
119 SetLastError( ERROR_NOT_SUPPORTED );
121 return FALSE;
125 /************************************************************************
126 * GetTapePosition (KERNEL32.@)
128 DWORD WINAPI GetTapePosition( HANDLE hDevice, DWORD dwPositionType,
129 LPDWORD lpdwPartition, LPDWORD lpdwOffsetLow,
130 LPDWORD lpdwOffsetHigh )
132 FIXME("(%p, %ld, %p, %p, %p) stub!\n", hDevice, dwPositionType,
133 lpdwPartition, lpdwOffsetLow, lpdwOffsetHigh);
135 SetLastError( ERROR_NOT_SUPPORTED );
137 return FALSE;
141 /************************************************************************
142 * GetTapeStatus (KERNEL32.@)
144 DWORD WINAPI GetTapeStatus( HANDLE hDevice )
146 FIXME("(%p) stub!\n", hDevice);
148 SetLastError( ERROR_NOT_SUPPORTED );
150 return FALSE;
154 /************************************************************************
155 * PrepareTape (KERNEL32.@)
157 DWORD WINAPI PrepareTape( HANDLE hDevice, DWORD dwOperation, BOOL bImmediate )
159 FIXME("(%p, %ld, %d) stub!\n", hDevice, dwOperation, bImmediate);
161 SetLastError( ERROR_NOT_SUPPORTED );
163 return FALSE;
167 /************************************************************************
168 * SetTapeParameters (KERNEL32.@)
170 DWORD WINAPI SetTapeParameters( HANDLE hDevice, DWORD dwOperation,
171 LPVOID lpTapeInformation )
173 FIXME("(%p, %ld, %p) stub!\n", hDevice, dwOperation, lpTapeInformation);
175 SetLastError( ERROR_NOT_SUPPORTED );
177 return FALSE;
181 /************************************************************************
182 * SetTapePosition (KERNEL32.@)
184 DWORD WINAPI SetTapePosition( HANDLE hDevice, DWORD dwPositionMethod, DWORD
185 dwPartition, DWORD dwOffsetLow, DWORD dwOffsetHigh,
186 BOOL bImmediate )
188 FIXME("(%p, %ld, %ld, %ld, %ld, %d) stub!\n", hDevice, dwPositionMethod,
189 dwPartition, dwOffsetLow, dwOffsetHigh, bImmediate);
191 SetLastError( ERROR_NOT_SUPPORTED );
193 return FALSE;
197 /************************************************************************
198 * WriteTapemark (KERNEL32.@)
200 DWORD WINAPI WriteTapemark( HANDLE hDevice, DWORD dwTapemarkType, DWORD
201 dwTapemarkCount, BOOL bImmediate )
203 FIXME("(%p, %ld, %ld, %d) stub!\n", hDevice, dwTapemarkType,
204 dwTapemarkCount, bImmediate);
206 SetLastError( ERROR_NOT_SUPPORTED );
208 return FALSE;