resetting manifest requested domain to floor
[platform/upstream/db4.git] / os_brew / os_pid.c
1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2001-2009 Oracle.  All rights reserved.
5  *
6  * $Id$
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  */
17 void
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 }