diff options
Diffstat (limited to 'omfile.c')
-rw-r--r-- | omfile.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -56,6 +56,16 @@ */ DEF_OMOD_STATIC_DATA +/* The following structure is a dynafile name cache entry. + */ +struct s_dynaFileCacheEntry { + uchar *pName; /* name currently open, if dynamic name */ + short fd; /* name associated with file name in cache */ + time_t lastUsed; /* for LRU - last access */ +}; +typedef struct s_dynaFileCacheEntry dynaFileCacheEntry; + + /* globals for default values */ static int iDynaFileCacheSize = 10; /* max cache for dynamic files */ static int fCreateMode = 0644; /* mode to use when creating files */ |