2001-05-23 15:26:42 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: JRD Access Method
|
|
|
|
* MODULE: file_params.h
|
|
|
|
* DESCRIPTION: File parameter definitions
|
|
|
|
*
|
|
|
|
* 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-02-16 03:21:35 +01:00
|
|
|
*
|
|
|
|
* 2002.02.15 Sean Leyne - Code Cleanup, removed obsolete "EPSON" define*
|
|
|
|
*
|
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
|
2002-10-31 06:33:35 +01:00
|
|
|
* 2002.10.30 Sean Leyne - Code Cleanup, removed obsolete "SUN3_3" port
|
2002-10-31 06:06:02 +01:00
|
|
|
*
|
2001-05-23 15:26:42 +02:00
|
|
|
*/
|
|
|
|
|
2003-10-03 03:53:34 +02:00
|
|
|
#ifndef JRD_FILE_PARAMS_H
|
|
|
|
#define JRD_FILE_PARAMS_H
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2009-04-03 12:49:07 +02:00
|
|
|
static const char* const EVENT_FILE = "fb_event_%s";
|
|
|
|
static const char* const LOCK_FILE = "fb_lock_%s";
|
|
|
|
static const char* const MONITOR_FILE = "fb_monitor_%s";
|
|
|
|
static const char* const TRACE_FILE = "fb_trace";
|
2009-01-28 13:27:18 +01:00
|
|
|
|
|
|
|
#ifdef UNIX
|
2009-04-03 12:49:07 +02:00
|
|
|
static const char* const INIT_FILE = "fb_init";
|
|
|
|
static const char* const SEM_FILE = "fb_sem";
|
2001-05-23 15:26:42 +02:00
|
|
|
#endif
|
|
|
|
|
2009-04-03 12:49:07 +02:00
|
|
|
#ifdef HAVE_SYS_TYPES_H
|
2001-05-23 15:26:42 +02:00
|
|
|
#include <sys/types.h>
|
2009-04-03 12:49:07 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_SYS_IPC_H
|
2001-05-23 15:26:42 +02:00
|
|
|
#include <sys/ipc.h>
|
|
|
|
#endif
|
|
|
|
|
2001-07-12 07:46:06 +02:00
|
|
|
#ifdef DARWIN
|
2002-11-10 15:04:55 +01:00
|
|
|
#undef FB_PREFIX
|
|
|
|
#define FB_PREFIX "/all/files/are/in/framework/resources"
|
2001-07-12 07:46:06 +02:00
|
|
|
#define DARWIN_GEN_DIR "var"
|
2002-04-04 09:10:40 +02:00
|
|
|
#define DARWIN_FRAMEWORK_ID "com.firebirdsql.Firebird"
|
2001-05-23 15:26:42 +02:00
|
|
|
#endif
|
|
|
|
|
2004-05-29 06:57:16 +02:00
|
|
|
/* keep MSG_FILE_LANG in sync with build_file.epp */
|
2008-01-16 09:54:50 +01:00
|
|
|
#ifdef WIN_NT
|
2009-04-04 18:28:33 +02:00
|
|
|
static const char* const WORKFILE = "c:\\temp\\";
|
|
|
|
static const char MSG_FILE_LANG[] = "intl\\%.10s.msg";
|
2004-05-06 03:29:21 +02:00
|
|
|
#else
|
2009-04-04 18:28:33 +02:00
|
|
|
static const char* const WORKFILE = "/tmp/";
|
|
|
|
static const char MSG_FILE_LANG[] = "intl/%.10s.msg";
|
2001-05-23 15:26:42 +02:00
|
|
|
#endif
|
|
|
|
|
2009-05-22 15:47:27 +02:00
|
|
|
static const char* const LOCKDIR = "firebird"; // created in WORKFILE
|
2009-04-04 18:28:33 +02:00
|
|
|
static const char* const LOGFILE = "firebird.log";
|
|
|
|
static const char* const MSG_FILE = "firebird.msg";
|
2008-05-21 14:58:05 +02:00
|
|
|
// Keep in sync with MSG_FILE_LANG
|
|
|
|
const int LOCALE_MAX = 10;
|
|
|
|
|
2003-10-03 03:53:34 +02:00
|
|
|
#endif /* JRD_FILE_PARAMS_H */
|