8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-27 20:03:03 +01:00
firebird-mirror/src/jrd/fil.h

86 lines
2.1 KiB
C
Raw Normal View History

2001-05-23 15:26:42 +02:00
/*
* PROGRAM: JRD temp file space list
* MODULE: fil.h
* DESCRIPTION: Lists of directories for temporary files or UDFs
*
* 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-06-30 11:58:20 +02:00
*
* 26-Sept-2001 Paul Beach - External File Directory Config. Parameter
2002-10-30 07:40:58 +01:00
*
* 2002.10.29 Sean Leyne - Removed obsolete "Netware" port
*
2001-05-23 15:26:42 +02:00
*/
#ifndef _JRD_FIL_H_
#define _JRD_FIL_H_
#include "../jrd/thd.h"
#ifdef UNIX
#define WORKDIR "/tmp/"
#endif
#ifdef PC_PLATFORM
#define WORKDIR ""
#endif
#ifdef WIN_NT
#define WORKDIR "/temp/"
#endif
#ifdef VMS
#define WORKDIR "SYS$SCRATCH:"
#endif
#define ALLROOM -1UL /* use all available space */
2001-05-23 15:26:42 +02:00
/* Defined the directory list structures. */
/* Temporary workfile directory list. */
typedef struct dls {
SLONG dls_header;
struct dls *dls_next;
ULONG dls_size; /* Maximum size in the directory */
ULONG dls_inuse; /* Occupied space in the directory */
TEXT dls_directory[2]; /* Directory name */
} *DLS;
typedef struct mdls {
DLS mdls_dls; /* Pointer to the directory list */
BOOLEAN mdls_mutex_init;
MUTX_T mdls_mutex[1]; /* Mutex for directory list. Must
be locked before list operations */
} MDLS;
/* external function directory list */
typedef struct fdls {
struct fdls *fdls_next;
TEXT fdls_directory[1];
} FDLS;
2002-06-30 11:58:20 +02:00
/* external file directory list */
typedef struct edls {
struct edls *edls_next;
TEXT edls_directory[1];
} EDLS;
2001-05-23 15:26:42 +02:00
#endif /* _JRD_FIL_H_ */