3333#include <stdint.h>
3434#include <stdlib.h>
3535#include <stdio.h>
36- #ifdef HAVE_SYS_EVENTFD_H
37- # include <sys/eventfd.h>
38- #endif
3936#ifdef HAVE_SYS_MMAN_H
4037# include <sys/mman.h>
4138#endif
5249#include "ntdll_misc.h"
5350#include "esync.h"
5451
55- #ifndef EFD_SEMAPHORE
56- #define EFD_SEMAPHORE 1
57- #endif
58-
5952WINE_DEFAULT_DEBUG_CHANNEL (esync );
6053
6154int do_esync (void )
@@ -116,7 +109,7 @@ static int shm_addrs_size; /* length of the allocated shm_addrs array */
116109static long pagesize ;
117110
118111static NTSTATUS create_esync ( enum esync_type type , HANDLE * handle ,
119- ACCESS_MASK access , const OBJECT_ATTRIBUTES * attr , int initval , int flags );
112+ ACCESS_MASK access , const OBJECT_ATTRIBUTES * attr , int initval );
120113
121114void esync_init (void )
122115{
@@ -128,7 +121,7 @@ void esync_init(void)
128121 HANDLE handle ;
129122 NTSTATUS ret ;
130123
131- ret = create_esync ( 0 , & handle , 0 , NULL , 0 , 0 );
124+ ret = create_esync ( 0 , & handle , 0 , NULL , 0 );
132125 if (ret != STATUS_NOT_IMPLEMENTED )
133126 {
134127 ERR ("Server is running with WINEESYNC but this process is not, please enable WINEESYNC or restart wineserver.\n" );
@@ -327,7 +320,7 @@ NTSTATUS esync_close( HANDLE handle )
327320}
328321
329322static NTSTATUS create_esync ( enum esync_type type , HANDLE * handle ,
330- ACCESS_MASK access , const OBJECT_ATTRIBUTES * attr , int initval , int flags )
323+ ACCESS_MASK access , const OBJECT_ATTRIBUTES * attr , int initval )
331324{
332325 NTSTATUS ret ;
333326 data_size_t len ;
@@ -346,7 +339,6 @@ static NTSTATUS create_esync( enum esync_type type, HANDLE *handle,
346339 {
347340 req -> access = access ;
348341 req -> initval = initval ;
349- req -> flags = flags ;
350342 req -> type = type ;
351343 wine_server_add_data ( req , objattr , len );
352344 ret = wine_server_call ( req );
@@ -438,7 +430,7 @@ NTSTATUS esync_create_semaphore(HANDLE *handle, ACCESS_MASK access,
438430 * before anyone else can open the object. */
439431 RtlEnterCriticalSection ( & shm_init_section );
440432
441- ret = create_esync ( ESYNC_SEMAPHORE , handle , access , attr , initial , EFD_SEMAPHORE );
433+ ret = create_esync ( ESYNC_SEMAPHORE , handle , access , attr , initial );
442434 if (!ret )
443435 {
444436 /* Initialize the shared memory portion.
@@ -539,7 +531,7 @@ NTSTATUS esync_create_event( HANDLE *handle, ACCESS_MASK access,
539531
540532 RtlEnterCriticalSection ( & shm_init_section );
541533
542- ret = create_esync ( type , handle , access , attr , initial , 0 );
534+ ret = create_esync ( type , handle , access , attr , initial );
543535
544536 if (!ret )
545537 {
@@ -755,7 +747,7 @@ NTSTATUS esync_create_mutex( HANDLE *handle, ACCESS_MASK access,
755747
756748 RtlEnterCriticalSection ( & shm_init_section );
757749
758- ret = create_esync ( ESYNC_MUTEX , handle , access , attr , initial ? 0 : 1 , 0 );
750+ ret = create_esync ( ESYNC_MUTEX , handle , access , attr , initial ? 0 : 1 );
759751 if (!ret )
760752 {
761753 /* Initialize the shared memory portion. */
0 commit comments