* Returns the process ID of the current process. (This is often used
by routines that generate unique temporary file names.)
*/
-int gras_os_getpid(void);
+long int gras_os_getpid(void);
/** @} */
SG_END_DECL()
else return "";
}
-int gras_os_getpid(void) {
- return getpid();
+long int gras_os_getpid(void) {
+ return (long int) getpid();
}
/* **************************************************************************
return "";
}
-int gras_os_getpid(void) {
+long 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());
+ return (long int)MSG_process_get_PID(MSG_process_self());
else
- return 0;
+ return (long int)0;
}
begin_of_time=gras_os_time();
if(strlen(xbt_procname()))
- sprintf(buffer,"%s:%s:(%d) %f", gras_os_myname(),
+ sprintf(buffer,"%s:%s:(%ld) %f", gras_os_myname(),
xbt_procname(),gras_os_getpid(),gras_os_time()-begin_of_time);
else
buffer[0]=0;