2005-09-26 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mono / io-layer / shared.h
index 55ac5d575a64d6646cfce8e518b9caa1ba3fd04e..af31fe1d9085d857c74d08808e24882c066b06fc 100644 (file)
 
 #include <mono/io-layer/wapi-private.h>
 
-struct _WapiScratchHeader 
-{
-       /* These two can be merged */
-       guint32 flags;
-       guint32 length;
-};
-
-enum {
-       WAPI_SHM_SCRATCH_FREE=0x1
-};
-
 typedef enum {
        WAPI_SHM_DATA,
-       WAPI_SHM_SCRATCH
+       WAPI_SHM_FILESHARE
 } _wapi_shm_t;
 
-extern guchar *_wapi_shm_file (_wapi_shm_t type, guint32 segment);
-extern gpointer _wapi_shm_file_map (_wapi_shm_t type, guint32 segment,
-                                   gboolean *created, off_t *size);
-extern gpointer _wapi_shm_file_expand (gpointer mem, _wapi_shm_t type,
-                                      guint32 segment, guint32 old_len,
-                                      guint32 new_len);
-extern gboolean _wapi_shm_attach (struct _WapiHandleShared_list **data,
-                                 struct _WapiHandleScratch **scratch);
-extern void _wapi_shm_destroy (void);
+extern gpointer _wapi_shm_attach (_wapi_shm_t type);
+extern void _wapi_shm_semaphores_init (void);
+extern int _wapi_shm_sem_lock (int sem);
+extern int _wapi_shm_sem_trylock (int sem);
+extern int _wapi_shm_sem_unlock (int sem);
 
 #endif /* _WAPI_SHARED_H_ */