fis-gtm/sr_unix/getjobnum.c

27 lines
678 B
C
Raw Normal View History

/****************************************************************
* *
2024-07-19 11:43:27 -04:00
* Copyright 2001, 2012 Fidelity Information Services, Inc *
* *
* 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"
2024-07-19 11:43:27 -04:00
#include "gtm_unistd.h"
#include "getjobnum.h"
GBLREF uint4 process_id;
void getjobnum(void)
{
2024-07-19 11:43:27 -04:00
DCL_THREADGBL_ACCESS;
SETUP_THREADGBL_ACCESS;
process_id = getpid();
2024-07-19 11:43:27 -04:00
TREF(user_id) = (uint4)getuid();
}