psmile_pids.c File Reference

#include <sys/types.h>
#include <unistd.h>
Include dependency graph for psmile_pids.c:

Go to the source code of this file.

Functions/Subroutines

void psmile_pids_ (int *mypid, int *myppid)

Function Documentation

void psmile_pids_ ( int *  mypid,
int *  myppid 
)

Definition at line 16 of file psmile_pids.c.

00019              :
00020  
00021    sys/types.h
00022    unistd.h
00023  
00024   !DESCRIPTION:
00025  
00026     C routine to get current process pid and current process parent's pid
00027  
00028   !REVISION HISTORY:
00029  
00030     Date      Programmer   Description
00031   ----------  ----------   -----------
00032   02.06.09    J. Latour    created
00033 
00034 //EOP
00035 
00036  ----------------------------------------------------------------------
00037   $Id: psmile_pids.c                                  latour $
00038   $Author: latour $
00039  ---------------------------------------------------------------------- */
00040 
00041   int *mypid;
00042   int *myppid;
00043 {
00044 
00045   pid_t locpid;
00046   pid_t locppid;
00047 
00048   locpid=getpid();
00049   locppid=getppid();
00050 
00051   *mypid = (int)locpid;
00052   *myppid = (int)locppid;
00053 }


Generated on 18 Mar 2011 for Oasis4 by  doxygen 1.6.1