e3aaff8e |
/* |
8000d078 |
* Copyright (C) 1999 - 2004 Tomasz Kojm <tk@clamav.net> |
e3aaff8e |
*
* 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
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
|
8000d078 |
#ifndef __OTHERS_H_LC
#define __OTHERS_H_LC |
e3aaff8e |
|
d9e258d5 |
#include <stdio.h> |
e3aaff8e |
#include <stdlib.h> |
5ae8bdd5 |
#include "cltypes.h" |
e3aaff8e |
void cli_warnmsg(const char *str, ...);
void cli_errmsg(const char *str, ...);
void cli_dbgmsg(const char *str, ...);
void *cli_malloc(size_t nmemb);
void *cli_calloc(size_t nmemb, size_t size); |
8139fd99 |
void *cli_realloc(void *ptr, size_t size); |
e3aaff8e |
int cli_rmdirs(const char *dirname); |
335d1663 |
char *cli_md5stream(FILE *fs, unsigned char *digcpy);
char *cli_md5file(const char *filename); |
5b25b5e8 |
int cli_readn(int fd, void *buff, unsigned int count);
int cli_writen(int fd, void *buff, unsigned int count); |
5ae8bdd5 |
int32_t cli_readint32(const char *buff); |
ad257b93 |
void cli_writeint32(char *offset, uint32_t value); |
8000d078 |
char *cli_gentemp(const char *dir);
unsigned int cli_rndnum(unsigned int max); |
96d71792 |
int cli_memstr(const char *haystack, int hs, const char *needle, int ns); |
b067a7dd |
int cli_filecopy(const char *src, const char *dest); |
e3aaff8e |
#endif |