summaryrefslogtreecommitdiffstats
path: root/omfile.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-08-01 12:56:57 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-08-01 12:56:57 +0000
commit9882771150f3aebfa539a619cff78c6413b918d6 (patch)
treece268f7bafe1f1d9b98d7209dde5eae29c3ecbcb /omfile.c
parentdf2c0a2e6f5f9c601fc7888e6d4f7820490be4a0 (diff)
downloadrsyslog-9882771150f3aebfa539a619cff78c6413b918d6.tar.gz
rsyslog-9882771150f3aebfa539a619cff78c6413b918d6.tar.xz
rsyslog-9882771150f3aebfa539a619cff78c6413b918d6.zip
even more cleanup ;)
Diffstat (limited to 'omfile.c')
-rw-r--r--omfile.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/omfile.c b/omfile.c
index 0a0798aa..493aba89 100644
--- a/omfile.c
+++ b/omfile.c
@@ -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 */