1 /*
2 		    Language Independent Library
3 
4 	    Copyright 1983-2000 Green Hills Software,Inc.
5 
6  *  This program is the property of Green Hills Software, Inc,
7  *  its contents are proprietary information and no part of it
8  *  is to be disclosed to anyone except employees of Green Hills
9  *  Software, Inc., or as agreed in writing signed by the President
10  *  of Green Hills Software, Inc.
11 */
12 
13 #include "ind_io.h"
14 
15 /******************************************************************************/
16 /*  int getpid (void);							      */
17 /*  On unix, getpid returns the current process number.  The library mktemp() */
18 /*  facility uses it to add uniqueness to its generated filenames.	      */
19 /******************************************************************************/
20 #if defined(__OSE)
21 #include "ose.h"
22 
getpid(void)23 int getpid (void)
24 {
25     return current_process();
26 }
27 
28 
29 #else /* !__OSE */
getpid(void)30 int getpid (void)
31 {
32     return 17;
33 }
34 #endif /* __OSE */
35