// FileUTC(FileName) - utility function for tagging the active rulebase | // FileUTC(FileName) - utility function for tagging the active rulebase | ||||
RuntimeCheck FileUTCGoodTimestampLength("SNFMulti.cpp:FileUTC snprintf(...) != CorrectTimestampLength"); | |||||
RuntimeCheck FileUTCGoodTimestampLength("SNFMulti.cpp:FileUTC snprintf(...) == CorrectTimestampLength"); | |||||
string FileUTC(string FileName) { // Gets a files UTC. | string FileUTC(string FileName) { // Gets a files UTC. | ||||
struct stat FileNameStat; // First we need a stat buffer. | struct stat FileNameStat; // First we need a stat buffer. |
return s; // return it. | return s; // return it. | ||||
} | } | ||||
RuntimeCheck LocalTimestampGoodTimestampLength("snfLOGmgr.cpp:LocalTimestamp snprintf(...) != CorrectTimestampLength"); | |||||
RuntimeCheck LocalTimestampGoodTimestampLength("snfLOGmgr.cpp:LocalTimestamp snprintf(...) == CorrectTimestampLength"); | |||||
string snfLOGmgr::LocalTimestamp(time_t t) { // Convert time_t to a local timestamp s. | string snfLOGmgr::LocalTimestamp(time_t t) { // Convert time_t to a local timestamp s. | ||||
char TimestampBfr[16]; // Create a small buffer. | char TimestampBfr[16]; // Create a small buffer. |
return ReportsBatch; // Return a batch of Reports. | return ReportsBatch; // Return a batch of Reports. | ||||
} | } | ||||
RuntimeCheck RulebaseUTCGoodTimestampLength("SNFNetmgr.cpp:RulebaseUTC snprintf(...) != CorrectTimestampLength"); | |||||
RuntimeCheck RulebaseUTCGoodTimestampLength("SNFNetmgr.cpp:RulebaseUTC snprintf(...) == CorrectTimestampLength"); | |||||
string& snfNETmgr::RulebaseUTC(string& t) { // Gets local rulebase file UTC. | string& snfNETmgr::RulebaseUTC(string& t) { // Gets local rulebase file UTC. | ||||
struct stat RulebaseStat; // First we need a stat buffer. | struct stat RulebaseStat; // First we need a stat buffer. |