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

75 lines
2.0 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
*
* 2002.10.30 Sean Leyne - Removed support for obsolete "PC_PLATFORM" define
*
2001-05-23 15:26:42 +02:00
*/
#ifndef JRD_FIL_H
#define JRD_FIL_H
2001-05-23 15:26:42 +02:00
#include "../jrd/thd.h"
/* Defined the directory list structures. */
/* Temporary workfile directory list. */
struct dir_list {
2001-05-23 15:26:42 +02:00
SLONG dls_header;
dir_list* dls_next;
2001-05-23 15:26:42 +02:00
ULONG dls_size; /* Maximum size in the directory */
ULONG dls_inuse; /* Occupied space in the directory */
TEXT dls_directory[2]; /* Directory name */
};
2001-05-23 15:26:42 +02:00
struct mutexed_dir_list {
dir_list* mdls_dls; /* Pointer to the directory list */
bool mdls_mutex_init;
2001-05-23 15:26:42 +02:00
MUTX_T mdls_mutex[1]; /* Mutex for directory list. Must
be locked before list operations */
mutexed_dir_list()
: mdls_dls(0), mdls_mutex_init(false) {}
};
2001-05-23 15:26:42 +02:00
/* external function directory list */
/* OBSOLETE.
struct function_dir_list {
function_dir_list* fdls_next;
2001-05-23 15:26:42 +02:00
TEXT fdls_directory[1];
};
*/
2001-05-23 15:26:42 +02:00
2002-06-30 11:58:20 +02:00
/* external file directory list */
/* OBSOLETE
struct extfile_dir_list {
extfile_dir_list* edls_next;
2002-06-30 11:58:20 +02:00
TEXT edls_directory[1];
};
*/
2002-06-30 11:58:20 +02:00
#endif /* JRD_FIL_H */