2001-05-23 15:26:42 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: JRD Access Method
|
|
|
|
* MODULE: isc_s_proto.h
|
2003-10-29 11:53:47 +01:00
|
|
|
* DESCRIPTION: Prototype header file for isc_sync.cpp
|
2001-05-23 15:26:42 +02:00
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Interbase Public
|
|
|
|
* License Version 1.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy
|
|
|
|
* of the License at http://www.Inprise.com/IPL.html
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an
|
|
|
|
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
|
|
|
|
* or implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
|
|
|
*
|
|
|
|
* The Original Code was created by Inprise Corporation
|
|
|
|
* and its predecessors. Portions created by Inprise Corporation are
|
|
|
|
* Copyright (C) Inprise Corporation.
|
|
|
|
*
|
|
|
|
* All Rights Reserved.
|
|
|
|
* Contributor(s): ______________________________________.
|
2002-10-30 07:40:58 +01:00
|
|
|
*
|
|
|
|
* 2002.10.29 Sean Leyne - Removed obsolete "Netware" port
|
|
|
|
*
|
2002-10-31 06:06:02 +01:00
|
|
|
* 2002.10.30 Sean Leyne - Removed support for obsolete "PC_PLATFORM" define
|
|
|
|
*
|
2001-05-23 15:26:42 +02:00
|
|
|
*/
|
|
|
|
|
2003-10-03 03:53:34 +02:00
|
|
|
#ifndef JRD_ISC_S_PROTO_H
|
|
|
|
#define JRD_ISC_S_PROTO_H
|
2001-05-23 15:26:42 +02:00
|
|
|
|
|
|
|
#include "../jrd/isc.h"
|
|
|
|
|
2003-10-03 03:53:34 +02:00
|
|
|
BOOLEAN ISC_check_restart(void);
|
2004-01-03 11:59:52 +01:00
|
|
|
int ISC_event_blocked(USHORT, struct event_t **, SLONG *);
|
|
|
|
SLONG ISC_event_clear(struct event_t *);
|
|
|
|
void ISC_event_fini(struct event_t *);
|
|
|
|
int ISC_event_init(struct event_t *, int, int);
|
2002-10-30 07:40:58 +01:00
|
|
|
|
2001-05-23 15:26:42 +02:00
|
|
|
#if defined(WIN_NT)
|
2004-01-03 11:59:52 +01:00
|
|
|
int ISC_event_init_shared(struct event_t*, int, const TEXT*, struct event_t*, bool);
|
2001-05-23 15:26:42 +02:00
|
|
|
#endif
|
2004-01-03 11:59:52 +01:00
|
|
|
int ISC_event_post(struct event_t *);
|
|
|
|
int ISC_event_wait(SSHORT, struct event_t **, SLONG *, SLONG, FPTR_VOID_PTR, void *);
|
2001-05-23 15:26:42 +02:00
|
|
|
|
|
|
|
#ifdef WIN_NT
|
2004-02-20 07:43:27 +01:00
|
|
|
void* ISC_make_signal(bool, bool, int, int);
|
2001-05-23 15:26:42 +02:00
|
|
|
#endif /* WIN_NT */
|
|
|
|
|
2003-11-28 07:48:34 +01:00
|
|
|
typedef void (*FPTR_INIT_GLOBAL_REGION)(void*, struct sh_mem*, bool);
|
|
|
|
UCHAR* ISC_map_file(ISC_STATUS*, const TEXT*, FPTR_INIT_GLOBAL_REGION,
|
|
|
|
void*, SLONG, struct sh_mem*);
|
2001-05-23 15:26:42 +02:00
|
|
|
#if defined(WIN_NT)
|
2003-11-28 07:48:34 +01:00
|
|
|
int ISC_mutex_init(struct mtx*, const TEXT*);
|
2001-05-23 15:26:42 +02:00
|
|
|
#else
|
2003-11-28 07:48:34 +01:00
|
|
|
int ISC_mutex_init(struct mtx*, SLONG);
|
2001-05-23 15:26:42 +02:00
|
|
|
#endif
|
|
|
|
|
2003-10-03 03:53:34 +02:00
|
|
|
int ISC_mutex_lock(struct mtx *);
|
|
|
|
int ISC_mutex_lock_cond(struct mtx *);
|
|
|
|
int ISC_mutex_unlock(struct mtx *);
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2002-08-26 14:10:19 +02:00
|
|
|
#ifdef HAVE_MMAP
|
2003-10-03 03:53:34 +02:00
|
|
|
UCHAR* ISC_map_object(ISC_STATUS *, SH_MEM, SLONG, SLONG);
|
|
|
|
BOOLEAN ISC_unmap_object(ISC_STATUS *, SH_MEM, UCHAR **, SLONG);
|
2001-07-12 07:46:06 +02:00
|
|
|
#endif
|
|
|
|
|
2001-05-23 15:26:42 +02:00
|
|
|
#ifdef SUPERSERVER
|
|
|
|
#ifdef UNIX
|
2004-02-20 07:43:27 +01:00
|
|
|
void ISC_exception_post(ULONG, const TEXT*);
|
2003-10-03 03:53:34 +02:00
|
|
|
void ISC_sync_signals_set(void);
|
|
|
|
void ISC_sync_signals_reset(void);
|
2001-05-23 15:26:42 +02:00
|
|
|
#endif /* UNIX */
|
|
|
|
|
|
|
|
#ifdef WIN_NT
|
2004-02-20 07:43:27 +01:00
|
|
|
ULONG ISC_exception_post(ULONG, const TEXT*);
|
2001-05-23 15:26:42 +02:00
|
|
|
#endif /* WIN_NT */
|
|
|
|
|
|
|
|
#endif /* SUPERSERVER */
|
|
|
|
|
2004-02-20 07:43:27 +01:00
|
|
|
UCHAR* ISC_remap_file(ISC_STATUS *, struct sh_mem *, SLONG, bool);
|
2003-10-03 03:53:34 +02:00
|
|
|
void ISC_reset_timer(FPTR_VOID_PTR, void *, SLONG *, void **);
|
|
|
|
void ISC_set_timer(SLONG, FPTR_VOID_PTR, void *, SLONG *, void **);
|
|
|
|
void ISC_unmap_file(ISC_STATUS *, struct sh_mem *, USHORT);
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2003-10-03 03:53:34 +02:00
|
|
|
#endif // JRD_ISC_S_PROTO_H
|
2004-02-20 07:43:27 +01:00
|
|
|
|