2012-02-05 11:35:58 -05:00
|
|
|
/****************************************************************
|
|
|
|
* *
|
2012-10-29 18:54:31 -04:00
|
|
|
* Copyright 2001, 2012 Fidelity Information Services, Inc *
|
2012-02-05 11:35:58 -05:00
|
|
|
* *
|
|
|
|
* This source code contains the intellectual property *
|
|
|
|
* of its copyright holder(s), and is made available *
|
|
|
|
* under a license. If you do not know the terms of *
|
|
|
|
* the license, please stop and do not read further. *
|
|
|
|
* *
|
|
|
|
****************************************************************/
|
|
|
|
|
|
|
|
#include "mdef.h"
|
2012-10-29 18:54:31 -04:00
|
|
|
|
2012-02-05 11:35:58 -05:00
|
|
|
#include "gtm_unistd.h"
|
|
|
|
#include "getjobnum.h"
|
|
|
|
|
|
|
|
GBLREF uint4 process_id;
|
|
|
|
|
|
|
|
void getjobnum(void)
|
|
|
|
{
|
2012-10-29 18:54:31 -04:00
|
|
|
DCL_THREADGBL_ACCESS;
|
|
|
|
|
|
|
|
SETUP_THREADGBL_ACCESS;
|
2012-02-05 11:35:58 -05:00
|
|
|
process_id = getpid();
|
2012-10-29 18:54:31 -04:00
|
|
|
TREF(user_id) = (uint4)getuid();
|
2012-02-05 11:35:58 -05:00
|
|
|
}
|