aboutsummaryrefslogtreecommitdiff
path: root/unix/os/zgtpid.c
blob: 91497308de614e6735c54b6f3df82c54e9aec26a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
 */

#include <stdio.h>
#define	import_kernel
#define	import_knames
#define import_spp
#include <iraf.h>

/* ZGTPID -- Get process id number (used for process control and to make
 * unique file names).
 */
int
ZGTPID (XINT *pid)
{
	*pid = (XINT) getpid();
	return (XOK);
}