Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
s/gras_process_getpid/gras_os_getpid/
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 30 Mar 2005 16:31:28 +0000 (16:31 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 30 Mar 2005 16:31:28 +0000 (16:31 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1193 48e7efb5-ca39-0410-a469-dd3cf9ba447f

ChangeLog
include/gras/virtu.h
src/gras/Virtu/rl_process.c
src/gras/Virtu/sg_process.c
src/xbt/log_default_appender.c

index 6242d84..936539d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -20,7 +20,7 @@ DONE
 ----
   [Arnaud]
   (gras)
 ----
   [Arnaud]
   (gras)
-  * Add a gras_process_getpid function.
+  * Add a gras_os_getpid function.
 
   (msg)
   * Add MSG_task_get_compute_duration() and MSG_task_get_data_size()
 
   (msg)
   * Add MSG_task_get_compute_duration() and MSG_task_get_data_size()
index 6b3b7f6..aab294e 100644 (file)
@@ -44,7 +44,7 @@ gras_os_myname(void);
  * Returns the process ID of the current process.  (This is often used
    by routines that generate unique temporary file names.)
  */
  * Returns the process ID of the current process.  (This is often used
    by routines that generate unique temporary file names.)
  */
-int gras_process_getpid(void);
+int gras_os_getpid(void);
 
 /** @} */
 END_DECL()
 
 /** @} */
 END_DECL()
index 67933cd..b6e53a9 100644 (file)
@@ -34,7 +34,7 @@ const char *xbt_procname(void) {
   else return "(null)";
 }
 
   else return "(null)";
 }
 
-int gras_process_getpid(void) {
+int gras_os_getpid(void) {
   return getpid();
 }
 
   return getpid();
 }
 
index 4f78a49..018225f 100644 (file)
@@ -135,7 +135,7 @@ const char* xbt_procname(void) {
     return "";
 }
 
     return "";
 }
 
-int gras_process_getpid(void) {
+int gras_os_getpid(void) {
   m_process_t process = MSG_process_self();
   if ((process != NULL) && (process->simdata))
     return MSG_process_get_PID(MSG_process_self());
   m_process_t process = MSG_process_self();
   if ((process != NULL) && (process->simdata))
     return MSG_process_get_PID(MSG_process_self());
index 4219f92..cfe919c 100644 (file)
@@ -41,7 +41,7 @@ static const char* xbt_logappender_verbose_information(void) {
 
   if(strlen(gras_os_myname()))
     sprintf(buffer,"%s:%s:(%d) %g", gras_os_myname(),
 
   if(strlen(gras_os_myname()))
     sprintf(buffer,"%s:%s:(%d) %g", gras_os_myname(),
-           xbt_procname(),gras_process_getpid(),gras_os_time());
+           xbt_procname(),gras_os_getpid(),gras_os_time());
   else 
     buffer[0]=0;
   
   else 
     buffer[0]=0;