~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to clamd/dazukofs.h

  • 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:
 
1
/* userspace library to interface with dazukofs
 
2
 
 
3
   Copyright (C) 2008 John Ogness
 
4
     Author: John Ogness <dazukocode@ogness.net>
 
5
 
 
6
   This library is free software; you can redistribute it and/or
 
7
   modify it under the terms of the GNU Lesser General Public
 
8
   License as published by the Free Software Foundation; either
 
9
   version 2.1 of the License, or (at your option) any later version.
 
10
 
 
11
   This library is distributed in the hope that it will be useful,
 
12
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
   GNU Lesser General Public License for more details.
 
15
 
 
16
   You should have received a copy of the GNU Lesser General Public
 
17
   License along with this library; if not, write to the Free Software
 
18
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
19
*/
 
20
 
 
21
#ifndef __DAZUKOFS_H
 
22
#define __DAZUKOFS_H
 
23
 
 
24
#include <stdio.h>
 
25
 
 
26
/* dazukofs_open() flags */
 
27
#define DAZUKOFS_TRACK_GROUP 1
 
28
 
 
29
/* dazukofs_close() flags */
 
30
#define DAZUKOFS_REMOVE_GROUP 1
 
31
 
 
32
struct dazukofs_handle;
 
33
typedef struct dazukofs_handle * dazukofs_handle_t;
 
34
 
 
35
struct dazukofs_access
 
36
{
 
37
        int fd;
 
38
        int deny;
 
39
        unsigned long pid;
 
40
};
 
41
 
 
42
dazukofs_handle_t dazukofs_open(const char *gname, int flags);
 
43
int dazukofs_get_access(dazukofs_handle_t hndl, struct dazukofs_access *acc);
 
44
int dazukofs_return_access(dazukofs_handle_t hndl, struct dazukofs_access *acc);
 
45
int dazukofs_close(dazukofs_handle_t hndl, int flags);
 
46
int dazukofs_get_filename(struct dazukofs_access *acc, char *buf, size_t bufsiz);
 
47
 
 
48
#endif /* __DAZUKOFS_H */