8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-31 23:23:04 +01:00
firebird-mirror/src/burp/spit.h

50 lines
1.7 KiB
C
Raw Normal View History

2001-05-23 15:26:42 +02:00
/*
**************************************************************************
*
* PROGRAM: JRD file split utility program
* MODULE: spit.h
* DESCRIPTION: file split utility program main header file
*
*
**************************************************************************
* 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): ______________________________________.
*/
#include "../jrd/common.h"
2003-09-18 23:56:26 +02:00
const char BLANK = ' ';
const int FILE_IS_FULL = -9;
2004-10-07 10:23:53 +02:00
//const int FILE_NM_ARR_LEN = 20;
//const char* GSPLIT_HDR_REC_NM = "InterBase/Gsplit";
2001-05-23 15:26:42 +02:00
2003-09-18 23:56:26 +02:00
const int K_BYTES = 1024;
const int IO_BUFFER_SIZE = (16 * K_BYTES);
2001-05-23 15:26:42 +02:00
2003-09-18 23:56:26 +02:00
const int M_BYTES = (K_BYTES * K_BYTES);
const int G_BYTES = (K_BYTES * M_BYTES);
2004-03-14 06:51:54 +01:00
const size_t MAX_FILE_NM_LEN = 27; // size of header_rec.fl_name
2003-09-18 23:56:26 +02:00
const int MAX_NUM_OF_FILES = 9999;
const int MIN_FILE_SIZE = M_BYTES;
const char NEW_LINE = '\n';
const char TERMINAL = '\0';
2001-05-23 15:26:42 +02:00
typedef int FILE_DESC;
2006-01-13 23:25:05 +01:00
const FILE_DESC GBAK_STDIN_DESC = 0; // standard input file descriptor
const FILE_DESC GBAK_STDOUT_DESC = 1; // standard output file descriptor