| 1 |
/* |
| 2 |
************************************************************************** |
| 3 |
* |
| 4 |
* PROGRAM: JRD file split utility program |
| 5 |
* MODULE: spit.h |
| 6 |
* DESCRIPTION: file split utility program main header file |
| 7 |
* |
| 8 |
* |
| 9 |
************************************************************************** |
| 10 |
* The contents of this file are subject to the Interbase Public |
| 11 |
* License Version 1.0 (the "License"); you may not use this file |
| 12 |
* except in compliance with the License. You may obtain a copy |
| 13 |
* of the License at http://www.Inprise.com/IPL.html |
| 14 |
* |
| 15 |
* Software distributed under the License is distributed on an |
| 16 |
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express |
| 17 |
* or implied. See the License for the specific language governing |
| 18 |
* rights and limitations under the License. |
| 19 |
* |
| 20 |
* The Original Code was created by Inprise Corporation |
| 21 |
* and its predecessors. Portions created by Inprise Corporation are |
| 22 |
* Copyright (C) Inprise Corporation. |
| 23 |
* |
| 24 |
* All Rights Reserved. |
| 25 |
* Contributor(s): ______________________________________. |
| 26 |
*/ |
| 27 |
|
| 28 |
const char BLANK = ' '; |
| 29 |
const int FILE_IS_FULL = -9; |
| 30 |
//const int FILE_NM_ARR_LEN = 20; |
| 31 |
//const char* GSPLIT_HDR_REC_NM = "InterBase/Gsplit"; |
| 32 |
|
| 33 |
const int K_BYTES = 1024; |
| 34 |
const int IO_BUFFER_SIZE = (16 * K_BYTES); |
| 35 |
const int SVC_IO_BUFFER_SIZE = (16 * (IO_BUFFER_SIZE)); |
| 36 |
const int GBAK_IO_BUFFER_SIZE = SVC_IO_BUFFER_SIZE; |
| 37 |
|
| 38 |
const int M_BYTES = (K_BYTES * K_BYTES); |
| 39 |
const int G_BYTES = (K_BYTES * M_BYTES); |
| 40 |
const size_t MAX_FILE_NM_LEN = 27; // size of header_rec.fl_name |
| 41 |
const int MAX_NUM_OF_FILES = 9999; |
| 42 |
const int MIN_FILE_SIZE = M_BYTES; |
| 43 |
const char NEW_LINE = '\n'; |
| 44 |
const char TERMINAL = '\0'; |