2003-07-29 15:48:06 +00:00
|
|
|
/*
|
2005-01-18 23:51:53 +00:00
|
|
|
* Copyright (C) 2002 - 2005 Tomasz Kojm <tkojm@clamav.net>
|
2003-07-29 15:48:06 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* 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.
|
2003-07-29 15:48:06 +00:00
|
|
|
*/
|
|
|
|
|
2003-12-02 22:48:56 +00:00
|
|
|
#ifndef __CLAMD_OTHERS_H
|
|
|
|
#define __CLAMD_OTHERS_H
|
2003-07-29 15:48:06 +00:00
|
|
|
|
2004-03-14 20:45:58 +00:00
|
|
|
#if HAVE_CONFIG_H
|
|
|
|
#include "clamav-config.h"
|
|
|
|
#endif
|
|
|
|
|
2003-07-29 15:48:06 +00:00
|
|
|
#include <stdlib.h>
|
2006-09-05 20:45:39 +00:00
|
|
|
#include "shared/cfgparser.h"
|
2003-07-29 15:48:06 +00:00
|
|
|
|
2005-06-22 15:54:28 +00:00
|
|
|
int poll_fds(int *fds, int nfds, int timeout_sec);
|
2004-03-08 09:55:06 +00:00
|
|
|
int poll_fd(int fd, int timeout_sec);
|
2004-03-23 15:28:32 +00:00
|
|
|
int is_fd_connected(int fd);
|
2005-03-19 20:35:38 +00:00
|
|
|
void virusaction(const char *filename, const char *virname, const struct cfgstruct *copt);
|
2004-04-01 10:26:42 +00:00
|
|
|
int writen(int fd, void *buff, unsigned int count);
|
2004-12-07 22:46:18 +00:00
|
|
|
|
2006-09-04 22:30:09 +00:00
|
|
|
int readsock(int sockfd, char *buf, size_t size, unsigned char delim, int timeout_sec, int force_delim, int read_command);
|
2003-08-06 03:05:51 +00:00
|
|
|
|
2003-07-29 15:48:06 +00:00
|
|
|
#endif
|