[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/engine int_proto.h,1.57,1.58 int_table.
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/engine int_proto.h,1.57,1.58 int_table.c,1.59,1.60 lib_task.c,1.4,1.5 |
Date: |
Fri, 11 Apr 2003 22:54:32 -0400 |
Update of /cvsroot/dotgnu-pnet/pnet/engine
In directory subversions:/tmp/cvs-serv3239/engine
Modified Files:
int_proto.h int_table.c lib_task.c
Log Message:
Stub out the internalcalls for "System.Diagnostics.Process".
Index: int_proto.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/int_proto.h,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -r1.57 -r1.58
*** int_proto.h 7 Apr 2003 01:29:43 -0000 1.57
--- int_proto.h 12 Apr 2003 02:54:30 -0000 1.58
***************
*** 551,554 ****
--- 551,567 ----
extern void _IL_CryptoMethods_StoreKey(ILExecThread * _thread, ILInt32 _p1,
ILString * _p2, System_Array * _p3);
+ extern ILInt32 _IL_Process_GetHandleCount(ILExecThread * _thread, ILNativeInt
_p1);
+ extern ILNativeInt _IL_Process_GetMainWindowHandle(ILExecThread * _thread,
ILNativeInt _p1);
+ extern ILString * _IL_Process_GetMainWindowTitle(ILExecThread * _thread,
ILNativeInt _p1);
+ extern ILInt32 _IL_Process_GetProcessorAffinity(ILExecThread * _thread,
ILNativeInt _p1);
+ extern ILBool _IL_Process_MainWindowIsResponding(ILExecThread * _thread,
ILNativeInt _p1);
+ extern void _IL_Process_CloseProcess(ILExecThread * _thread, ILNativeInt _p1,
ILInt32 _p2);
+ extern ILBool _IL_Process_CloseMainWindow(ILExecThread * _thread, ILNativeInt
_p1);
+ extern void _IL_Process_GetCurrentProcessInfo(ILExecThread * _thread, ILInt32
* processID, ILNativeInt * handle);
+ extern void _IL_Process_KillProcess(ILExecThread * _thread, ILNativeInt _p1,
ILInt32 _p2);
+ extern ILBool _IL_Process_StartProcess(ILExecThread * _thread, ILString *
_p1, ILString * _p2, System_Array * _p3, ILInt32 _p4, ILInt32 _p5, System_Array
* _p6, ILString * _p7, ILNativeInt _p8, ILNativeInt * processHandle, ILInt32 *
processID, ILNativeInt * stdinHandle, ILNativeInt * stdoutHandle, ILNativeInt *
stderrHandle);
+ extern ILBool _IL_Process_WaitForExit(ILExecThread * _thread, ILNativeInt
_p1, ILInt32 _p2, ILInt32 _p3, ILInt32 * exitCode);
+ extern ILBool _IL_Process_WaitForInputIdle(ILExecThread * _thread,
ILNativeInt _p1, ILInt32 _p2, ILInt32 _p3);
+
extern ILNativeInt _IL_SocketMethods_GetInvalidHandle(ILExecThread * _thread);
extern ILBool _IL_SocketMethods_Create(ILExecThread * _thread, ILInt32 _p1,
ILInt32 _p2, ILInt32 _p3, ILNativeInt * handle);
Index: int_table.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/int_table.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -C2 -r1.59 -r1.60
*** int_table.c 7 Apr 2003 01:29:43 -0000 1.59
--- int_table.c 12 Apr 2003 02:54:30 -0000 1.60
***************
*** 2521,2524 ****
--- 2521,2570 ----
#if !defined(HAVE_LIBFFI)
+ static void marshal_bppppiippjppppp(void (*fn)(), void *rvalue, void **avalue)
+ {
+ *((ILNativeInt *)rvalue) = (*(ILInt8 (*)(void *, void *, void *, void
*, ILInt32, ILInt32, void *, void *, ILNativeUInt, void *, void *, void *, void
*, void *))fn)(*((void * *)(avalue[0])), *((void * *)(avalue[1])), *((void *
*)(avalue[2])), *((void * *)(avalue[3])), *((ILInt32 *)(avalue[4])), *((ILInt32
*)(avalue[5])), *((void * *)(avalue[6])), *((void * *)(avalue[7])),
*((ILNativeUInt *)(avalue[8])), *((void * *)(avalue[9])), *((void *
*)(avalue[10])), *((void * *)(avalue[11])), *((void * *)(avalue[12])), *((void
* *)(avalue[13])));
+ }
+
+ #endif
+
+ #if !defined(HAVE_LIBFFI)
+
+ static void marshal_bpjiip(void (*fn)(), void *rvalue, void **avalue)
+ {
+ *((ILNativeInt *)rvalue) = (*(ILInt8 (*)(void *, ILNativeUInt, ILInt32,
ILInt32, void *))fn)(*((void * *)(avalue[0])), *((ILNativeUInt *)(avalue[1])),
*((ILInt32 *)(avalue[2])), *((ILInt32 *)(avalue[3])), *((void * *)(avalue[4])));
+ }
+
+ #endif
+
+ #if !defined(HAVE_LIBFFI)
+
+ static void marshal_bpjii(void (*fn)(), void *rvalue, void **avalue)
+ {
+ *((ILNativeInt *)rvalue) = (*(ILInt8 (*)(void *, ILNativeUInt, ILInt32,
ILInt32))fn)(*((void * *)(avalue[0])), *((ILNativeUInt *)(avalue[1])),
*((ILInt32 *)(avalue[2])), *((ILInt32 *)(avalue[3])));
+ }
+
+ #endif
+
+ #ifndef _IL_Process_suppressed
+
+ IL_METHOD_BEGIN(Process_Methods)
+ IL_METHOD("GetHandleCount", "(j)i", _IL_Process_GetHandleCount,
marshal_ipj)
+ IL_METHOD("GetMainWindowHandle", "(j)j",
_IL_Process_GetMainWindowHandle, marshal_jpj)
+ IL_METHOD("GetMainWindowTitle", "(j)oSystem.String;",
_IL_Process_GetMainWindowTitle, marshal_ppj)
+ IL_METHOD("GetProcessorAffinity", "(j)i",
_IL_Process_GetProcessorAffinity, marshal_ipj)
+ IL_METHOD("MainWindowIsResponding", "(j)Z",
_IL_Process_MainWindowIsResponding, marshal_bpj)
+ IL_METHOD("CloseProcess", "(ji)V", _IL_Process_CloseProcess,
marshal_vpji)
+ IL_METHOD("CloseMainWindow", "(j)Z", _IL_Process_CloseMainWindow,
marshal_bpj)
+ IL_METHOD("GetCurrentProcessInfo", "(&i&j)V",
_IL_Process_GetCurrentProcessInfo, marshal_vppp)
+ IL_METHOD("KillProcess", "(ji)V", _IL_Process_KillProcess, marshal_vpji)
+ IL_METHOD("StartProcess",
"(oSystem.String;oSystem.String;[oSystem.String;ii[oSystem.String;oSystem.String;j&j&i&j&j&j)Z",
_IL_Process_StartProcess, marshal_bppppiippjppppp)
+ IL_METHOD("WaitForExit", "(jii&i)Z", _IL_Process_WaitForExit,
marshal_bpjiip)
+ IL_METHOD("WaitForInputIdle", "(jii)Z", _IL_Process_WaitForInputIdle,
marshal_bpjii)
+ IL_METHOD_END
+
+ #endif
+
+ #if !defined(HAVE_LIBFFI)
+
static void marshal_bpiiip(void (*fn)(), void *rvalue, void **avalue)
{
***************
*** 2611,2623 ****
#if !defined(HAVE_LIBFFI)
- static void marshal_bpjiip(void (*fn)(), void *rvalue, void **avalue)
- {
- *((ILNativeInt *)rvalue) = (*(ILInt8 (*)(void *, ILNativeUInt, ILInt32,
ILInt32, void *))fn)(*((void * *)(avalue[0])), *((ILNativeUInt *)(avalue[1])),
*((ILInt32 *)(avalue[2])), *((ILInt32 *)(avalue[3])), *((void * *)(avalue[4])));
- }
-
- #endif
-
- #if !defined(HAVE_LIBFFI)
-
static void marshal_bpjbi(void (*fn)(), void *rvalue, void **avalue)
{
--- 2657,2660 ----
***************
*** 2883,2886 ****
--- 2920,2926 ----
#ifndef _IL_ParameterBuilder_suppressed
{"ParameterBuilder", "System.Reflection.Emit",
ParameterBuilder_Methods},
+ #endif
+ #ifndef _IL_Process_suppressed
+ {"Process", "System.Diagnostics", Process_Methods},
#endif
#ifndef _IL_PropertyBuilder_suppressed
Index: lib_task.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/lib_task.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** lib_task.c 28 Nov 2002 22:56:54 -0000 1.4
--- lib_task.c 12 Apr 2003 02:54:30 -0000 1.5
***************
*** 143,146 ****
--- 143,293 ----
}
+ /*
+ * private static int GetHandleCount(IntPtr processHandle);
+ */
+ ILInt32 _IL_Process_GetHandleCount(ILExecThread *_thread,
+ ILNativeInt
processHandle)
+ {
+ /* TODO */
+ return -1;
+ }
+
+ /*
+ * private static IntPtr GetMainWindowHandle(IntPtr processHandle);
+ */
+ ILNativeInt _IL_Process_GetMainWindowHandle(ILExecThread *_thread,
+
ILNativeInt processHandle)
+ {
+ /* TODO */
+ return 0;
+ }
+
+ /*
+ * private static String GetMainWindowTitle(IntPtr windowHandle);
+ */
+ ILString *_IL_Process_GetMainWindowTitle(ILExecThread * _thread,
+
ILNativeInt windowHandle)
+ {
+ /* TODO */
+ return 0;
+ }
+
+ /*
+ * private static int GetProcessorAffinity(IntPtr processHandle);
+ */
+ ILInt32 _IL_Process_GetProcessorAffinity(ILExecThread *_thread,
+
ILNativeInt processHandle)
+ {
+ /* TODO */
+ return 1;
+ }
+
+ /*
+ * private static bool MainWindowIsResponding(IntPtr windowHandle);
+ */
+ ILBool _IL_Process_MainWindowIsResponding(ILExecThread *_thread,
+
ILNativeInt windowHandle)
+ {
+ /* TODO */
+ return 1;
+ }
+
+ /*
+ * private static void CloseProcess(IntPtr processHandle, int processID);
+ */
+ void _IL_Process_CloseProcess(ILExecThread *_thread,
+ ILNativeInt
processHandle,
+ ILInt32 processID)
+ {
+ /* TODO */
+ }
+
+ /*
+ * private static bool CloseMainWindow(IntPtr windowHandle);
+ */
+ ILBool _IL_Process_CloseMainWindow(ILExecThread * _thread,
+ ILNativeInt
windowHandle)
+ {
+ /* TODO */
+ return 0;
+ }
+
+ /*
+ * private static void GetCurrentProcessInfo(out int processID,
+ *
out IntPtr handle);
+ */
+ void _IL_Process_GetCurrentProcessInfo(ILExecThread *_thread,
+
ILInt32 *processID,
+
ILNativeInt *handle)
+ {
+ *processID = 0;
+ *handle = 0;
+ }
+
+ /*
+ * private static void KillProcess(IntPtr processHandle, int processID);
+ */
+ void _IL_Process_KillProcess(ILExecThread *_thread,
+ ILNativeInt
processHandle, ILInt32 processID)
+ {
+ /* TODO */
+ }
+
+ /*
+ * private static bool StartProcess(String filename, String arguments,
+ *
String[] argv, int flags,
+ * int
windowStyle, String[] envVars,
+ * String
verb, IntPtr errorDialogParent,
+ * out
IntPtr processHandle,
+ * out int
processID,
+ * out
IntPtr stdinHandle,
+ * out
IntPtr stdoutHandle,
+ * out
IntPtr stderrHandle);
+ */
+ ILBool _IL_Process_StartProcess(ILExecThread *_thread,
+ ILString
*filename,
+ ILString
*arguments,
+ System_Array
*argv,
+ ILInt32 flags,
+ ILInt32
windowStyle,
+ System_Array
*envVars,
+ ILString *verb,
+ ILNativeInt
errorDialogParent,
+ ILNativeInt
*processHandle,
+ ILInt32
*processID,
+ ILNativeInt
*stdinHandle,
+ ILNativeInt
*stdoutHandle,
+ ILNativeInt
*stderrHandle)
+ {
+ /* TODO */
+ return 0;
+ }
+
+ /*
+ * private static bool WaitForExit(IntPtr processHandle, int processID,
+ * int
milliseconds, out int exitCode);
+ */
+ ILBool _IL_Process_WaitForExit(ILExecThread *_thread,
+ ILNativeInt
processHandle,
+ ILInt32 processID,
ILInt32 milliseconds,
+ ILInt32 *exitCode)
+ {
+ /* TODO */
+ return 0;
+ }
+
+ /*
+ * private static bool WaitForInputIdle(IntPtr processHandle,
+ *
int processID, int milliseconds);
+ */
+ ILBool _IL_Process_WaitForInputIdle(ILExecThread *_thread,
+
ILNativeInt processHandle,
+ ILInt32
processID,
+ ILInt32
milliseconds)
+ {
+ /* TODO */
+ return 0;
+ }
+
#ifdef __cplusplus
};
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/engine int_proto.h,1.57,1.58 int_table.c,1.59,1.60 lib_task.c,1.4,1.5,
Rhys Weatherley <address@hidden> <=