Renamed some 16-bit spec files to match the dll name.
[wine] / dlls / kernel / stress.c
1 /*
2  * Copyright 1994 Erik Bos
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  */
18
19 #include <limits.h>
20 #include "windef.h"
21 #include "wine/windef16.h"
22 #include "wine/debug.h"
23
24 WINE_DEFAULT_DEBUG_CHANNEL(stress);
25
26 /***********************************************************************
27  *              AllocDiskSpace (STRESS.10)
28  */
29 INT16 WINAPI AllocDiskSpace(LONG lLeft, UINT16 uDrive)
30 {
31         FIXME("(%d, %ld) - stub\n", 
32                        uDrive, lLeft);
33
34         return 1;
35 }
36
37 /***********************************************************************
38  *              AllocFileHandles (STRESS.6)
39  */
40 INT16 WINAPI AllocFileHandles(INT16 Left)
41 {
42         TRACE("(%d) - stub\n", Left);
43
44         if (Left < 0)
45                 return -1;
46         else
47                 return 1;
48 }
49
50 /***********************************************************************
51  *              AllocGDIMem (STRESS.14)
52  */
53 BOOL16 WINAPI AllocGDIMem(UINT16 uLeft)
54 {
55         TRACE("(%d) - stub\n", uLeft);
56
57         return 1;
58 }
59
60 /***********************************************************************
61  *              AllocMem (STRESS.2)
62  */
63 BOOL16 WINAPI AllocMem(DWORD dwLeft)
64 {
65         FIXME("(%ld) - stub\n", dwLeft);
66
67         return 1;
68 }
69
70 /***********************************************************************
71  *              AllocUserMem (STRESS.12)
72  */
73 BOOL16 WINAPI AllocUserMem(UINT16 uContig)
74 {
75         TRACE("AllocUserMem %d\n", uContig);
76
77         return 1;
78 }
79
80 /***********************************************************************
81  *              FreeAllMem (STRESS.3)
82  */
83 void WINAPI FreeAllMem(void)
84 {
85         TRACE("FreeAllMem\n");
86 }
87
88 /***********************************************************************
89  *              FreeAllGDIMem (STRESS.15)
90  */
91 void WINAPI FreeAllGDIMem(void)
92 {
93         TRACE("FreeAllGDIMem\n");
94 }
95
96 /***********************************************************************
97  *              FreeAllUserMem (STRESS.13)
98  */
99 void WINAPI FreeAllUserMem(void)
100 {
101         TRACE("FreeAllUserMem\n");
102 }
103
104 /***********************************************************************
105  *              GetFreeFileHandles (STRESS.8)
106  */
107 INT16 WINAPI GetFreeFileHandles(void)
108 {
109         TRACE("GetFreeFileHandles\n");
110
111 #ifndef OPEN_MAX
112         return _POSIX_OPEN_MAX;
113 #else
114         return OPEN_MAX;
115 #endif
116 }
117
118 /***********************************************************************
119  *              UnAllocDiskSpace (STRESS.11)
120  */
121 void WINAPI UnAllocDiskSpace(UINT16 drive)
122 {
123         TRACE("UnAllocDiskSpace %d\n", drive);
124 }
125
126 /***********************************************************************
127  *              UnAllocFileHandles (STRESS.7)
128  */
129 void WINAPI UnAllocFileHandles(void)
130 {
131         TRACE("GetFreeAllUserMem\n");
132 }