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