21#ifndef SYSLOG_CONF_DIR
34# define SYSLOG_DGRAM_SIZE 80
36# define SYSLOG_DGRAM_SIZE 1024
103 if(
'\\' != *
p &&
'/' != *
p )
196 wsa_initialized =
TRUE;
277 static char *
month[] = {
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
278 "Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec" };
char * strcat(char *DstString, const char *SrcString)
UINT32 strtoul(const char *String, char **Terminator, UINT32 Base)
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
char * strchr(const char *String, int ch)
VOID WINAPI GetLocalTime(OUT LPSYSTEMTIME lpSystemTime)
static const WCHAR month[12][4]
INT WSAAPI sendto(IN SOCKET s, IN CONST CHAR FAR *buf, IN INT len, IN INT flags, IN CONST struct sockaddr *to, IN INT tolen)
INT WINAPI WSAStartup(IN WORD wVersionRequested, OUT LPWSADATA lpWSAData)
PHOSTENT WSAAPI gethostbyname(IN const char FAR *name)
GLdouble GLdouble GLdouble GLdouble q
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
_Check_return_opt_ _CRTIMP char *__cdecl fgets(_Out_writes_z_(_MaxCount) char *_Buf, _In_ int _MaxCount, _Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
int __cdecl atexit(void(__cdecl *)(void))
#define memcpy(s1, s2, n)
#define sprintf(buf, format,...)
_Check_return_ _CRTIMP _CONST_RETURN char *__cdecl strrchr(_In_z_ const char *_Str, _In_ int _Ch)
INT WSAAPI getsockopt(IN SOCKET s, IN INT level, IN INT optname, OUT CHAR FAR *optval, IN OUT INT FAR *optlen)
INT WSAAPI bind(IN SOCKET s, IN CONST struct sockaddr *name, IN INT namelen)
SOCKET WSAAPI socket(IN INT af, IN INT type, IN INT protocol)
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
static const char * syslog_conf_dir
#define SYSLOG_DGRAM_SIZE
const char * set_syslog_conf_dir(const char *dir)
static int syslog_facility
static char local_hostname[MAX_COMPUTERNAME_LENGTH+1]
void syslog(int pri, char *fmt,...)
void openlog(char *ident, int option, int facility)
static SOCKADDR_IN sa_logger
static void init_logger_addr()
static char datagramm[SYSLOG_DGRAM_SIZE]
static char * syslog_ident
void vsyslog(int pri, char *fmt, va_list ap)
static int datagramm_size
DWORD WINAPI GetCurrentProcessId(void)
#define MAX_COMPUTERNAME_LENGTH
_In_ ULONG _In_ ULONG_PTR ident
void int int ULONGLONG int va_list * ap
int PASCAL FAR WSACleanup(void)