source: trunk/src/NTDLL/sync.c@ 9684

Last change on this file since 9684 was 9684, checked in by sandervl, 23 years ago

PF: Changes for building dll with GCC

File size: 5.7 KB
Line 
1/* $Id: sync.c,v 1.3 2003-01-16 15:22:41 sandervl Exp $ */
2
3/*
4 * Project Odin Software License can be found in LICENSE.TXT
5 * Win32 NT Runtime / NTDLL for OS/2
6 *
7 * Copyright 1998 original WINE Author
8 * Copyright 1998, 1999 Patrick Haller (phaller@gmx.net)
9 *
10 * Process synchronisation
11 */
12
13#include <windows.h>
14#include <dbglog.h>
15#include "ntddk.h"
16#include <stdlib.h>
17#include <string.h>
18#include <time.h>
19
20
21
22/*
23 * Semaphore
24 */
25
26/******************************************************************************
27 * NtCreateSemaphore [NTDLL]
28 */
29NTSTATUS WINAPI NtCreateSemaphore(PHANDLE SemaphoreHandle,
30 ACCESS_MASK DesiredAccess,
31 const OBJECT_ATTRIBUTES *ObjectAttributes,
32 ULONG InitialCount,
33 ULONG MaximumCount)
34{
35 dprintf(("NTDLL: NtCreateSemaphore(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
36 SemaphoreHandle,
37 DesiredAccess,
38 ObjectAttributes,
39 InitialCount,
40 MaximumCount));
41
42
43 return 0;
44}
45
46
47/******************************************************************************
48 * NtOpenSemaphore [NTDLL]
49 */
50NTSTATUS WINAPI NtOpenSemaphore(HANDLE SemaphoreHandle,
51 ACCESS_MASK DesiredAccess,
52 POBJECT_ATTRIBUTES ObjectAttributes)
53{
54 dprintf(("NTDLL: NtOpenSemaphore(%08xh,%08xh,%08xh) not implemented.\n",
55 SemaphoreHandle,
56 DesiredAccess,
57 ObjectAttributes));
58
59 return 0;
60}
61
62
63/******************************************************************************
64 * NtQuerySemaphore [NTDLL]
65 */
66NTSTATUS WINAPI NtQuerySemaphore(HANDLE SemaphoreHandle,
67 PVOID SemaphoreInformationClass,
68 PVOID SemaphoreInformation,
69 ULONG Length,
70 PULONG ReturnLength)
71{
72 dprintf(("NTDLL: NtQuerySemaphore(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
73 SemaphoreHandle,
74 SemaphoreInformationClass,
75 SemaphoreInformation,
76 Length,
77 ReturnLength));
78
79 return 0;
80}
81
82
83/******************************************************************************
84 * NtReleaseSemaphore [NTDLL]
85 */
86NTSTATUS WINAPI NtReleaseSemaphore(HANDLE SemaphoreHandle,
87 ULONG ReleaseCount,
88 PULONG PreviousCount)
89{
90 dprintf(("NTDLL: NtReleaseSemaphore(%08xh,%08xh,%08xh) not implemented.\n",
91 SemaphoreHandle,
92 ReleaseCount,
93 PreviousCount));
94
95 return 0;
96}
97
98
99/*
100 * Event
101 */
102
103/**************************************************************************
104 * NtCreateEvent [NTDLL.71]
105 */
106NTSTATUS WINAPI NtCreateEvent(PHANDLE EventHandle,
107 ACCESS_MASK DesiredAccess,
108 const OBJECT_ATTRIBUTES * ObjectAttributes,
109 BOOLEAN ManualReset,
110 BOOLEAN InitialState)
111{
112 dprintf(("NTDLL: NtCreateEvent(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
113 EventHandle,
114 DesiredAccess,
115 ObjectAttributes,
116 ManualReset,
117 InitialState));
118
119 return 0;
120}
121
122
123/******************************************************************************
124 * NtOpenEvent [NTDLL]
125 */
126NTSTATUS WINAPI NtOpenEvent(PHANDLE EventHandle,
127 ACCESS_MASK DesiredAccess,
128 const OBJECT_ATTRIBUTES *ObjectAttributes)
129{
130 dprintf(("NTDLL: NtOpenEvent(%08xh,%08xh,%08xh) not implemented.\n",
131 EventHandle,
132 DesiredAccess,
133 ObjectAttributes));
134
135 return 0;
136}
137
138
139/******************************************************************************
140 * NtSetEvent [NTDLL]
141 */
142NTSTATUS WINAPI NtSetEvent(HANDLE EventHandle,
143 PULONG NumberOfThreadsReleased)
144{
145 dprintf(("NTDLL: NtSetEvent(%08xh,%08xh) not implemented.\n",
146 EventHandle,
147 NumberOfThreadsReleased));
148
149 return 0;
150}
151
152/**************************************************************************
153 * NtResetEvent [NTDLL.?]
154 */
155NTSTATUS WIN32API NtResetEvent(HANDLE hEvent, PULONG UnknownVariable)
156{
157 dprintf(("NTDLL: NtResetEvent(%08xh) not implemented.\n",
158 hEvent));
159
160 return 0;
161}
162
163/**************************************************************************
164 * NtClearEvent [NTDLL.?]
165 */
166NTSTATUS WIN32API NtClearEvent(HANDLE hEvent)
167{
168 dprintf(("NTDLL: NtClearEvent(%08xh) not implemented.\n",
169 hEvent));
170
171 return 0;
172}
173
174/**************************************************************************
175 * NtPulseEvent [NTDLL.?]
176 */
177NTSTATUS WIN32API NtPulseEvent(HANDLE hEvent,
178 PULONG PulseCount)
179{
180 dprintf(("NTDLL: NtPulseEvent(%08xh,%08xh) not implemented.\n",
181 hEvent,
182 PulseCount));
183
184 return 0;
185}
186
187/**************************************************************************
188 * NtQueryEvent [NTDLL.?]
189 */
190NTSTATUS WIN32API NtQueryEvent(HANDLE hEvent,
191 UINT EventInformationClass,
192 PVOID EventInformation,
193 ULONG EventInformationLength,
194 PULONG ReturnLength)
195{
196 dprintf(("NTDLL: NtQueryEvent() not implemented.\n"));
197
198 return 0;
199}
Note: See TracBrowser for help on using the repository browser.