2012-02-05 11:35:58 -05:00
|
|
|
/****************************************************************
|
|
|
|
* *
|
2024-07-19 11:43:27 -04:00
|
|
|
* Copyright 2001, 2012 Fidelity Information Serivces, 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. *
|
|
|
|
* *
|
|
|
|
****************************************************************/
|
|
|
|
|
|
|
|
/* gtm_ipc.h - interlude to <ipc.h> system header file. */
|
|
|
|
#ifndef GTM_IPCH
|
|
|
|
#define GTM_IPCH
|
|
|
|
|
|
|
|
#include <sys/ipc.h>
|
|
|
|
|
|
|
|
#ifdef __MVS__
|
|
|
|
/* For shmget with __IPC_MEGA or _LP64 */
|
|
|
|
#define MEGA_BOUND (1024 * 1024)
|
|
|
|
#endif
|
|
|
|
|
2024-07-19 11:43:27 -04:00
|
|
|
#define FTOK gtm_ftok
|
2012-03-24 14:06:46 -04:00
|
|
|
#define FTOK_OLD ftok
|
|
|
|
|
2024-07-19 11:43:27 -04:00
|
|
|
#define JNLPOOL_SHMDT(RC, SAVE_ERRNO) \
|
|
|
|
{ \
|
|
|
|
SAVE_ERRNO = 0; /* clear any left-over value */ \
|
|
|
|
assert(NULL != jnlpool_ctl); \
|
|
|
|
DEFER_INTERRUPTS(INTRPT_IN_SHMDT); \
|
|
|
|
RC = SHMDT(jnlpool.jnlpool_ctl); \
|
|
|
|
SAVE_ERRNO = errno; \
|
|
|
|
jnlpool_ctl = jnlpool.jnlpool_ctl = NULL; \
|
|
|
|
ENABLE_INTERRUPTS(INTRPT_IN_SHMDT); \
|
|
|
|
}
|
|
|
|
|
2012-03-24 14:06:46 -04:00
|
|
|
key_t gtm_ftok(const char *path, int id);
|
2012-02-05 11:35:58 -05:00
|
|
|
|
|
|
|
#endif
|