39 lines
1.5 KiB
C
39 lines
1.5 KiB
C
|
#ifndef h_plock
|
||
|
#define h_plock
|
||
|
/******************************************************************************
|
||
|
*
|
||
|
* Declarations for UniVerse Shared Memory Process Lock functions
|
||
|
*
|
||
|
* Module %M% Version %I% Date %H%
|
||
|
*
|
||
|
* (c) Copyright 1998 Ardent Software Inc. - All Rights Reserved
|
||
|
* This is unpublished proprietary source code of Ardent Software Inc.
|
||
|
* The copyright notice above does not evidence any actual or intented
|
||
|
* publication of such source code.
|
||
|
*
|
||
|
*******************************************************************************
|
||
|
*
|
||
|
* Maintenence log - insert most recent change descriptions at top
|
||
|
*
|
||
|
* Date.... GTAR# WHO Description.........................................
|
||
|
* 10/14/98 23801 SAP Change copyrights.
|
||
|
* 07/16/93 12406 GMM Put in change to allow multi uniVerses
|
||
|
* 08/24/89 6072 JWT tunable disk locking
|
||
|
* 07/25/88 - - Maintenence log purged at 5.2.1, see release 5.1.10.
|
||
|
*
|
||
|
*****************************************************************************/
|
||
|
|
||
|
#if defined(UV_MULTI_INSTALL)
|
||
|
extern int p_home_inode();
|
||
|
|
||
|
#define _PLCKKEY (0xaced0000 | p_home_inode()) /* Process lock semaphore unique key */
|
||
|
#define _PMEMKEY _PLCKKEY /* Process lock Shared Mem. Seg. Key */
|
||
|
#else
|
||
|
#define _PLCKKEY 0xacedffff /* Process lock semaphore unique key */
|
||
|
#define _PMEMKEY 0xacedffff /* Process lock Shared Mem. Seg. Key */
|
||
|
#endif
|
||
|
#define _PLCKNUM _PSEMNUM /* number of process lock semaphores */
|
||
|
#define PMsk 0666 /* Protection Mask */
|
||
|
|
||
|
#endif /* end of plock.h */
|