projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2009-06-09 Zoltan Varga <vargaz@gmail.com>
[mono.git]
/
mono
/
io-layer
/
wapi-private.h
diff --git
a/mono/io-layer/wapi-private.h
b/mono/io-layer/wapi-private.h
index 918c1d4ee312b6219cdcb736a06cbd5423cf5ddc..0c7899a3237982b0aa4a7409ed91e2c2242f1c5e 100644
(file)
--- a/
mono/io-layer/wapi-private.h
+++ b/
mono/io-layer/wapi-private.h
@@
-12,20
+12,15
@@
#include <config.h>
#include <glib.h>
#include <config.h>
#include <glib.h>
+#include <sys/stat.h>
#include <mono/io-layer/handles.h>
#include <mono/io-layer/io.h>
#include <mono/io-layer/handles.h>
#include <mono/io-layer/io.h>
-/* Catch this here rather than corrupt the shared data at runtime */
-#if MONO_SIZEOF_SUNPATH==0
-#error configure failed to discover size of unix socket path
-#endif
-
/* Increment this whenever an incompatible change is made to the
* shared handle structure.
*/
/* Increment this whenever an incompatible change is made to the
* shared handle structure.
*/
-/* Next time I change this, remember to fix the process count in shared.c */
-#define _WAPI_HANDLE_VERSION 10
+#define _WAPI_HANDLE_VERSION 12
typedef enum {
WAPI_HANDLE_UNUSED=0,
typedef enum {
WAPI_HANDLE_UNUSED=0,
@@
-48,7
+43,6
@@
typedef enum {
extern const char *_wapi_handle_typename[];
#define _WAPI_SHARED_HANDLE(type) (type == WAPI_HANDLE_PROCESS || \
extern const char *_wapi_handle_typename[];
#define _WAPI_SHARED_HANDLE(type) (type == WAPI_HANDLE_PROCESS || \
- type == WAPI_HANDLE_THREAD || \
type == WAPI_HANDLE_NAMEDMUTEX || \
type == WAPI_HANDLE_NAMEDSEM || \
type == WAPI_HANDLE_NAMEDEVENT)
type == WAPI_HANDLE_NAMEDMUTEX || \
type == WAPI_HANDLE_NAMEDSEM || \
type == WAPI_HANDLE_NAMEDEVENT)
@@
-123,7
+117,7
@@
struct _WapiHandle_shared_ref
guint32 offset;
};
guint32 offset;
};
-#define _WAPI_HANDLE_INITIAL_COUNT
409
6
+#define _WAPI_HANDLE_INITIAL_COUNT
25
6
struct _WapiHandleUnshared
{
struct _WapiHandleUnshared
{
@@
-141,6
+135,7
@@
struct _WapiHandleUnshared
struct _WapiHandle_mutex mutex;
struct _WapiHandle_sem sem;
struct _WapiHandle_socket sock;
struct _WapiHandle_mutex mutex;
struct _WapiHandle_sem sem;
struct _WapiHandle_socket sock;
+ struct _WapiHandle_thread thread;
struct _WapiHandle_shared_ref shared;
} u;
};
struct _WapiHandle_shared_ref shared;
} u;
};
@@
-154,7
+149,6
@@
struct _WapiHandleShared
union
{
union
{
- struct _WapiHandle_thread thread;
struct _WapiHandle_process process;
struct _WapiHandle_namedmutex namedmutex;
struct _WapiHandle_namedsem namedsem;
struct _WapiHandle_process process;
struct _WapiHandle_namedmutex namedmutex;
struct _WapiHandle_namedsem namedsem;
@@
-182,6
+176,9
@@
struct _WapiHandleSharedLayout
struct _WapiFileShare
{
struct _WapiFileShare
{
+#ifdef WAPI_FILE_SHARE_PLATFORM_EXTRA_DATA
+ WAPI_FILE_SHARE_PLATFORM_EXTRA_DATA
+#endif
dev_t device;
ino_t inode;
pid_t opened_by_pid;
dev_t device;
ino_t inode;
pid_t opened_by_pid;