~ubuntu-branches/ubuntu/feisty/clamav/feisty

« back to all changes in this revision

Viewing changes to clamd/dazukofs.h

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2007-02-20 10:33:44 UTC
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20070220103344-zgcu2psnx9d98fpa
Tags: upstream-0.90
ImportĀ upstreamĀ versionĀ 0.90

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 */