fis-gtm/sr_unix/gtm_ipc.h

40 lines
1.1 KiB
C
Raw Permalink Normal View History

/****************************************************************
* *
2024-07-19 11:43:27 -04:00
* Copyright 2001, 2012 Fidelity Information Serivces, 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. *
* *
****************************************************************/
/* 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
#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); \
}
key_t gtm_ftok(const char *path, int id);
#endif