source: trunk/src/NTDLL/sync.cpp@ 1036

Last change on this file since 1036 was 557, checked in by phaller, 26 years ago

Add: lots of new stubs, crt functions and string functions

File size: 4.5 KB
Line 
1/* $Id: sync.cpp,v 1.3 1999-08-18 21:45:14 phaller 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 "ntdll.h"
14#include <stdlib.h>
15#include <string.h>
16#include <time.h>
17
18
19
20/*
21 * Semaphore
22 */
23
24/******************************************************************************
25 * NtCreateSemaphore [NTDLL]
26 */
27NTSTATUS WINAPI NtCreateSemaphore(PHANDLE SemaphoreHandle,
28 ACCESS_MASK DesiredAccess,
29 POBJECT_ATTRIBUTES ObjectAttributes,
30 ULONG InitialCount,
31 ULONG MaximumCount)
32{
33 dprintf(("NTDLL: NtCreateSemaphore(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
34 SemaphoreHandle,
35 DesiredAccess,
36 ObjectAttributes,
37 InitialCount,
38 MaximumCount));
39
40 return 0;
41}
42
43
44/******************************************************************************
45 * NtOpenSemaphore [NTDLL]
46 */
47NTSTATUS WINAPI NtOpenSemaphore(HANDLE SemaphoreHandle,
48 ACCESS_MASK DesiredAccess,
49 POBJECT_ATTRIBUTES ObjectAttributes)
50{
51 dprintf(("NTDLL: NtOpenSemaphore(%08xh,%08xh,%08xh) not implemented.\n",
52 SemaphoreHandle,
53 DesiredAccess,
54 ObjectAttributes));
55
56 return 0;
57}
58
59
60/******************************************************************************
61 * NtQuerySemaphore [NTDLL]
62 */
63NTSTATUS WINAPI NtQuerySemaphore(HANDLE SemaphoreHandle,
64 PVOID SemaphoreInformationClass,
65 PVOID SemaphoreInformation,
66 ULONG Length,
67 PULONG ReturnLength)
68{
69 dprintf(("NTDLL: NtQuerySemaphore(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
70 SemaphoreHandle,
71 SemaphoreInformationClass,
72 SemaphoreInformation,
73 Length,
74 ReturnLength));
75
76 return 0;
77}
78
79
80/******************************************************************************
81 * NtReleaseSemaphore [NTDLL]
82 */
83NTSTATUS WINAPI NtReleaseSemaphore(HANDLE SemaphoreHandle,
84 ULONG ReleaseCount,
85 PULONG PreviousCount)
86{
87 dprintf(("NTDLL: NtReleaseSemaphore(%08xh,%08xh,%08xh) not implemented.\n",
88 SemaphoreHandle,
89 ReleaseCount,
90 PreviousCount));
91
92 return 0;
93}
94
95
96/*
97 * Event
98 */
99
100/**************************************************************************
101 * NtCreateEvent [NTDLL.71]
102 */
103NTSTATUS WINAPI NtCreateEvent(PHANDLE EventHandle,
104 ACCESS_MASK DesiredAccess,
105 POBJECT_ATTRIBUTES ObjectAttributes,
106 BOOLEAN ManualReset,
107 BOOLEAN InitialState)
108{
109 dprintf(("NTDLL: NtCreateEvent(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
110 EventHandle,
111 DesiredAccess,
112 ObjectAttributes,
113 ManualReset,
114 InitialState));
115
116 return 0;
117}
118
119
120/******************************************************************************
121 * NtOpenEvent [NTDLL]
122 */
123NTSTATUS WINAPI NtOpenEvent(PHANDLE EventHandle,
124 ACCESS_MASK DesiredAccess,
125 POBJECT_ATTRIBUTES ObjectAttributes)
126{
127 dprintf(("NTDLL: NtOpenEvent(%08xh,%08xh,%08xh) not implemented.\n",
128 EventHandle,
129 DesiredAccess,
130 ObjectAttributes));
131
132 return 0;
133}
134
135
136/******************************************************************************
137 * NtSetEvent [NTDLL]
138 */
139NTSTATUS WINAPI NtSetEvent(HANDLE EventHandle,
140 PULONG NumberOfThreadsReleased)
141{
142 dprintf(("NTDLL: NtSetEvent(%08xh,%08xh) not implemented.\n",
143 EventHandle,
144 NumberOfThreadsReleased));
145
146 return 0;
147}
148
149/**************************************************************************
150 * NtResetEvent [NTDLL.?]
151 */
152NTSTATUS WIN32API NtResetEvent(HANDLE hEvent)
153{
154 dprintf(("NTDLL: NtResetEvent(%08xh) not implemented.\n",
155 hEvent));
156
157 return 0;
158}
159
Note: See TracBrowser for help on using the repository browser.