~ubuntu-branches/debian/sid/rlinetd/sid

« back to all changes in this revision

Viewing changes to src/rlinetd.h

  • Committer: Bazaar Package Importer
  • Author(s): Robert Luberda
  • Date: 2010-03-20 18:03:45 UTC
  • mfrom: (2.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100320180345-x1srfbe2tg00ezsf
Tags: 0.7-1
* New upstream version.
* Recommend rsyslog instead of sysklogd (closes: #526922).
* update-inetd:
  + add support for enabling, disabling and removing entries;
  + use ucf for managing generated files;
  + ignore ucf files in rlinetd.conf;
  + make appropriate changes in  postinst and postrm scripts.
* Set debhelper compat level to 7
* Standards-Version: 3.8.4 (no changes). 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef H_RLINETD
 
2
#define H_RLINETD
 
3
 
 
4
#include <signal.h>
 
5
#include <syslog.h>
 
6
#include <sys/time.h>
 
7
#include <sys/types.h>
 
8
#include <sys/resource.h>
 
9
#include <unistd.h>
 
10
#include <netinet/in.h>
 
11
 
 
12
#include "buffer.h"
 
13
#include "bytecode.h"
 
14
#include "stack.h"
 
15
#include "config.h"
 
16
#include "gettext.h"
 
17
 
 
18
#define _(String) gettext (String)
 
19
#define N_(String) gettext_noop (String)
 
20
 
 
21
#ifdef __GNUC__
 
22
#define UNUSED __attribute__((unused))
 
23
#else
 
24
#define UNUSED
 
25
#endif
 
26
 
 
27
 
 
28
struct rl_cleanup {
 
29
        int type;
 
30
        void *data;
 
31
        struct rl_cleanup *next;
 
32
};
 
33
 
 
34
struct rl_instance {
 
35
        struct sockaddr *sin;
 
36
        socklen_t sinlen;
 
37
        struct rusage rusage;
 
38
        int status;
 
39
        time_t start;
 
40
        volatile time_t stop;
 
41
        int sock;
 
42
        struct rl_buffer *buf;
 
43
        struct rl_stack stk;
 
44
};
 
45
 
 
46
extern int rl_debug;
 
47
 
 
48
void run_bytecode(rl_opcode_t *, struct rl_instance *);
 
49
 
 
50
extern struct rl_cleanup *rl_cleanups;
 
51
 
 
52
void read_hook(int, rl_opcode_t *, struct rl_instance *);
 
53
void read_unhook(int);
 
54
void write_hook(int, rl_opcode_t *, struct rl_instance *);
 
55
void write_unhook(int);
 
56
void all_unhook();
 
57
 
 
58
void listeners_clear(int);
 
59
void listeners_set(int);
 
60
 
 
61
void inst_free(struct rl_instance *);
 
62
 
 
63
#endif /* !H_RLINETD */
 
64
 
 
65
/* vim: set ts=2: */