ClamAV is an open source (GPLv2) anti-virus toolkit.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
clamav/libclamav/bytecode_api.h

51 lines
1.3 KiB

/*
* ClamAV bytecode API.
*
* Copyright (C) 2009 Sourcefire, Inc.
*
* Authors: Török Edvin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* 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
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
struct lsig_match {
uint32_t evalcnt;
uint64_t evalids;
uint16_t filetype;
};
struct foo {
struct foo *nxt;
};
#ifdef __CLAMBC__
uint32_t test0(struct foo*, uint32_t);
uint32_t test1(uint32_t, uint32_t);
/* reads @size bytes from current file (if any) to @data, returns amount read */
int32_t read(uint8_t *data, int32_t size);
enum {
SEEK_SET=0,
SEEK_CUR,
SEEK_END
};
/* seeks current position to @pos, from @whence, returns current position from
* start of file */
int32_t seek(int32_t pos, uint32_t whence);
#endif