Made some more spec file entries optional or unnecessary.
[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 "windef.h"
20 #include "wine/windef16.h"
21 #include "wine/debug.h"
22
23 WINE_DEFAULT_DEBUG_CHANNEL(stress);
24
25 /***********************************************************************
26  *              AllocDiskSpace (STRESS.10)
27  */
28 INT16 WINAPI AllocDiskSpace(LONG lLeft, UINT16 uDrive)
29 {
30         FIXME("(%d, %ld) - stub\n",
31                        uDrive, lLeft);
32
33         return 1;
34 }
35
36 /***********************************************************************
37  *              AllocFileHandles (STRESS.6)
38  */
39 INT16 WINAPI AllocFileHandles(INT16 Left)
40 {
41         TRACE("(%d) - stub\n", Left);
42
43         if (Left < 0)
44                 return -1;
45         else
46                 return 1;
47 }
48
49 /***********************************************************************
50  *              AllocGDIMem (STRESS.14)
51  */
52 BOOL16 WINAPI AllocGDIMem(UINT16 uLeft)
53 {
54         TRACE("(%d) - stub\n", uLeft);
55
56         return 1;
57 }
58
59 /***********************************************************************
60  *              AllocMem (STRESS.2)
61  */
62 BOOL16 WINAPI AllocMem(DWORD dwLeft)
63 {
64         FIXME("(%ld) - stub\n", dwLeft);
65
66         return 1;
67 }
68
69 /***********************************************************************
70  *              AllocUserMem (STRESS.12)
71  */
72 BOOL16 WINAPI AllocUserMem(UINT16 uContig)
73 {
74         TRACE("AllocUserMem %d\n", uContig);
75
76         return 1;
77 }
78
79 /***********************************************************************
80  *              FreeAllMem (STRESS.3)
81  */
82 void WINAPI FreeAllMem(void)
83 {
84         TRACE("FreeAllMem\n");
85 }
86
87 /***********************************************************************
88  *              FreeAllGDIMem (STRESS.15)
89  */
90 void WINAPI FreeAllGDIMem(void)
91 {
92         TRACE("FreeAllGDIMem\n");
93 }
94
95 /***********************************************************************
96  *              FreeAllUserMem (STRESS.13)
97  */
98 void WINAPI FreeAllUserMem(void)
99 {
100         TRACE("FreeAllUserMem\n");
101 }
102
103 /***********************************************************************
104  *              GetFreeFileHandles (STRESS.8)
105  */
106 INT16 WINAPI GetFreeFileHandles(void)
107 {
108         TRACE("GetFreeFileHandles\n");
109         return 256;  /* can't have more than 256 16-bit handles */
110 }
111
112 /***********************************************************************
113  *              UnAllocDiskSpace (STRESS.11)
114  */
115 void WINAPI UnAllocDiskSpace(UINT16 drive)
116 {
117         TRACE("UnAllocDiskSpace %d\n", drive);
118 }
119
120 /***********************************************************************
121  *              UnAllocFileHandles (STRESS.7)
122  */
123 void WINAPI UnAllocFileHandles(void)
124 {
125         TRACE("GetFreeAllUserMem\n");
126 }