| 
									
										
										
										
											2004-03-29 00:00:58 +00:00
										 |  |  | /*
 | 
					
						
							| 
									
										
										
										
											2013-10-02 15:02:34 -04:00
										 |  |  |  *  Copyright (C) 2007-2013 Sourcefire, Inc. | 
					
						
							| 
									
										
										
										
											2009-02-13 10:55:45 +00:00
										 |  |  |  * | 
					
						
							|  |  |  |  *  Authors: Tomasz Kojm | 
					
						
							| 
									
										
										
										
											2004-03-29 00:00:58 +00:00
										 |  |  |  * | 
					
						
							|  |  |  |  *  This program is free software; you can redistribute it and/or modify | 
					
						
							| 
									
										
										
										
											2007-03-31 20:31:04 +00:00
										 |  |  |  *  it under the terms of the GNU General Public License version 2 as | 
					
						
							|  |  |  |  *  published by the Free Software Foundation. | 
					
						
							| 
									
										
										
										
											2004-03-29 00:00:58 +00:00
										 |  |  |  * | 
					
						
							|  |  |  |  *  This program is distributed in the hope that it will be useful, | 
					
						
							|  |  |  |  *  but WITHOUT ANY WARRANTY; without even the implied warranty of | 
					
						
							|  |  |  |  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
					
						
							|  |  |  |  *  GNU General Public License for more details. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  *  You should have received a copy of the GNU General Public License | 
					
						
							|  |  |  |  *  along with this program; if not, write to the Free Software | 
					
						
							| 
									
										
										
										
											2006-04-09 19:59:28 +00:00
										 |  |  |  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | 
					
						
							|  |  |  |  *  MA 02110-1301, USA. | 
					
						
							| 
									
										
										
										
											2004-03-29 00:00:58 +00:00
										 |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef __OUTPUT_H
 | 
					
						
							|  |  |  | #define __OUTPUT_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #if HAVE_CONFIG_H
 | 
					
						
							|  |  |  | #include "clamav-config.h"
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-10-02 15:02:34 -04:00
										 |  |  | #if HAVE_STDLIB_H
 | 
					
						
							| 
									
										
										
										
											2004-03-29 00:00:58 +00:00
										 |  |  | #include <stdlib.h>
 | 
					
						
							| 
									
										
										
										
											2013-10-02 15:02:34 -04:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #if HAVE_SYS_TYPES_H
 | 
					
						
							|  |  |  | #include <sys/types.h>
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2004-03-29 00:00:58 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-08-21 20:21:43 +00:00
										 |  |  | #ifdef __GNUC__
 | 
					
						
							|  |  |  | int mdprintf(int desc, const char *str, ...) __attribute__((format(printf, 2,3))); | 
					
						
							|  |  |  | #else
 | 
					
						
							| 
									
										
										
										
											2004-03-29 00:00:58 +00:00
										 |  |  | int mdprintf(int desc, const char *str, ...); | 
					
						
							| 
									
										
										
										
											2008-08-21 20:21:43 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2004-03-29 00:00:58 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-02-10 13:44:16 +00:00
										 |  |  | #ifdef __GNUC__
 | 
					
						
							|  |  |  | int logg(const char *str, ...)      __attribute__((format(printf, 1, 2))); | 
					
						
							|  |  |  | #else
 | 
					
						
							| 
									
										
										
										
											2004-03-29 00:00:58 +00:00
										 |  |  | int logg(const char *str, ...); | 
					
						
							| 
									
										
										
										
											2007-02-10 13:44:16 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-03-29 00:00:58 +00:00
										 |  |  | void logg_close(void); | 
					
						
							| 
									
										
										
										
											2012-08-20 10:53:25 -04:00
										 |  |  | extern short int logg_verbose, logg_nowarn, logg_lock, logg_time, logg_noflush, logg_rotate; | 
					
						
							|  |  |  | extern off_t logg_size; | 
					
						
							| 
									
										
										
										
											2004-03-30 21:11:25 +00:00
										 |  |  | extern const char *logg_file; | 
					
						
							| 
									
										
										
										
											2004-03-29 00:00:58 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | #if defined(USE_SYSLOG) && !defined(C_AIX)
 | 
					
						
							| 
									
										
										
										
											2004-03-30 21:11:25 +00:00
										 |  |  | extern short logg_syslog; | 
					
						
							| 
									
										
										
										
											2004-05-11 00:14:14 +00:00
										 |  |  | int logg_facility(const char *name); | 
					
						
							| 
									
										
										
										
											2004-03-29 00:00:58 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-02-10 13:44:16 +00:00
										 |  |  | #ifdef __GNUC__
 | 
					
						
							|  |  |  | void mprintf(const char *str, ...) __attribute__((format(printf, 1, 2))); | 
					
						
							|  |  |  | #else
 | 
					
						
							| 
									
										
										
										
											2004-03-29 00:00:58 +00:00
										 |  |  | void mprintf(const char *str, ...); | 
					
						
							| 
									
										
										
										
											2007-02-10 13:44:16 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-02-17 15:59:26 +00:00
										 |  |  | extern short int mprintf_disabled, mprintf_verbose, mprintf_quiet, mprintf_nowarn, mprintf_stdout, mprintf_send_timeout; | 
					
						
							| 
									
										
										
										
											2004-03-29 00:00:58 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | #endif
 |