git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1193
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
- * 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()
* 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);
-int gras_process_getpid(void) {
+int gras_os_getpid(void) {
-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());
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());