| 1 | /* |
| 2 | * config.h -- configuration definitions for the cronolog program |
| 3 | * $Id: config.h,v 1.1 1998/03/08 11:02:56 andrew Exp $ |
| 4 | * |
| 5 | * Copyright (C) 1996-1998 by Ford & Mason Ltd. |
| 6 | * |
| 7 | * Written by Andrew Ford |
| 8 | * mailto:[email protected] |
| 9 | * http://www.ford-mason.co.uk/aford/ |
| 10 | * |
| 11 | * The file LICENSE specifies the terms and conditions for redistribution. |
| 12 | * |
| 13 | * The latest version of cronolog can be found at: |
| 14 | * |
| 15 | * http://www.ford-mason.co.uk/resources/cronolog/ |
| 16 | * |
| 17 | */ |
| 18 | |
| 19 | #ifndef _CONFIG_H_ |
| 20 | #define _CONFIG_H_ |
| 21 | |
| 22 | |
| 23 | /* Size of read buffer and filename buffer */ |
| 24 | |
| 25 | #ifndef BUFSIZE |
| 26 | #define BUFSIZE 65536 |
| 27 | #endif |
| 28 | |
| 29 | #ifndef MAX_PATH |
| 30 | #define MAX_PATH 1024 |
| 31 | #endif |
| 32 | |
| 33 | /* Default permissions for files and directories that are created */ |
| 34 | |
| 35 | #ifndef FILE_MODE |
| 36 | #ifndef _WIN32 |
| 37 | #define FILE_MODE ( S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH ) |
| 38 | #else |
| 39 | #define FILE_MODE ( _S_IREAD | _S_IWRITE ) |
| 40 | #endif |
| 41 | #endif |
| 42 | |
| 43 | #ifndef DIR_MODE |
| 44 | #define DIR_MODE ( S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH ) |
| 45 | #endif |
| 46 | |
| 47 | |
| 48 | /* The program creates any new directories that may be needed, unless |
| 49 | * DONT_CREATE_SUBDIRS is defined, in which case any directories |
| 50 | * needed must exist or the program will abort. |
| 51 | * |
| 52 | * Uncomment the following definition if you want the alternative functionality: |
| 53 | */ |
| 54 | |
| 55 | /* #define DONT_CREATE_SUBDIRS */ |
| 56 | |
| 57 | |
| 58 | /* When creating new directories, common prefixes of the current log |
| 59 | * file and the last file for which subdirectories were created are |
| 60 | * not checked with stat(), unless CHECK_ALL_PREFIX_DIRS is defined. |
| 61 | * |
| 62 | * Uncomment the following definition if you want the alternative functionality: |
| 63 | */ |
| 64 | |
| 65 | /* #define CHECK_ALL_PREFIX_DIRS */ |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | #endif |