From: drakenclimber Date: Wed, 16 Mar 2022 21:43:54 +0000 (+0000) Subject: deploy: 0827d27bfbe45d246126252d7ed525843dd08026 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b2b6305e47878b2f7b40fbeba5cd3cac6738f87;p=thirdparty%2Flibcgroup.git deploy: 0827d27bfbe45d246126252d7ed525843dd08026 --- diff --git a/cgrulesengd_8h_source.html b/cgrulesengd_8h_source.html index 0eccea75..8c04f5d7 100644 --- a/cgrulesengd_8h_source.html +++ b/cgrulesengd_8h_source.html @@ -81,55 +81,56 @@ $(function() {
16
17#include "config.h"
18#include "libcgroup.h"
-
19#include <linux/connector.h>
-
20#include <linux/cn_proc.h>
-
21
-
22#ifndef _GNU_SOURCE
-
23#define _GNU_SOURCE
-
24#endif
-
25
-
26#ifndef __USE_GNU
-
27#define __USE_GNU
-
28#endif
-
29
-
30/* The following ten macros are all for the Netlink code. */
-
31#define SEND_MESSAGE_LEN (NLMSG_LENGTH(sizeof(struct cn_msg) + \
-
32 sizeof(enum proc_cn_mcast_op)))
-
33#define RECV_MESSAGE_LEN (NLMSG_LENGTH(sizeof(struct cn_msg) + \
-
34 sizeof(struct proc_event)))
-
35
-
36#define SEND_MESSAGE_SIZE (NLMSG_SPACE(SEND_MESSAGE_LEN))
-
37#define RECV_MESSAGE_SIZE (NLMSG_SPACE(RECV_MESSAGE_LEN))
-
38
-
39#define BUFF_SIZE (max(max(SEND_MESSAGE_SIZE, RECV_MESSAGE_SIZE), 1024))
-
40#define MIN_RECV_SIZE (min(SEND_MESSAGE_SIZE, RECV_MESSAGE_SIZE))
-
41
-
42#define PROC_CN_MCAST_LISTEN (1)
-
43#define PROC_CN_MCAST_IGNORE (2)
-
44
-
52void cgre_usage(FILE *fd, const char *msg, ...);
-
53
-
62void flog(int level, const char *msg, ...);
-
63
-
72int cgre_process_event(const struct proc_event *ev, const int type);
-
73
-
81int cgre_handle_message(struct cn_msg *cn_hdr);
-
82
-
93int cgre_start_daemon(const char *logp, const int logf,
-
94 const unsigned char daemon, const int logv);
-
95
-
101void cgre_flash_rules(int signum);
-
102
-
108void cgre_flash_templates(int signum);
-
109
-
115void cgre_catch_term(int signum);
-
116
-
117#ifdef __cplusplus
-
118} /* extern "C" */
-
119#endif
-
120
-
121#endif /* _CGRULESENGD_H */
-
122
+
19
+
20#include <linux/connector.h>
+
21#include <linux/cn_proc.h>
+
22
+
23#ifndef _GNU_SOURCE
+
24#define _GNU_SOURCE
+
25#endif
+
26
+
27#ifndef __USE_GNU
+
28#define __USE_GNU
+
29#endif
+
30
+
31/* The following ten macros are all for the Netlink code. */
+
32#define SEND_MESSAGE_LEN (NLMSG_LENGTH(sizeof(struct cn_msg) + \
+
33 sizeof(enum proc_cn_mcast_op)))
+
34#define RECV_MESSAGE_LEN (NLMSG_LENGTH(sizeof(struct cn_msg) + \
+
35 sizeof(struct proc_event)))
+
36
+
37#define SEND_MESSAGE_SIZE (NLMSG_SPACE(SEND_MESSAGE_LEN))
+
38#define RECV_MESSAGE_SIZE (NLMSG_SPACE(RECV_MESSAGE_LEN))
+
39
+
40#define BUFF_SIZE (max(max(SEND_MESSAGE_SIZE, RECV_MESSAGE_SIZE), 1024))
+
41#define MIN_RECV_SIZE (min(SEND_MESSAGE_SIZE, RECV_MESSAGE_SIZE))
+
42
+
43#define PROC_CN_MCAST_LISTEN (1)
+
44#define PROC_CN_MCAST_IGNORE (2)
+
45
+
53void cgre_usage(FILE *fd, const char *msg, ...);
+
54
+
63void flog(int level, const char *msg, ...);
+
64
+
73int cgre_process_event(const struct proc_event *ev, const int type);
+
74
+
82int cgre_handle_message(struct cn_msg *cn_hdr);
+
83
+
94int cgre_start_daemon(const char *logp, const int logf,
+
95 const unsigned char daemon, const int logv);
+
96
+
102void cgre_flash_rules(int signum);
+
103
+
109void cgre_flash_templates(int signum);
+
110
+
116void cgre_catch_term(int signum);
+
117
+
118#ifdef __cplusplus
+
119} /* extern "C" */
+
120#endif
+
121
+
122#endif /* _CGRULESENGD_H */
+
123