diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-08-01 12:56:57 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-08-01 12:56:57 +0000 |
commit | 9882771150f3aebfa539a619cff78c6413b918d6 (patch) | |
tree | ce268f7bafe1f1d9b98d7209dde5eae29c3ecbcb /omfile.c | |
parent | df2c0a2e6f5f9c601fc7888e6d4f7820490be4a0 (diff) | |
download | rsyslog-9882771150f3aebfa539a619cff78c6413b918d6.tar.gz rsyslog-9882771150f3aebfa539a619cff78c6413b918d6.tar.xz rsyslog-9882771150f3aebfa539a619cff78c6413b918d6.zip |
even more cleanup ;)
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 */ |