~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to docs/html/node55.html

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2014-02-01 11:06:17 UTC
  • mfrom: (0.35.37 sid)
  • Revision ID: package-import@ubuntu.com-20140201110617-33h2xxk09dep0ui4
Tags: 0.98.1+dfsg-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - Drop build-dep on electric-fence (in Universe)
  - Add apparmor profiles for clamd and freshclam along with maintainer
    script changes
  - Add autopkgtest

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
8
8
<HTML>
9
9
<HEAD>
10
 
<TITLE>Example</TITLE>
11
 
<META NAME="description" CONTENT="Example">
 
10
<TITLE>Limits</TITLE>
 
11
<META NAME="description" CONTENT="Limits">
12
12
<META NAME="keywords" CONTENT="clamdoc">
13
13
<META NAME="resource-type" CONTENT="document">
14
14
<META NAME="distribution" CONTENT="global">
18
18
 
19
19
<LINK REL="STYLESHEET" HREF="clamdoc.css">
20
20
 
 
21
<LINK REL="next" HREF="node56.html">
21
22
<LINK REL="previous" HREF="node54.html">
22
 
<LINK REL="up" HREF="node43.html">
 
23
<LINK REL="up" HREF="node49.html">
23
24
<LINK REL="next" HREF="node56.html">
24
25
</HEAD>
25
26
 
26
27
<BODY >
27
28
 
28
29
<DIV CLASS="navigation"><!--Navigation Panel-->
29
 
<A NAME="tex2html928"
 
30
<A NAME="tex2html947"
30
31
  HREF="node56.html">
31
32
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
32
 
<A NAME="tex2html924"
33
 
  HREF="node43.html">
 
33
<A NAME="tex2html943"
 
34
  HREF="node49.html">
34
35
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
35
 
<A NAME="tex2html920"
 
36
<A NAME="tex2html937"
36
37
  HREF="node54.html">
37
38
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
38
 
<A NAME="tex2html926"
 
39
<A NAME="tex2html945"
39
40
  HREF="node1.html">
40
41
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>  
41
42
<BR>
42
 
<B> Next:</B> <A NAME="tex2html929"
43
 
  HREF="node56.html">CVD format</A>
44
 
<B> Up:</B> <A NAME="tex2html925"
45
 
  HREF="node43.html">API</A>
46
 
<B> Previous:</B> <A NAME="tex2html921"
47
 
  HREF="node54.html">clamav-config</A>
48
 
 &nbsp; <B>  <A NAME="tex2html927"
 
43
<B> Next:</B> <A NAME="tex2html948"
 
44
  HREF="node56.html">Database checks</A>
 
45
<B> Up:</B> <A NAME="tex2html944"
 
46
  HREF="node49.html">API</A>
 
47
<B> Previous:</B> <A NAME="tex2html938"
 
48
  HREF="node54.html">Engine structure</A>
 
49
 &nbsp; <B>  <A NAME="tex2html946"
49
50
  HREF="node1.html">Contents</A></B> 
50
51
<BR>
51
52
<BR></DIV>
52
53
<!--End of Navigation Panel-->
53
54
 
54
 
<H3><A NAME="SECTION000731200000000000000">
55
 
Example</A>
 
55
<H3><A NAME="SECTION00073600000000000000">
 
56
Limits</A>
56
57
</H3>
57
 
    You will find an example scanner application in the clamav source
58
 
    package (/example). Provided you have ClamAV already installed, execute
59
 
    the following to compile it:
 
58
    When you create a new engine with <code>cl_engine_new()</code>, it will have
 
59
    all internal settings set to default values as recommended by the
 
60
    ClamAV authors. It's possible to check and modify the values (numerical
 
61
    and strings) using the following set of functions:
60
62
    <PRE>
61
 
        gcc -Wall ex1.c -o ex1 -lclamav
 
63
int cl_engine_set_num(struct cl_engine *engine,
 
64
  enum cl_engine_field field, long long num);
 
65
 
 
66
long long cl_engine_get_num(const struct cl_engine *engine,
 
67
  enum cl_engine_field field, int *err);
 
68
 
 
69
int cl_engine_set_str(struct cl_engine *engine,
 
70
  enum cl_engine_field field, const char *str);
 
71
 
 
72
const char *cl_engine_get_str(const struct cl_engine *engine,
 
73
  enum cl_engine_field field, int *err);
62
74
</PRE>
 
75
    Please don't modify the default values unless you know what you're doing.
 
76
    Refer to the ClamAV sources (clamscan, clamd) for examples.
63
77
 
64
78
<P>
65
79
<BR><HR>
66
80
<ADDRESS>
67
 
SourceFire 2013-04-16
 
81
Sourcefire 2013-12-24
68
82
</ADDRESS>
69
83
</BODY>
70
84
</HTML>