# Patch created by ioman # Date: Mi Mär 2 09:55:26 CET 2005 # Repository: pnet # Comments: # # # Added functions _IL_Process_GetErrnoMessage _IL_Process_GetErrno to get the result of forked processes. # #### End of Preamble #### #### Patch data follows #### Index: engine/lib_task.c =================================================================== RCS file: /cvsroot/dotgnu-pnet/pnet/engine/lib_task.c,v retrieving revision 1.11 diff -c -r1.11 lib_task.c *** engine/lib_task.c 1 Nov 2003 03:04:03 -0000 1.11 --- engine/lib_task.c 2 Mar 2005 08:55:30 -0000 *************** *** 911,916 **** --- 911,940 ---- return 1; #endif } + /* + * public static Errno GetErrno(); + */ + ILInt32 _IL_Process_GetErrno(ILExecThread *thread) + { + return ILSysIOGetErrno(); + } + + /* + * public static String GetErrnoMessage(Errno error); + */ + ILString *_IL_Process_GetErrnoMessage(ILExecThread *thread, ILInt32 error) + { + const char *msg = ILSysIOGetErrnoMessage(error); + if(msg) + { + return ILStringCreate(thread, msg); + } + else + { + return 0; + } + } + #ifdef __cplusplus }; #### End of Patch data ####