1 | /*
|
---|
2 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
3 | * Win32 NT Runtime / NTDLL for OS/2
|
---|
4 | *
|
---|
5 | * Copyright 1998 original WINE Author
|
---|
6 | * Copyright 1998, 1999 Patrick Haller (phaller@gmx.net)
|
---|
7 | *
|
---|
8 | * Process synchronisation
|
---|
9 | */
|
---|
10 |
|
---|
11 | #include "ntdll.h"
|
---|
12 | #include <stdlib.h>
|
---|
13 | #include <string.h>
|
---|
14 | #include <time.h>
|
---|
15 |
|
---|
16 |
|
---|
17 |
|
---|
18 | /*
|
---|
19 | * Semaphore
|
---|
20 | */
|
---|
21 |
|
---|
22 | /******************************************************************************
|
---|
23 | * NtCreateSemaphore [NTDLL]
|
---|
24 | */
|
---|
25 | NTSTATUS WINAPI NtCreateSemaphore(PHANDLE SemaphoreHandle,
|
---|
26 | ACCESS_MASK DesiredAccess,
|
---|
27 | POBJECT_ATTRIBUTES ObjectAttributes,
|
---|
28 | ULONG InitialCount,
|
---|
29 | ULONG MaximumCount)
|
---|
30 | {
|
---|
31 | dprintf(("NTDLL: NtCreateSemaphore(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
---|
32 | SemaphoreHandle,
|
---|
33 | DesiredAccess,
|
---|
34 | ObjectAttributes,
|
---|
35 | InitialCount,
|
---|
36 | MaximumCount));
|
---|
37 |
|
---|
38 | return 0;
|
---|
39 | }
|
---|
40 |
|
---|
41 |
|
---|
42 | /******************************************************************************
|
---|
43 | * NtOpenSemaphore [NTDLL]
|
---|
44 | */
|
---|
45 | NTSTATUS WINAPI NtOpenSemaphore(HANDLE SemaphoreHandle,
|
---|
46 | ACCESS_MASK DesiredAccess,
|
---|
47 | POBJECT_ATTRIBUTES ObjectAttributes)
|
---|
48 | {
|
---|
49 | dprintf(("NTDLL: NtOpenSemaphore(%08xh,%08xh,%08xh) not implemented.\n",
|
---|
50 | SemaphoreHandle,
|
---|
51 | DesiredAccess,
|
---|
52 | ObjectAttributes));
|
---|
53 |
|
---|
54 | return 0;
|
---|
55 | }
|
---|
56 |
|
---|
57 |
|
---|
58 | /******************************************************************************
|
---|
59 | * NtQuerySemaphore [NTDLL]
|
---|
60 | */
|
---|
61 | NTSTATUS WINAPI NtQuerySemaphore(HANDLE SemaphoreHandle,
|
---|
62 | PVOID SemaphoreInformationClass,
|
---|
63 | PVOID SemaphoreInformation,
|
---|
64 | ULONG Length,
|
---|
65 | PULONG ReturnLength)
|
---|
66 | {
|
---|
67 | dprintf(("NTDLL: NtQuerySemaphore(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
---|
68 | SemaphoreHandle,
|
---|
69 | SemaphoreInformationClass,
|
---|
70 | SemaphoreInformation,
|
---|
71 | Length,
|
---|
72 | ReturnLength));
|
---|
73 |
|
---|
74 | return 0;
|
---|
75 | }
|
---|
76 |
|
---|
77 |
|
---|
78 | /******************************************************************************
|
---|
79 | * NtReleaseSemaphore [NTDLL]
|
---|
80 | */
|
---|
81 | NTSTATUS WINAPI NtReleaseSemaphore(HANDLE SemaphoreHandle,
|
---|
82 | ULONG ReleaseCount,
|
---|
83 | PULONG PreviousCount)
|
---|
84 | {
|
---|
85 | dprintf(("NTDLL: NtReleaseSemaphore(%08xh,%08xh,%08xh) not implemented.\n",
|
---|
86 | SemaphoreHandle,
|
---|
87 | ReleaseCount,
|
---|
88 | PreviousCount));
|
---|
89 |
|
---|
90 | return 0;
|
---|
91 | }
|
---|
92 |
|
---|
93 |
|
---|
94 | /*
|
---|
95 | * Event
|
---|
96 | */
|
---|
97 |
|
---|
98 | /**************************************************************************
|
---|
99 | * NtCreateEvent [NTDLL.71]
|
---|
100 | */
|
---|
101 | NTSTATUS WINAPI NtCreateEvent(PHANDLE EventHandle,
|
---|
102 | ACCESS_MASK DesiredAccess,
|
---|
103 | POBJECT_ATTRIBUTES ObjectAttributes,
|
---|
104 | BOOLEAN ManualReset,
|
---|
105 | BOOLEAN InitialState)
|
---|
106 | {
|
---|
107 | dprintf(("NTDLL: NtCreateEvent(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
---|
108 | EventHandle,
|
---|
109 | DesiredAccess,
|
---|
110 | ObjectAttributes,
|
---|
111 | ManualReset,
|
---|
112 | InitialState));
|
---|
113 |
|
---|
114 | return 0;
|
---|
115 | }
|
---|
116 |
|
---|
117 |
|
---|
118 | /******************************************************************************
|
---|
119 | * NtOpenEvent [NTDLL]
|
---|
120 | */
|
---|
121 | NTSTATUS WINAPI NtOpenEvent(PHANDLE EventHandle,
|
---|
122 | ACCESS_MASK DesiredAccess,
|
---|
123 | POBJECT_ATTRIBUTES ObjectAttributes)
|
---|
124 | {
|
---|
125 | dprintf(("NTDLL: NtOpenEvent(%08xh,%08xh,%08xh) not implemented.\n",
|
---|
126 | EventHandle,
|
---|
127 | DesiredAccess,
|
---|
128 | ObjectAttributes));
|
---|
129 |
|
---|
130 | return 0;
|
---|
131 | }
|
---|
132 |
|
---|
133 |
|
---|
134 | /******************************************************************************
|
---|
135 | * NtSetEvent [NTDLL]
|
---|
136 | */
|
---|
137 | NTSTATUS WINAPI NtSetEvent(HANDLE EventHandle,
|
---|
138 | PULONG NumberOfThreadsReleased)
|
---|
139 | {
|
---|
140 | dprintf(("NTDLL: NtSetEvent(%08xh,%08xh) not implemented.\n",
|
---|
141 | EventHandle,
|
---|
142 | NumberOfThreadsReleased));
|
---|
143 |
|
---|
144 | return 0;
|
---|
145 | }
|
---|
146 |
|
---|