X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fio-layer%2Fwapi-private.h;h=9be764c15218771e3bb46150829b67b85286ca1d;hb=79283363f0f551d2b2d435d09bbec69f0b643675;hp=ee961002d9eec7152e3741e77299836cab989d14;hpb=c7aa64ab0b17e20be74cdb573e76bf871691b170;p=mono.git diff --git a/mono/io-layer/wapi-private.h b/mono/io-layer/wapi-private.h index ee961002d9e..9be764c1521 100644 --- a/mono/io-layer/wapi-private.h +++ b/mono/io-layer/wapi-private.h @@ -16,7 +16,6 @@ #include #include -#include #include @@ -25,18 +24,9 @@ extern gboolean _wapi_has_shut_down; -typedef struct -{ - gchar name[MAX_PATH + 1]; -} WapiSharedNamespace; - -#include #include -#include -#include #include -#include -#include +#include struct _WapiHandle_shared_ref { @@ -46,13 +36,6 @@ struct _WapiHandle_shared_ref guint32 offset; }; -#define _WAPI_SHARED_SEM_NAMESPACE 0 -/*#define _WAPI_SHARED_SEM_COLLECTION 1*/ -#define _WAPI_SHARED_SEM_FILESHARE 2 -#define _WAPI_SHARED_SEM_PROCESS_COUNT_LOCK 6 -#define _WAPI_SHARED_SEM_PROCESS_COUNT 7 -#define _WAPI_SHARED_SEM_COUNT 8 /* Leave some future expansion space */ - struct _WapiFileShare { #ifdef WAPI_FILE_SHARE_PLATFORM_EXTRA_DATA @@ -69,18 +52,4 @@ struct _WapiFileShare typedef struct _WapiFileShare _WapiFileShare; -gpointer -_wapi_search_handle_namespace (MonoW32HandleType type, gchar *utf8_name); - -static inline int _wapi_namespace_lock (void) -{ - return(_wapi_shm_sem_lock (_WAPI_SHARED_SEM_NAMESPACE)); -} - -/* This signature makes it easier to use in pthread cleanup handlers */ -static inline int _wapi_namespace_unlock (gpointer data G_GNUC_UNUSED) -{ - return(_wapi_shm_sem_unlock (_WAPI_SHARED_SEM_NAMESPACE)); -} - #endif /* _WAPI_PRIVATE_H_ */