Callout table (for KERNEL->USER calls) added.
[wine] / misc / stress.c
1 #include <limits.h>
2 #include "windows.h"
3 #include "stress.h"
4 #include "debug.h"
5
6
7 int WINAPI AllocDiskSpace(long lLeft, UINT16 uDrive)
8 {
9         FIXME(stress, "(%d, %ld) - stub\n", 
10                        uDrive, lLeft);
11
12         return 1;
13 }
14
15 int WINAPI AllocFileHandles(int Left)
16 {
17         TRACE(stress, "(%d) - stub\n", Left);
18
19         if (Left < 0)
20                 return -1;
21         else
22                 return 1;
23 }
24
25 BOOL16 WINAPI AllocGDIMem(UINT16 uLeft)
26 {
27         TRACE(stress, "(%d) - stub\n", uLeft);
28
29         return 1;
30 }
31
32 BOOL16 WINAPI AllocMem(DWORD dwLeft)
33 {
34         FIXME(stress, "(%ld) - stub\n", dwLeft);
35
36         return 1;
37 }
38
39 BOOL16 WINAPI AllocUserMem(UINT16 uContig)
40 {
41         TRACE(stress, "AllocUserMem %d\n", uContig);
42
43         return 1;
44 }
45
46 void WINAPI FreeAllMem(void)
47 {
48         TRACE(stress, "FreeAllMem\n");
49 }
50
51 void WINAPI FreeAllGDIMem(void)
52 {
53         TRACE(stress, "FreeAllGDIMem\n");
54 }
55
56 void WINAPI FreeAllUserMem(void)
57 {
58         TRACE(stress, "FreeAllUserMem\n");
59 }
60
61 void WINAPI GetFreeAllUserMem(void)
62 {
63        TRACE(stress, "GetFreeAllUserMem\n");
64 }
65
66 int WINAPI GetFreeFileHandles(void)
67 {
68         TRACE(stress, "GetFreeFileHandles\n");
69
70 #ifndef OPEN_MAX
71         return _POSIX_OPEN_MAX;
72 #else
73         return OPEN_MAX;
74 #endif
75 }
76
77 void WINAPI UnAllocDiskSpace(UINT16 drive)
78 {
79         TRACE(stress, "UnAllocDiskSpace %d\n", drive);
80 }
81
82 void WINAPI UnAllocFileHandles(void)
83 {
84         TRACE(stress, "GetFreeAllUserMem\n");
85 }