1/*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 2001,2008 Oracle.  All rights reserved.
5 *
6 * $Id: os_pid.c,v 1.8 2008/01/08 20:58:44 bostic Exp $
7 */
8
9#include "db_config.h"
10
11#include "db_int.h"
12
13/*
14 * __os_id --
15 *	Return the current process ID.
16 */
17void
18__os_id(dbenv, pidp, tidp)
19	DB_ENV *dbenv;
20	pid_t *pidp;
21	db_threadid_t *tidp;
22{
23	AEEApplet *app;
24
25	COMPQUIET(dbenv, NULL);
26
27	if (pidp != NULL) {
28		app = (AEEApplet *)GETAPPINSTANCE();
29		*pidp = (pid_t)ISHELL_ActiveApplet(app->m_pIShell);
30	}
31	if (tidp != NULL)
32		*tidp = 0;
33}
34