Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Define xbt_os_procname().
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 22 Nov 2012 15:46:09 +0000 (16:46 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 22 Nov 2012 15:51:54 +0000 (16:51 +0100)
src/xbt/xbt_virtu.c

index e0b9ab6..efe333d 100644 (file)
@@ -11,6 +11,8 @@
 #include "xbt/function_types.h"
 #include "simgrid/simix.h"
 
+char *xbt_os_procname_data = NULL;
+
 static int xbt_fake_pid(void)
 {
   return 0;
@@ -40,3 +42,7 @@ const char *xbt_procname(void)
   return SIMIX_process_self_get_name();
 }
 
+const char *xbt_os_procname(void)
+{
+  return xbt_os_procname_data;
+}