8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-31 06:43:02 +01:00
firebird-mirror/src/jrd/isc_proto.h
alexpeshkoff e79f55708d 1. Cleanup - use Firebird::Semaphore instead of local events, removed code
related with local events from isc_sync.cpp.

2. Cleanup - removed unused parameter 'number of events' from ISC_event_wait()
and two unused parameters from ISC_event_init().

3. Added SYSV-semaphore based implementation of IPC to isc_sync.cpp.
This should fix CORE-2102: Firebird 2.5 does not build on MacOS (Darwin).

4. Fixed use of posic CS without (x)inetd (i.e. fb_inet_server -s).

5. Fixed (to be reviewed by Dmitry) recovery after some process death in lock manager.
2008-10-10 15:58:05 +00:00

46 lines
1.5 KiB
C

/*
* PROGRAM: JRD Access Method
* MODULE: isc_proto.h
* DESCRIPTION: Prototype header file for isc.cpp
*
* 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): ______________________________________.
*/
#ifndef JRD_ISC_PROTO_H
#define JRD_ISC_PROTO_H
#include "../common/classes/fb_string.h"
bool ISC_check_process_existence(SLONG);
TEXT* ISC_get_host(TEXT *, USHORT);
const TEXT* ISC_get_host(Firebird::string&);
bool ISC_get_user(Firebird::string*, int*, int*, const TEXT*);
SLONG ISC_get_user_group_id(const TEXT*);
SLONG ISC_set_prefix(const TEXT*, const TEXT*);
// Does not add word "Database" in the beginning like gds__log_status
void iscLogStatus(const TEXT* text, const ISC_STATUS* status_vector);
void iscLogException(const TEXT* text, const Firebird::Exception& e);
#ifdef WIN_NT
struct _SECURITY_ATTRIBUTES* ISC_get_security_desc(void);
#endif
#endif // JRD_ISC_PROTO_H