1 | /* $Id: sync.cpp,v 1.2 1999-06-10 17:06:47 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 | */
|
---|
27 | NTSTATUS 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 | */
|
---|
47 | NTSTATUS 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 | */
|
---|
63 | NTSTATUS 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 | */
|
---|
83 | NTSTATUS 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 | */
|
---|
103 | NTSTATUS 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 | */
|
---|
123 | NTSTATUS 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 | */
|
---|
139 | NTSTATUS 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 |
|
---|