~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to docs/html/node47.html

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-03-12 11:30:04 UTC
  • mfrom: (0.41.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100312113004-b0fop4bkycszdd0z
Tags: 0.96~rc1+dfsg-0ubuntu1
* New upstream RC - FFE (LP: #537636):
  - Add OfficialDatabaseOnly option to clamav-base.postinst.in
  - Add LocalSocketGroup option to clamav-base.postinst.in
  - Add LocalSocketMode option to clamav-base.postinst.in
  - Add CrossFilesystems option to clamav-base.postinst.in
  - Add ClamukoScannerCount option to clamav-base.postinst.in
  - Add BytecodeSecurity opiton to clamav-base.postinst.in
  - Add DetectionStatsHostID option to clamav-freshclam.postinst.in
  - Add Bytecode option to clamav-freshclam.postinst.in
  - Add MilterSocketGroup option to clamav-milter.postinst.in
  - Add MilterSocketMode option to clamav-milter.postinst.in
  - Add ReportHostname option to clamav-milter.postinst.in
  - Bump libclamav SO version to 6.1.0 in libclamav6.install
  - Drop clamdmon from clamav.examples (no longer shipped by upstream)
  - Drop libclamav.a from libclamav-dev.install (not built by upstream)
  - Update SO version for lintian override for libclamav6
  - Add new Bytecode Testing Tool, usr/bin/clambc, to clamav.install
  - Add build-depends on python and python-setuptools for new test suite
  - Update debian/copyright for the embedded copy of llvm (using the system
    llvm is not currently feasible)

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>Limits</TITLE>
11
 
<META NAME="description" CONTENT="Limits">
 
10
<TITLE>Error handling</TITLE>
 
11
<META NAME="description" CONTENT="Error handling">
12
12
<META NAME="keywords" CONTENT="clamdoc">
13
13
<META NAME="resource-type" CONTENT="document">
14
14
<META NAME="distribution" CONTENT="global">
19
19
<LINK REL="STYLESHEET" HREF="clamdoc.css">
20
20
 
21
21
<LINK REL="next" HREF="node48.html">
22
 
<LINK REL="previous" HREF="node43.html">
23
 
<LINK REL="up" HREF="node32.html">
 
22
<LINK REL="previous" HREF="node46.html">
 
23
<LINK REL="up" HREF="node43.html">
24
24
<LINK REL="next" HREF="node48.html">
25
25
</HEAD>
26
26
 
27
27
<BODY >
28
28
 
29
29
<DIV CLASS="navigation"><!--Navigation Panel-->
30
 
<A NAME="tex2html817"
 
30
<A NAME="tex2html833"
31
31
  HREF="node48.html">
32
32
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
33
 
<A NAME="tex2html813"
34
 
  HREF="node32.html">
 
33
<A NAME="tex2html829"
 
34
  HREF="node43.html">
35
35
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
36
 
<A NAME="tex2html807"
 
36
<A NAME="tex2html823"
37
37
  HREF="node46.html">
38
38
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
39
 
<A NAME="tex2html815"
 
39
<A NAME="tex2html831"
40
40
  HREF="node1.html">
41
41
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>  
42
42
<BR>
43
 
<B> Next:</B> <A NAME="tex2html818"
44
 
  HREF="node48.html">Database reloading</A>
45
 
<B> Up:</B> <A NAME="tex2html814"
46
 
  HREF="node32.html">LibClamAV</A>
47
 
<B> Previous:</B> <A NAME="tex2html808"
48
 
  HREF="node46.html">Engine structure</A>
49
 
 &nbsp; <B>  <A NAME="tex2html816"
 
43
<B> Next:</B> <A NAME="tex2html834"
 
44
  HREF="node48.html">Engine structure</A>
 
45
<B> Up:</B> <A NAME="tex2html830"
 
46
  HREF="node43.html">API</A>
 
47
<B> Previous:</B> <A NAME="tex2html824"
 
48
  HREF="node46.html">Database loading</A>
 
49
 &nbsp; <B>  <A NAME="tex2html832"
50
50
  HREF="node1.html">Contents</A></B> 
51
51
<BR>
52
52
<BR></DIV>
53
53
<!--End of Navigation Panel-->
54
54
 
55
 
<H2><A NAME="SECTION00075000000000000000">
56
 
Limits</A>
57
 
</H2>
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:
 
55
<H3><A NAME="SECTION00073400000000000000">
 
56
Error handling</A>
 
57
</H3>
 
58
    Use <code>cl_strerror()</code> to convert error codes into human readable
 
59
    messages.  The function returns a statically allocated string:
62
60
    <PRE>
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);
 
61
        if(ret != CL_SUCCESS) {
 
62
            printf("cl_load() error: %s\n", cl_strerror(ret));
 
63
            cl_engine_free(engine);
 
64
            return 1;
 
65
        }
74
66
</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.
77
67
 
78
68
<P>
79
69
<BR><HR>
80
70
<ADDRESS>
81
71
Tomasz Kojm
82
 
2009-10-28
 
72
2010-03-10
83
73
</ADDRESS>
84
74
</BODY>
85
75
</HTML>