[xbuild] ImportCollections.TryGetImport and other fixes
[mono.git] / mono / io-layer / process-private.h
index 35e090257ff8d13763132aa02d3eb5f8284dee50..bb1c69ae31db664bf10e1694b36d596221ce79e0 100644 (file)
 
 /* There doesn't seem to be a defined symbol for this */
 #define _WAPI_PROCESS_CURRENT (gpointer)0xFFFFFFFF
+
+/* This marks a system process that we don't have a handle on */
+/* FIXME: Cope with PIDs > sizeof guint */
+#define _WAPI_PROCESS_UNHANDLED (1 << (8*sizeof(pid_t)-1))
+#define _WAPI_PROCESS_UNHANDLED_PID_MASK (-1 & ~_WAPI_PROCESS_UNHANDLED)
+
 extern gpointer _wapi_process_duplicate (void);
 
 extern struct _WapiHandleOps _wapi_process_ops;
@@ -31,6 +37,7 @@ struct _WapiHandle_process
        gchar proc_name[_WAPI_PROC_NAME_MAX_LEN];
        size_t min_working_set;
        size_t max_working_set;
+       gboolean waited;
 };
 
 extern void _wapi_process_reap (void);