~ubuntu-branches/ubuntu/feisty/clamav/feisty

« back to all changes in this revision

Viewing changes to shared/output.h

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2007-02-20 10:33:44 UTC
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20070220103344-zgcu2psnx9d98fpa
Tags: upstream-0.90
ImportĀ upstreamĀ versionĀ 0.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *  Copyright (C) 2007-2009 Sourcefire, Inc.
3
 
 *
4
 
 *  Authors: Tomasz Kojm
 
2
 *  Copyright (C) 2002 - 2004 Tomasz Kojm <tkojm@clamav.net>
5
3
 *
6
4
 *  This program is free software; you can redistribute it and/or modify
7
 
 *  it under the terms of the GNU General Public License version 2 as
8
 
 *  published by the Free Software Foundation.
 
5
 *  it under the terms of the GNU General Public License as published by
 
6
 *  the Free Software Foundation; either version 2 of the License, or
 
7
 *  (at your option) any later version.
9
8
 *
10
9
 *  This program is distributed in the hope that it will be useful,
11
10
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
26
25
#endif
27
26
 
28
27
#include <stdlib.h>
 
28
#include "cfgparser.h"
29
29
 
30
 
#ifdef __GNUC__
31
 
int mdprintf(int desc, const char *str, ...) __attribute__((format(printf, 2,3)));
32
 
#else
33
30
int mdprintf(int desc, const char *str, ...);
34
 
#endif
35
31
 
36
 
#ifdef __GNUC__
37
 
int logg(const char *str, ...)      __attribute__((format(printf, 1, 2)));
38
 
#else
39
32
int logg(const char *str, ...);
40
 
#endif
41
33
 
42
34
void logg_close(void);
43
 
extern short int logg_verbose, logg_nowarn, logg_lock, logg_time, logg_noflush;
44
 
extern unsigned int logg_size;
 
35
extern short int logg_verbose, logg_lock, logg_time;
 
36
extern int logg_size;
45
37
extern const char *logg_file;
46
38
 
47
39
#if defined(USE_SYSLOG) && !defined(C_AIX)
49
41
int logg_facility(const char *name);
50
42
#endif
51
43
 
52
 
#ifdef __GNUC__
53
 
void mprintf(const char *str, ...) __attribute__((format(printf, 1, 2)));
54
 
#else
55
44
void mprintf(const char *str, ...);
56
 
#endif
57
45
 
58
 
extern short int mprintf_disabled, mprintf_verbose, mprintf_quiet, mprintf_nowarn, mprintf_stdout, mprintf_send_timeout;
 
46
extern short int mprintf_disabled, mprintf_verbose, mprintf_quiet, mprintf_stdout;
59
47
 
60
48
#endif