[jit] Support decomposition of long imm ops to simple long ops
[mono.git] / mono / io-layer / process-private.h
index a70f6586c12c034a07f12ba244ae988b298558a6..ddd6e863f36623426672ab8244c2fdf9f7ae216b 100644 (file)
@@ -13,6 +13,8 @@
 #include <config.h>
 #include <glib.h>
 
+#include <mono/utils/mono-os-semaphore.h>
+
 /* There doesn't seem to be a defined symbol for this */
 #define _WAPI_PROCESS_CURRENT (gpointer)0xFFFFFFFF
 
@@ -34,8 +36,6 @@ extern void wapi_processes_cleanup (void);
 
 extern struct _WapiHandleOps _wapi_process_ops;
 
-#define _WAPI_PROC_NAME_MAX_LEN _POSIX_PATH_MAX
-
 /*
  * MonoProcess describes processes we create.
  * It contains a semaphore that can be waited on in order to wait
@@ -50,18 +50,17 @@ struct MonoProcess {
        gint32 handle_count; /* the number of handles to this mono_process instance */
        /* we keep a ref to the creating _WapiHandle_process handle until
         * the process has exited, so that the information there isn't lost.
-        * If we put the information there in this structure, it won't be
-        * available to other processes when using shared handles. */
+        */
        gpointer handle;
+       gboolean freeable;
        struct MonoProcess *next;
 };
 
+typedef struct MonoProcess MonoProcess;
 
 /*
  * _WapiHandle_process is a structure containing all the required information
  * for process handling.
- * The mono_process field is only present if this process has created
- * the corresponding process.
  */
 struct _WapiHandle_process
 {
@@ -70,11 +69,10 @@ struct _WapiHandle_process
        gpointer main_thread;
        WapiFileTime create_time;
        WapiFileTime exit_time;
-       gchar proc_name[_WAPI_PROC_NAME_MAX_LEN];
+       char *proc_name;
        size_t min_working_set;
        size_t max_working_set;
        gboolean exited;
-       pid_t self; /* mono_process is shared among processes, but only usable in the process that created it */
        struct MonoProcess *mono_process;
 };