From: drakenclimber Date: Thu, 24 Mar 2022 14:05:27 +0000 (+0000) Subject: deploy: 7070f7d62e82cab495124c82f2e486220128ee36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f80ae960d1d404f40b695d1cc559bc98b934384;p=thirdparty%2Flibcgroup.git deploy: 7070f7d62e82cab495124c82f2e486220128ee36 --- diff --git a/config_8h_source.html b/config_8h_source.html index 59fa1ab5..bfbd43c2 100644 --- a/config_8h_source.html +++ b/config_8h_source.html @@ -121,7 +121,7 @@ $(function() {
int cgroup_load_templates_cache_from_files(int *file_index)
Definition: config.c:1706
void cgroup_templates_cache_set_source_files(struct cgroup_string_list *tmpl_files)
Definition: config.c:1633
int cgroup_config_unload_config(const char *pathname, int flags)
Definition: config.c:1258
-
Definition: tools-common.h:38
+
Definition: tools-common.h:41
Definition: libcgroup-internal.h:109
diff --git a/tools-common_8h_source.html b/tools-common_8h_source.html index a78aa53d..82ded199 100644 --- a/tools-common_8h_source.html +++ b/tools-common_8h_source.html @@ -88,55 +88,58 @@ $(function() {
24#define cgroup_info(x...) cgroup_log(CGROUP_LOG_INFO, "Info: " x)
25#define cgroup_dbg(x...) cgroup_log(CGROUP_LOG_DEBUG, x)
26
-
30struct cgroup_group_spec {
-
31 char path[FILENAME_MAX];
-
32 char *controllers[CG_CONTROLLER_MAX];
-
33};
-
34
-
38struct cgroup_string_list {
-
39 char **items;
-
40 int size;
-
41 int count;
-
42};
-
43
-
57int parse_cgroup_spec(struct cgroup_group_spec **cdptr, char *optarg,
-
58 int capacity);
-
59
-
64void cgroup_free_group_spec(struct cgroup_group_spec *cl);
-
65
-
66
-
72int cgroup_string_list_init(struct cgroup_string_list *list,
-
73 int initial_size);
-
74
-
79void cgroup_string_list_free(struct cgroup_string_list *list);
-
80
-
87int cgroup_string_list_add_item(struct cgroup_string_list *list,
-
88 const char *item);
-
89
-
99int cgroup_string_list_add_directory(struct cgroup_string_list *list,
-
100 char *dirname, char *program_name);
-
101
-
102
-
109int parse_mode(char *string, mode_t *pmode, const char *program_name);
-
110
-
118int parse_uid_gid(char *string, uid_t *uid, gid_t *gid,
-
119 const char *program_name);
-
120
-
126#ifdef UNIT_TEST
-
127
-
128int parse_r_flag(const char * const program_name,
-
129 const char * const name_value_str,
-
130 struct control_value * const name_value);
-
131
-
132#endif /* UNIT_TEST */
-
133
-
134#ifdef __cplusplus
-
135} /* extern "C" */
-
136#endif
-
137
-
138#endif /* TOOLS_COMMON */
-
Definition: tools-common.h:30
-
Definition: tools-common.h:38
+
27#define err(x...) fprintf(stderr, x)
+
28#define info(x...) fprintf(stdout, x)
+
29
+
33struct cgroup_group_spec {
+
34 char path[FILENAME_MAX];
+
35 char *controllers[CG_CONTROLLER_MAX];
+
36};
+
37
+
41struct cgroup_string_list {
+
42 char **items;
+
43 int size;
+
44 int count;
+
45};
+
46
+
60int parse_cgroup_spec(struct cgroup_group_spec **cdptr, char *optarg,
+
61 int capacity);
+
62
+
67void cgroup_free_group_spec(struct cgroup_group_spec *cl);
+
68
+
69
+
75int cgroup_string_list_init(struct cgroup_string_list *list,
+
76 int initial_size);
+
77
+
82void cgroup_string_list_free(struct cgroup_string_list *list);
+
83
+
90int cgroup_string_list_add_item(struct cgroup_string_list *list,
+
91 const char *item);
+
92
+
102int cgroup_string_list_add_directory(struct cgroup_string_list *list,
+
103 char *dirname, char *program_name);
+
104
+
105
+
112int parse_mode(char *string, mode_t *pmode, const char *program_name);
+
113
+
121int parse_uid_gid(char *string, uid_t *uid, gid_t *gid,
+
122 const char *program_name);
+
123
+
129#ifdef UNIT_TEST
+
130
+
131int parse_r_flag(const char * const program_name,
+
132 const char * const name_value_str,
+
133 struct control_value * const name_value);
+
134
+
135#endif /* UNIT_TEST */
+
136
+
137#ifdef __cplusplus
+
138} /* extern "C" */
+
139#endif
+
140
+
141#endif /* TOOLS_COMMON */
+
Definition: tools-common.h:33
+
Definition: tools-common.h:41
Definition: libcgroup-internal.h:85