git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2140
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
* 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_os_getpid(void);
+long int gras_os_getpid(void);
-int gras_os_getpid(void) {
- return getpid();
+long int gras_os_getpid(void) {
+ return (long int) getpid();
}
/* **************************************************************************
}
/* **************************************************************************
-int gras_os_getpid(void) {
+long int gras_os_getpid(void) {
m_process_t process = MSG_process_self();
if ((process != NULL) && (process->simdata))
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());
begin_of_time=gras_os_time();
if(strlen(xbt_procname()))
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;
xbt_procname(),gras_os_getpid(),gras_os_time()-begin_of_time);
else
buffer[0]=0;