From 6b24fa20d4da8a57a2e34b1ca0c3159b93157e1e Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Sun, 22 Jul 2007 16:03:45 +0000 Subject: moved file write output module to own set of code files --- syslogd.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'syslogd.h') diff --git a/syslogd.h b/syslogd.h index 38127c5f..05df1294 100644 --- a/syslogd.h +++ b/syslogd.h @@ -56,6 +56,14 @@ * rgerhards, 2005-07-26 */ #endif + +/* Flags to logmsg(). + */ +#define INTERNAL_MSG 0x001 /* msg generated by logmsgInternal() --> special handling */ +#define SYNC_FILE 0x002 /* do fsync on file after printing */ +#define ADDDATE 0x004 /* add a date to the message */ +#define MARK 0x008 /* this message is a mark */ + #if defined(__GLIBC__) #define dprintf mydprintf #endif /* __GLIBC__ */ @@ -75,6 +83,7 @@ int formatTimestamp3339(struct syslogTime *ts, char* pBuf, size_t iLenBuf); int formatTimestamp3164(struct syslogTime *ts, char* pBuf, size_t iLenBuf); void iovCreate(selector_t *f); char *iovAsString(selector_t *f); +void untty(void); extern int glblHadMemShortage; /* indicates if we had memory shortage some time during the run */ extern syslogCODE rs_prioritynames[]; -- cgit