diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-08-22 14:50:13 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-23 08:25:52 +0100 |
commit | 1e9e5d6c31469ecd10360db0ab9252fb248127aa (patch) | |
tree | cdd4e7d0f455f19cbb2bdbbaa3e687d9b352fb0e /meta/recipes-core/systemd/systemd/0005-src-basic-missing.h-check-for-missing-strndupa.patch | |
parent | 800f86a32f06bf5d7fa519cacead6d94f804bdc2 (diff) | |
download | poky-1e9e5d6c31469ecd10360db0ab9252fb248127aa.tar.gz |
systemd: upgrade 249.1 -> 249.3
The patch changes are all git rearranging chunks on rebase; there are no functional changes.
(From OE-Core rev: 88cfba0762fe3bb6f593901f9a673b373534b756)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0005-src-basic-missing.h-check-for-missing-strndupa.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0005-src-basic-missing.h-check-for-missing-strndupa.patch | 247 |
1 files changed, 174 insertions, 73 deletions
diff --git a/meta/recipes-core/systemd/systemd/0005-src-basic-missing.h-check-for-missing-strndupa.patch b/meta/recipes-core/systemd/systemd/0005-src-basic-missing.h-check-for-missing-strndupa.patch index c863fc995c..0462d52d5e 100644 --- a/meta/recipes-core/systemd/systemd/0005-src-basic-missing.h-check-for-missing-strndupa.patch +++ b/meta/recipes-core/systemd/systemd/0005-src-basic-missing.h-check-for-missing-strndupa.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 6b0732ac7164914ce16e231e35980b849bdfc4c8 Mon Sep 17 00:00:00 2001 | 1 | From db6551741a3654d8e75aff93ea00fbff579f7b02 Mon Sep 17 00:00:00 2001 |
2 | From: Chen Qi <Qi.Chen@windriver.com> | 2 | From: Chen Qi <Qi.Chen@windriver.com> |
3 | Date: Mon, 25 Feb 2019 14:18:21 +0800 | 3 | Date: Mon, 25 Feb 2019 14:18:21 +0800 |
4 | Subject: [PATCH] src/basic/missing.h: check for missing strndupa | 4 | Subject: [PATCH] src/basic/missing.h: check for missing strndupa |
@@ -29,9 +29,9 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
29 | src/basic/mountpoint-util.c | 1 + | 29 | src/basic/mountpoint-util.c | 1 + |
30 | src/basic/parse-util.c | 1 + | 30 | src/basic/parse-util.c | 1 + |
31 | src/basic/path-lookup.c | 1 + | 31 | src/basic/path-lookup.c | 1 + |
32 | src/basic/percent-util.c | 1 + | ||
32 | src/basic/proc-cmdline.c | 1 + | 33 | src/basic/proc-cmdline.c | 1 + |
33 | src/basic/procfs-util.c | 1 + | 34 | src/basic/procfs-util.c | 1 + |
34 | src/basic/selinux-util.c | 1 + | ||
35 | src/basic/time-util.c | 1 + | 35 | src/basic/time-util.c | 1 + |
36 | src/boot/bless-boot.c | 1 + | 36 | src/boot/bless-boot.c | 1 + |
37 | src/core/dbus-cgroup.c | 1 + | 37 | src/core/dbus-cgroup.c | 1 + |
@@ -72,16 +72,20 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
72 | src/udev/udev-rules.c | 1 + | 72 | src/udev/udev-rules.c | 1 + |
73 | 51 files changed, 62 insertions(+) | 73 | 51 files changed, 62 insertions(+) |
74 | 74 | ||
75 | diff --git a/meson.build b/meson.build | ||
76 | index 1aa20b8246..aafee71eb4 100644 | ||
75 | --- a/meson.build | 77 | --- a/meson.build |
76 | +++ b/meson.build | 78 | +++ b/meson.build |
77 | @@ -480,6 +480,7 @@ foreach ident : ['secure_getenv', '__sec | 79 | @@ -480,6 +480,7 @@ foreach ident : ['secure_getenv', '__secure_getenv'] |
78 | endforeach | 80 | endforeach |
79 | 81 | ||
80 | foreach ident : [ | 82 | foreach ident : [ |
81 | + ['strndupa' , '''#include <string.h>'''], | 83 | + ['strndupa' , '''#include <string.h>'''], |
82 | ['memfd_create', '''#include <sys/mman.h>'''], | 84 | ['memfd_create', '''#include <sys/mman.h>'''], |
83 | ['gettid', '''#include <sys/types.h> | 85 | ['gettid', '''#include <sys/types.h> |
84 | #include <unistd.h>'''], | 86 | #include <unistd.h>'''], |
87 | diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c | ||
88 | index 7c0970a60c..c129ff0f4f 100644 | ||
85 | --- a/src/backlight/backlight.c | 89 | --- a/src/backlight/backlight.c |
86 | +++ b/src/backlight/backlight.c | 90 | +++ b/src/backlight/backlight.c |
87 | @@ -19,6 +19,7 @@ | 91 | @@ -19,6 +19,7 @@ |
@@ -89,9 +93,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
89 | #include "strv.h" | 93 | #include "strv.h" |
90 | #include "util.h" | 94 | #include "util.h" |
91 | +#include "missing_stdlib.h" | 95 | +#include "missing_stdlib.h" |
92 | 96 | ||
93 | static int help(void) { | 97 | static int help(void) { |
94 | _cleanup_free_ char *link = NULL; | 98 | _cleanup_free_ char *link = NULL; |
99 | diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c | ||
100 | index 1ff6160dc8..c9efd862a2 100644 | ||
95 | --- a/src/basic/cgroup-util.c | 101 | --- a/src/basic/cgroup-util.c |
96 | +++ b/src/basic/cgroup-util.c | 102 | +++ b/src/basic/cgroup-util.c |
97 | @@ -38,6 +38,7 @@ | 103 | @@ -38,6 +38,7 @@ |
@@ -99,9 +105,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
99 | #include "user-util.h" | 105 | #include "user-util.h" |
100 | #include "xattr-util.h" | 106 | #include "xattr-util.h" |
101 | +#include "missing_stdlib.h" | 107 | +#include "missing_stdlib.h" |
102 | 108 | ||
103 | static int cg_enumerate_items(const char *controller, const char *path, FILE **_f, const char *item) { | 109 | static int cg_enumerate_items(const char *controller, const char *path, FILE **_f, const char *item) { |
104 | _cleanup_free_ char *fs = NULL; | 110 | _cleanup_free_ char *fs = NULL; |
111 | diff --git a/src/basic/env-util.c b/src/basic/env-util.c | ||
112 | index 81b1e3f10e..8fedcfd1cd 100644 | ||
105 | --- a/src/basic/env-util.c | 113 | --- a/src/basic/env-util.c |
106 | +++ b/src/basic/env-util.c | 114 | +++ b/src/basic/env-util.c |
107 | @@ -18,6 +18,7 @@ | 115 | @@ -18,6 +18,7 @@ |
@@ -109,9 +117,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
109 | #include "strv.h" | 117 | #include "strv.h" |
110 | #include "utf8.h" | 118 | #include "utf8.h" |
111 | +#include "missing_stdlib.h" | 119 | +#include "missing_stdlib.h" |
112 | 120 | ||
113 | /* We follow bash for the character set. Different shells have different rules. */ | 121 | /* We follow bash for the character set. Different shells have different rules. */ |
114 | #define VALID_BASH_ENV_NAME_CHARS \ | 122 | #define VALID_BASH_ENV_NAME_CHARS \ |
123 | diff --git a/src/basic/log.c b/src/basic/log.c | ||
124 | index fb183ea9e7..82e7bdff60 100644 | ||
115 | --- a/src/basic/log.c | 125 | --- a/src/basic/log.c |
116 | +++ b/src/basic/log.c | 126 | +++ b/src/basic/log.c |
117 | @@ -36,6 +36,7 @@ | 127 | @@ -36,6 +36,7 @@ |
@@ -119,9 +129,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
119 | #include "time-util.h" | 129 | #include "time-util.h" |
120 | #include "utf8.h" | 130 | #include "utf8.h" |
121 | +#include "missing_stdlib.h" | 131 | +#include "missing_stdlib.h" |
122 | 132 | ||
123 | #define SNDBUF_SIZE (8*1024*1024) | 133 | #define SNDBUF_SIZE (8*1024*1024) |
124 | 134 | ||
135 | diff --git a/src/basic/missing_stdlib.h b/src/basic/missing_stdlib.h | ||
136 | index 8c76f93eb2..9068bfb4f0 100644 | ||
125 | --- a/src/basic/missing_stdlib.h | 137 | --- a/src/basic/missing_stdlib.h |
126 | +++ b/src/basic/missing_stdlib.h | 138 | +++ b/src/basic/missing_stdlib.h |
127 | @@ -11,3 +11,15 @@ | 139 | @@ -11,3 +11,15 @@ |
@@ -140,6 +152,8 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
140 | + (char *)memcpy(__new, __old, __len); \ | 152 | + (char *)memcpy(__new, __old, __len); \ |
141 | + }) | 153 | + }) |
142 | +#endif | 154 | +#endif |
155 | diff --git a/src/basic/mkdir.c b/src/basic/mkdir.c | ||
156 | index f91f8f7a08..fb31596216 100644 | ||
143 | --- a/src/basic/mkdir.c | 157 | --- a/src/basic/mkdir.c |
144 | +++ b/src/basic/mkdir.c | 158 | +++ b/src/basic/mkdir.c |
145 | @@ -14,6 +14,7 @@ | 159 | @@ -14,6 +14,7 @@ |
@@ -147,9 +161,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
147 | #include "stdio-util.h" | 161 | #include "stdio-util.h" |
148 | #include "user-util.h" | 162 | #include "user-util.h" |
149 | +#include "missing_stdlib.h" | 163 | +#include "missing_stdlib.h" |
150 | 164 | ||
151 | int mkdir_safe_internal( | 165 | int mkdir_safe_internal( |
152 | const char *path, | 166 | const char *path, |
167 | diff --git a/src/basic/mountpoint-util.c b/src/basic/mountpoint-util.c | ||
168 | index 8c836a1b74..2eb7e5a634 100644 | ||
153 | --- a/src/basic/mountpoint-util.c | 169 | --- a/src/basic/mountpoint-util.c |
154 | +++ b/src/basic/mountpoint-util.c | 170 | +++ b/src/basic/mountpoint-util.c |
155 | @@ -11,6 +11,7 @@ | 171 | @@ -11,6 +11,7 @@ |
@@ -160,6 +176,8 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
160 | #include "mountpoint-util.h" | 176 | #include "mountpoint-util.h" |
161 | #include "parse-util.h" | 177 | #include "parse-util.h" |
162 | #include "path-util.h" | 178 | #include "path-util.h" |
179 | diff --git a/src/basic/parse-util.c b/src/basic/parse-util.c | ||
180 | index b79c885dfd..6dabda5691 100644 | ||
163 | --- a/src/basic/parse-util.c | 181 | --- a/src/basic/parse-util.c |
164 | +++ b/src/basic/parse-util.c | 182 | +++ b/src/basic/parse-util.c |
165 | @@ -19,6 +19,7 @@ | 183 | @@ -19,6 +19,7 @@ |
@@ -167,9 +185,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
167 | #include "string-util.h" | 185 | #include "string-util.h" |
168 | #include "strv.h" | 186 | #include "strv.h" |
169 | +#include "missing_stdlib.h" | 187 | +#include "missing_stdlib.h" |
170 | 188 | ||
171 | int parse_boolean(const char *v) { | 189 | int parse_boolean(const char *v) { |
172 | if (!v) | 190 | if (!v) |
191 | diff --git a/src/basic/path-lookup.c b/src/basic/path-lookup.c | ||
192 | index 05eb17d66c..b6026aab28 100644 | ||
173 | --- a/src/basic/path-lookup.c | 193 | --- a/src/basic/path-lookup.c |
174 | +++ b/src/basic/path-lookup.c | 194 | +++ b/src/basic/path-lookup.c |
175 | @@ -15,6 +15,7 @@ | 195 | @@ -15,6 +15,7 @@ |
@@ -177,9 +197,23 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
177 | #include "tmpfile-util.h" | 197 | #include "tmpfile-util.h" |
178 | #include "user-util.h" | 198 | #include "user-util.h" |
179 | +#include "missing_stdlib.h" | 199 | +#include "missing_stdlib.h" |
180 | 200 | ||
181 | int xdg_user_runtime_dir(char **ret, const char *suffix) { | 201 | int xdg_user_runtime_dir(char **ret, const char *suffix) { |
182 | const char *e; | 202 | const char *e; |
203 | diff --git a/src/basic/percent-util.c b/src/basic/percent-util.c | ||
204 | index 06f20fd61e..8159d721bb 100644 | ||
205 | --- a/src/basic/percent-util.c | ||
206 | +++ b/src/basic/percent-util.c | ||
207 | @@ -3,6 +3,7 @@ | ||
208 | #include "percent-util.h" | ||
209 | #include "string-util.h" | ||
210 | #include "parse-util.h" | ||
211 | +#include "missing_stdlib.h" | ||
212 | |||
213 | static int parse_parts_value_whole(const char *p, const char *symbol) { | ||
214 | const char *pc, *n; | ||
215 | diff --git a/src/basic/proc-cmdline.c b/src/basic/proc-cmdline.c | ||
216 | index 410b8a3eb5..f2c4355609 100644 | ||
183 | --- a/src/basic/proc-cmdline.c | 217 | --- a/src/basic/proc-cmdline.c |
184 | +++ b/src/basic/proc-cmdline.c | 218 | +++ b/src/basic/proc-cmdline.c |
185 | @@ -15,6 +15,7 @@ | 219 | @@ -15,6 +15,7 @@ |
@@ -187,9 +221,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
187 | #include "util.h" | 221 | #include "util.h" |
188 | #include "virt.h" | 222 | #include "virt.h" |
189 | +#include "missing_stdlib.h" | 223 | +#include "missing_stdlib.h" |
190 | 224 | ||
191 | int proc_cmdline(char **ret) { | 225 | int proc_cmdline(char **ret) { |
192 | const char *e; | 226 | const char *e; |
227 | diff --git a/src/basic/procfs-util.c b/src/basic/procfs-util.c | ||
228 | index 9234ccaf85..8c57094225 100644 | ||
193 | --- a/src/basic/procfs-util.c | 229 | --- a/src/basic/procfs-util.c |
194 | +++ b/src/basic/procfs-util.c | 230 | +++ b/src/basic/procfs-util.c |
195 | @@ -11,6 +11,7 @@ | 231 | @@ -11,6 +11,7 @@ |
@@ -197,9 +233,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
197 | #include "stdio-util.h" | 233 | #include "stdio-util.h" |
198 | #include "string-util.h" | 234 | #include "string-util.h" |
199 | +#include "missing_stdlib.h" | 235 | +#include "missing_stdlib.h" |
200 | 236 | ||
201 | int procfs_tasks_get_limit(uint64_t *ret) { | 237 | int procfs_tasks_get_limit(uint64_t *ret) { |
202 | _cleanup_free_ char *value = NULL; | 238 | _cleanup_free_ char *value = NULL; |
239 | diff --git a/src/basic/time-util.c b/src/basic/time-util.c | ||
240 | index 5d162e8ffe..1cde8e4262 100644 | ||
203 | --- a/src/basic/time-util.c | 241 | --- a/src/basic/time-util.c |
204 | +++ b/src/basic/time-util.c | 242 | +++ b/src/basic/time-util.c |
205 | @@ -26,6 +26,7 @@ | 243 | @@ -26,6 +26,7 @@ |
@@ -207,9 +245,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
207 | #include "strv.h" | 245 | #include "strv.h" |
208 | #include "time-util.h" | 246 | #include "time-util.h" |
209 | +#include "missing_stdlib.h" | 247 | +#include "missing_stdlib.h" |
210 | 248 | ||
211 | static clockid_t map_clock_id(clockid_t c) { | 249 | static clockid_t map_clock_id(clockid_t c) { |
212 | 250 | ||
251 | diff --git a/src/boot/bless-boot.c b/src/boot/bless-boot.c | ||
252 | index 3fc319ca27..90064c90f3 100644 | ||
213 | --- a/src/boot/bless-boot.c | 253 | --- a/src/boot/bless-boot.c |
214 | +++ b/src/boot/bless-boot.c | 254 | +++ b/src/boot/bless-boot.c |
215 | @@ -18,6 +18,7 @@ | 255 | @@ -18,6 +18,7 @@ |
@@ -217,9 +257,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
217 | #include "verbs.h" | 257 | #include "verbs.h" |
218 | #include "virt.h" | 258 | #include "virt.h" |
219 | +#include "missing_stdlib.h" | 259 | +#include "missing_stdlib.h" |
220 | 260 | ||
221 | static char **arg_path = NULL; | 261 | static char **arg_path = NULL; |
222 | 262 | ||
263 | diff --git a/src/core/dbus-cgroup.c b/src/core/dbus-cgroup.c | ||
264 | index 84c3caf3a5..0fa84eaa38 100644 | ||
223 | --- a/src/core/dbus-cgroup.c | 265 | --- a/src/core/dbus-cgroup.c |
224 | +++ b/src/core/dbus-cgroup.c | 266 | +++ b/src/core/dbus-cgroup.c |
225 | @@ -20,6 +20,7 @@ | 267 | @@ -20,6 +20,7 @@ |
@@ -227,9 +269,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
227 | #include "path-util.h" | 269 | #include "path-util.h" |
228 | #include "percent-util.h" | 270 | #include "percent-util.h" |
229 | +#include "missing_stdlib.h" | 271 | +#include "missing_stdlib.h" |
230 | 272 | ||
231 | BUS_DEFINE_PROPERTY_GET(bus_property_get_tasks_max, "t", TasksMax, tasks_max_resolve); | 273 | BUS_DEFINE_PROPERTY_GET(bus_property_get_tasks_max, "t", TasksMax, tasks_max_resolve); |
232 | 274 | ||
275 | diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c | ||
276 | index 50daef6702..1cc6d91e64 100644 | ||
233 | --- a/src/core/dbus-execute.c | 277 | --- a/src/core/dbus-execute.c |
234 | +++ b/src/core/dbus-execute.c | 278 | +++ b/src/core/dbus-execute.c |
235 | @@ -42,6 +42,7 @@ | 279 | @@ -42,6 +42,7 @@ |
@@ -237,9 +281,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
237 | #include "user-util.h" | 281 | #include "user-util.h" |
238 | #include "utf8.h" | 282 | #include "utf8.h" |
239 | +#include "missing_stdlib.h" | 283 | +#include "missing_stdlib.h" |
240 | 284 | ||
241 | BUS_DEFINE_PROPERTY_GET_ENUM(bus_property_get_exec_output, exec_output, ExecOutput); | 285 | BUS_DEFINE_PROPERTY_GET_ENUM(bus_property_get_exec_output, exec_output, ExecOutput); |
242 | static BUS_DEFINE_PROPERTY_GET_ENUM(property_get_exec_input, exec_input, ExecInput); | 286 | static BUS_DEFINE_PROPERTY_GET_ENUM(property_get_exec_input, exec_input, ExecInput); |
287 | diff --git a/src/core/dbus-util.c b/src/core/dbus-util.c | ||
288 | index ca9b399d8c..b864480a8c 100644 | ||
243 | --- a/src/core/dbus-util.c | 289 | --- a/src/core/dbus-util.c |
244 | +++ b/src/core/dbus-util.c | 290 | +++ b/src/core/dbus-util.c |
245 | @@ -9,6 +9,7 @@ | 291 | @@ -9,6 +9,7 @@ |
@@ -247,9 +293,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
247 | #include "user-util.h" | 293 | #include "user-util.h" |
248 | #include "unit.h" | 294 | #include "unit.h" |
249 | +#include "missing_stdlib.h" | 295 | +#include "missing_stdlib.h" |
250 | 296 | ||
251 | int bus_property_get_triggered_unit( | 297 | int bus_property_get_triggered_unit( |
252 | sd_bus *bus, | 298 | sd_bus *bus, |
299 | diff --git a/src/core/execute.c b/src/core/execute.c | ||
300 | index 2a337b55a2..2a64675c5f 100644 | ||
253 | --- a/src/core/execute.c | 301 | --- a/src/core/execute.c |
254 | +++ b/src/core/execute.c | 302 | +++ b/src/core/execute.c |
255 | @@ -98,6 +98,7 @@ | 303 | @@ -98,6 +98,7 @@ |
@@ -257,9 +305,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
257 | #include "user-util.h" | 305 | #include "user-util.h" |
258 | #include "utmp-wtmp.h" | 306 | #include "utmp-wtmp.h" |
259 | +#include "missing_stdlib.h" | 307 | +#include "missing_stdlib.h" |
260 | 308 | ||
261 | #define IDLE_TIMEOUT_USEC (5*USEC_PER_SEC) | 309 | #define IDLE_TIMEOUT_USEC (5*USEC_PER_SEC) |
262 | #define IDLE_TIMEOUT2_USEC (1*USEC_PER_SEC) | 310 | #define IDLE_TIMEOUT2_USEC (1*USEC_PER_SEC) |
311 | diff --git a/src/core/kmod-setup.c b/src/core/kmod-setup.c | ||
312 | index a56f12f47f..6b8729ef67 100644 | ||
263 | --- a/src/core/kmod-setup.c | 313 | --- a/src/core/kmod-setup.c |
264 | +++ b/src/core/kmod-setup.c | 314 | +++ b/src/core/kmod-setup.c |
265 | @@ -11,6 +11,7 @@ | 315 | @@ -11,6 +11,7 @@ |
@@ -267,9 +317,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
267 | #include "string-util.h" | 317 | #include "string-util.h" |
268 | #include "missing_type.h" | 318 | #include "missing_type.h" |
269 | +#include "missing_stdlib.h" | 319 | +#include "missing_stdlib.h" |
270 | 320 | ||
271 | #if HAVE_KMOD | 321 | #if HAVE_KMOD |
272 | #include "module-util.h" | 322 | #include "module-util.h" |
323 | diff --git a/src/core/service.c b/src/core/service.c | ||
324 | index cb0a528f0d..740d305710 100644 | ||
273 | --- a/src/core/service.c | 325 | --- a/src/core/service.c |
274 | +++ b/src/core/service.c | 326 | +++ b/src/core/service.c |
275 | @@ -41,6 +41,7 @@ | 327 | @@ -41,6 +41,7 @@ |
@@ -277,9 +329,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
277 | #include "utf8.h" | 329 | #include "utf8.h" |
278 | #include "util.h" | 330 | #include "util.h" |
279 | +#include "missing_stdlib.h" | 331 | +#include "missing_stdlib.h" |
280 | 332 | ||
281 | static const UnitActiveState state_translation_table[_SERVICE_STATE_MAX] = { | 333 | static const UnitActiveState state_translation_table[_SERVICE_STATE_MAX] = { |
282 | [SERVICE_DEAD] = UNIT_INACTIVE, | 334 | [SERVICE_DEAD] = UNIT_INACTIVE, |
335 | diff --git a/src/coredump/coredump-vacuum.c b/src/coredump/coredump-vacuum.c | ||
336 | index 95c3fca661..d4a9f27b08 100644 | ||
283 | --- a/src/coredump/coredump-vacuum.c | 337 | --- a/src/coredump/coredump-vacuum.c |
284 | +++ b/src/coredump/coredump-vacuum.c | 338 | +++ b/src/coredump/coredump-vacuum.c |
285 | @@ -16,6 +16,7 @@ | 339 | @@ -16,6 +16,7 @@ |
@@ -287,9 +341,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
287 | #include "time-util.h" | 341 | #include "time-util.h" |
288 | #include "user-util.h" | 342 | #include "user-util.h" |
289 | +#include "missing_stdlib.h" | 343 | +#include "missing_stdlib.h" |
290 | 344 | ||
291 | #define DEFAULT_MAX_USE_LOWER (uint64_t) (1ULL*1024ULL*1024ULL) /* 1 MiB */ | 345 | #define DEFAULT_MAX_USE_LOWER (uint64_t) (1ULL*1024ULL*1024ULL) /* 1 MiB */ |
292 | #define DEFAULT_MAX_USE_UPPER (uint64_t) (4ULL*1024ULL*1024ULL*1024ULL) /* 4 GiB */ | 346 | #define DEFAULT_MAX_USE_UPPER (uint64_t) (4ULL*1024ULL*1024ULL*1024ULL) /* 4 GiB */ |
347 | diff --git a/src/journal-remote/journal-remote-main.c b/src/journal-remote/journal-remote-main.c | ||
348 | index ae1d43756a..24de98c9f3 100644 | ||
293 | --- a/src/journal-remote/journal-remote-main.c | 349 | --- a/src/journal-remote/journal-remote-main.c |
294 | +++ b/src/journal-remote/journal-remote-main.c | 350 | +++ b/src/journal-remote/journal-remote-main.c |
295 | @@ -24,6 +24,7 @@ | 351 | @@ -24,6 +24,7 @@ |
@@ -297,9 +353,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
297 | #include "string-table.h" | 353 | #include "string-table.h" |
298 | #include "strv.h" | 354 | #include "strv.h" |
299 | +#include "missing_stdlib.h" | 355 | +#include "missing_stdlib.h" |
300 | 356 | ||
301 | #define PRIV_KEY_FILE CERTIFICATE_ROOT "/private/journal-remote.pem" | 357 | #define PRIV_KEY_FILE CERTIFICATE_ROOT "/private/journal-remote.pem" |
302 | #define CERT_FILE CERTIFICATE_ROOT "/certs/journal-remote.pem" | 358 | #define CERT_FILE CERTIFICATE_ROOT "/certs/journal-remote.pem" |
359 | diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c | ||
360 | index c8fb726d42..858a425d12 100644 | ||
303 | --- a/src/journal/journalctl.c | 361 | --- a/src/journal/journalctl.c |
304 | +++ b/src/journal/journalctl.c | 362 | +++ b/src/journal/journalctl.c |
305 | @@ -72,6 +72,7 @@ | 363 | @@ -72,6 +72,7 @@ |
@@ -307,9 +365,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
307 | #include "user-util.h" | 365 | #include "user-util.h" |
308 | #include "varlink.h" | 366 | #include "varlink.h" |
309 | +#include "missing_stdlib.h" | 367 | +#include "missing_stdlib.h" |
310 | 368 | ||
311 | #define DEFAULT_FSS_INTERVAL_USEC (15*USEC_PER_MINUTE) | 369 | #define DEFAULT_FSS_INTERVAL_USEC (15*USEC_PER_MINUTE) |
312 | #define PROCESS_INOTIFY_INTERVAL 1024 /* Every 1,024 messages processed */ | 370 | #define PROCESS_INOTIFY_INTERVAL 1024 /* Every 1,024 messages processed */ |
371 | diff --git a/src/libsystemd/sd-bus/bus-message.c b/src/libsystemd/sd-bus/bus-message.c | ||
372 | index 20f7396c74..3471311ef5 100644 | ||
313 | --- a/src/libsystemd/sd-bus/bus-message.c | 373 | --- a/src/libsystemd/sd-bus/bus-message.c |
314 | +++ b/src/libsystemd/sd-bus/bus-message.c | 374 | +++ b/src/libsystemd/sd-bus/bus-message.c |
315 | @@ -20,6 +20,7 @@ | 375 | @@ -20,6 +20,7 @@ |
@@ -317,9 +377,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
317 | #include "time-util.h" | 377 | #include "time-util.h" |
318 | #include "utf8.h" | 378 | #include "utf8.h" |
319 | +#include "missing_stdlib.h" | 379 | +#include "missing_stdlib.h" |
320 | 380 | ||
321 | static int message_append_basic(sd_bus_message *m, char type, const void *p, const void **stored); | 381 | static int message_append_basic(sd_bus_message *m, char type, const void *p, const void **stored); |
322 | 382 | ||
383 | diff --git a/src/libsystemd/sd-bus/bus-objects.c b/src/libsystemd/sd-bus/bus-objects.c | ||
384 | index bfd42aea7d..daefc56e3e 100644 | ||
323 | --- a/src/libsystemd/sd-bus/bus-objects.c | 385 | --- a/src/libsystemd/sd-bus/bus-objects.c |
324 | +++ b/src/libsystemd/sd-bus/bus-objects.c | 386 | +++ b/src/libsystemd/sd-bus/bus-objects.c |
325 | @@ -12,6 +12,7 @@ | 387 | @@ -12,6 +12,7 @@ |
@@ -327,9 +389,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
327 | #include "string-util.h" | 389 | #include "string-util.h" |
328 | #include "strv.h" | 390 | #include "strv.h" |
329 | +#include "missing_stdlib.h" | 391 | +#include "missing_stdlib.h" |
330 | 392 | ||
331 | static int node_vtable_get_userdata( | 393 | static int node_vtable_get_userdata( |
332 | sd_bus *bus, | 394 | sd_bus *bus, |
395 | diff --git a/src/libsystemd/sd-bus/bus-socket.c b/src/libsystemd/sd-bus/bus-socket.c | ||
396 | index 378774fe8b..2694c177d5 100644 | ||
333 | --- a/src/libsystemd/sd-bus/bus-socket.c | 397 | --- a/src/libsystemd/sd-bus/bus-socket.c |
334 | +++ b/src/libsystemd/sd-bus/bus-socket.c | 398 | +++ b/src/libsystemd/sd-bus/bus-socket.c |
335 | @@ -27,6 +27,7 @@ | 399 | @@ -27,6 +27,7 @@ |
@@ -337,9 +401,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
337 | #include "user-util.h" | 401 | #include "user-util.h" |
338 | #include "utf8.h" | 402 | #include "utf8.h" |
339 | +#include "missing_stdlib.h" | 403 | +#include "missing_stdlib.h" |
340 | 404 | ||
341 | #define SNDBUF_SIZE (8*1024*1024) | 405 | #define SNDBUF_SIZE (8*1024*1024) |
342 | 406 | ||
407 | diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c | ||
408 | index a32e2f5e20..97fd3aec82 100644 | ||
343 | --- a/src/libsystemd/sd-bus/sd-bus.c | 409 | --- a/src/libsystemd/sd-bus/sd-bus.c |
344 | +++ b/src/libsystemd/sd-bus/sd-bus.c | 410 | +++ b/src/libsystemd/sd-bus/sd-bus.c |
345 | @@ -42,6 +42,7 @@ | 411 | @@ -42,6 +42,7 @@ |
@@ -347,9 +413,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
347 | #include "strv.h" | 413 | #include "strv.h" |
348 | #include "user-util.h" | 414 | #include "user-util.h" |
349 | +#include "missing_stdlib.h" | 415 | +#include "missing_stdlib.h" |
350 | 416 | ||
351 | #define log_debug_bus_message(m) \ | 417 | #define log_debug_bus_message(m) \ |
352 | do { \ | 418 | do { \ |
419 | diff --git a/src/libsystemd/sd-bus/test-bus-benchmark.c b/src/libsystemd/sd-bus/test-bus-benchmark.c | ||
420 | index 13c08fe295..9aae83486e 100644 | ||
353 | --- a/src/libsystemd/sd-bus/test-bus-benchmark.c | 421 | --- a/src/libsystemd/sd-bus/test-bus-benchmark.c |
354 | +++ b/src/libsystemd/sd-bus/test-bus-benchmark.c | 422 | +++ b/src/libsystemd/sd-bus/test-bus-benchmark.c |
355 | @@ -14,6 +14,7 @@ | 423 | @@ -14,6 +14,7 @@ |
@@ -357,9 +425,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
357 | #include "time-util.h" | 425 | #include "time-util.h" |
358 | #include "util.h" | 426 | #include "util.h" |
359 | +#include "missing_stdlib.h" | 427 | +#include "missing_stdlib.h" |
360 | 428 | ||
361 | #define MAX_SIZE (2*1024*1024) | 429 | #define MAX_SIZE (2*1024*1024) |
362 | 430 | ||
431 | diff --git a/src/libsystemd/sd-journal/sd-journal.c b/src/libsystemd/sd-journal/sd-journal.c | ||
432 | index 5728c537bc..94885b0bf6 100644 | ||
363 | --- a/src/libsystemd/sd-journal/sd-journal.c | 433 | --- a/src/libsystemd/sd-journal/sd-journal.c |
364 | +++ b/src/libsystemd/sd-journal/sd-journal.c | 434 | +++ b/src/libsystemd/sd-journal/sd-journal.c |
365 | @@ -40,6 +40,7 @@ | 435 | @@ -40,6 +40,7 @@ |
@@ -367,9 +437,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
367 | #include "strv.h" | 437 | #include "strv.h" |
368 | #include "syslog-util.h" | 438 | #include "syslog-util.h" |
369 | +#include "missing_stdlib.h" | 439 | +#include "missing_stdlib.h" |
370 | 440 | ||
371 | #define JOURNAL_FILES_MAX 7168 | 441 | #define JOURNAL_FILES_MAX 7168 |
372 | 442 | ||
443 | diff --git a/src/locale/keymap-util.c b/src/locale/keymap-util.c | ||
444 | index d2f0566dbc..3b7746557e 100644 | ||
373 | --- a/src/locale/keymap-util.c | 445 | --- a/src/locale/keymap-util.c |
374 | +++ b/src/locale/keymap-util.c | 446 | +++ b/src/locale/keymap-util.c |
375 | @@ -24,6 +24,7 @@ | 447 | @@ -24,6 +24,7 @@ |
@@ -377,9 +449,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
377 | #include "strv.h" | 449 | #include "strv.h" |
378 | #include "tmpfile-util.h" | 450 | #include "tmpfile-util.h" |
379 | +#include "missing_stdlib.h" | 451 | +#include "missing_stdlib.h" |
380 | 452 | ||
381 | static bool startswith_comma(const char *s, const char *prefix) { | 453 | static bool startswith_comma(const char *s, const char *prefix) { |
382 | s = startswith(s, prefix); | 454 | s = startswith(s, prefix); |
455 | diff --git a/src/login/pam_systemd.c b/src/login/pam_systemd.c | ||
456 | index f8bd17eefe..9633fbc152 100644 | ||
383 | --- a/src/login/pam_systemd.c | 457 | --- a/src/login/pam_systemd.c |
384 | +++ b/src/login/pam_systemd.c | 458 | +++ b/src/login/pam_systemd.c |
385 | @@ -31,6 +31,7 @@ | 459 | @@ -31,6 +31,7 @@ |
@@ -390,6 +464,8 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
390 | #include "pam-util.h" | 464 | #include "pam-util.h" |
391 | #include "parse-util.h" | 465 | #include "parse-util.h" |
392 | #include "path-util.h" | 466 | #include "path-util.h" |
467 | diff --git a/src/network/generator/network-generator.c b/src/network/generator/network-generator.c | ||
468 | index 60e074e99b..a728e3b7a1 100644 | ||
393 | --- a/src/network/generator/network-generator.c | 469 | --- a/src/network/generator/network-generator.c |
394 | +++ b/src/network/generator/network-generator.c | 470 | +++ b/src/network/generator/network-generator.c |
395 | @@ -13,6 +13,7 @@ | 471 | @@ -13,6 +13,7 @@ |
@@ -397,9 +473,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
397 | #include "string-util.h" | 473 | #include "string-util.h" |
398 | #include "strv.h" | 474 | #include "strv.h" |
399 | +#include "missing_stdlib.h" | 475 | +#include "missing_stdlib.h" |
400 | 476 | ||
401 | /* | 477 | /* |
402 | # .network | 478 | # .network |
479 | diff --git a/src/nspawn/nspawn-settings.c b/src/nspawn/nspawn-settings.c | ||
480 | index 3847fe4ec4..3696b57baa 100644 | ||
403 | --- a/src/nspawn/nspawn-settings.c | 481 | --- a/src/nspawn/nspawn-settings.c |
404 | +++ b/src/nspawn/nspawn-settings.c | 482 | +++ b/src/nspawn/nspawn-settings.c |
405 | @@ -17,6 +17,7 @@ | 483 | @@ -17,6 +17,7 @@ |
@@ -407,9 +485,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
407 | #include "user-util.h" | 485 | #include "user-util.h" |
408 | #include "util.h" | 486 | #include "util.h" |
409 | +#include "missing_stdlib.h" | 487 | +#include "missing_stdlib.h" |
410 | 488 | ||
411 | Settings *settings_new(void) { | 489 | Settings *settings_new(void) { |
412 | Settings *s; | 490 | Settings *s; |
491 | diff --git a/src/nss-mymachines/nss-mymachines.c b/src/nss-mymachines/nss-mymachines.c | ||
492 | index 44715bb3e5..bc1e688b5e 100644 | ||
413 | --- a/src/nss-mymachines/nss-mymachines.c | 493 | --- a/src/nss-mymachines/nss-mymachines.c |
414 | +++ b/src/nss-mymachines/nss-mymachines.c | 494 | +++ b/src/nss-mymachines/nss-mymachines.c |
415 | @@ -21,6 +21,7 @@ | 495 | @@ -21,6 +21,7 @@ |
@@ -417,9 +497,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
417 | #include "signal-util.h" | 497 | #include "signal-util.h" |
418 | #include "string-util.h" | 498 | #include "string-util.h" |
419 | +#include "missing_stdlib.h" | 499 | +#include "missing_stdlib.h" |
420 | 500 | ||
421 | static void setup_logging(void) { | 501 | static void setup_logging(void) { |
422 | /* We need a dummy function because log_parse_environment is a macro. */ | 502 | /* We need a dummy function because log_parse_environment is a macro. */ |
503 | diff --git a/src/portable/portable.c b/src/portable/portable.c | ||
504 | index 4cf5fb4f0a..577dc5c8d7 100644 | ||
423 | --- a/src/portable/portable.c | 505 | --- a/src/portable/portable.c |
424 | +++ b/src/portable/portable.c | 506 | +++ b/src/portable/portable.c |
425 | @@ -34,6 +34,7 @@ | 507 | @@ -34,6 +34,7 @@ |
@@ -427,9 +509,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
427 | #include "tmpfile-util.h" | 509 | #include "tmpfile-util.h" |
428 | #include "user-util.h" | 510 | #include "user-util.h" |
429 | +#include "missing_stdlib.h" | 511 | +#include "missing_stdlib.h" |
430 | 512 | ||
431 | static const char profile_dirs[] = CONF_PATHS_NULSTR("systemd/portable/profile"); | 513 | static const char profile_dirs[] = CONF_PATHS_NULSTR("systemd/portable/profile"); |
432 | 514 | ||
515 | diff --git a/src/resolve/resolvectl.c b/src/resolve/resolvectl.c | ||
516 | index 7d13ed3905..ddc37115b8 100644 | ||
433 | --- a/src/resolve/resolvectl.c | 517 | --- a/src/resolve/resolvectl.c |
434 | +++ b/src/resolve/resolvectl.c | 518 | +++ b/src/resolve/resolvectl.c |
435 | @@ -41,6 +41,7 @@ | 519 | @@ -41,6 +41,7 @@ |
@@ -437,9 +521,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
437 | #include "utf8.h" | 521 | #include "utf8.h" |
438 | #include "verbs.h" | 522 | #include "verbs.h" |
439 | +#include "missing_stdlib.h" | 523 | +#include "missing_stdlib.h" |
440 | 524 | ||
441 | static int arg_family = AF_UNSPEC; | 525 | static int arg_family = AF_UNSPEC; |
442 | static int arg_ifindex = 0; | 526 | static int arg_ifindex = 0; |
527 | diff --git a/src/shared/bus-get-properties.c b/src/shared/bus-get-properties.c | ||
528 | index feb6d3807f..eb11d29e50 100644 | ||
443 | --- a/src/shared/bus-get-properties.c | 529 | --- a/src/shared/bus-get-properties.c |
444 | +++ b/src/shared/bus-get-properties.c | 530 | +++ b/src/shared/bus-get-properties.c |
445 | @@ -4,6 +4,7 @@ | 531 | @@ -4,6 +4,7 @@ |
@@ -447,9 +533,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
447 | #include "stdio-util.h" | 533 | #include "stdio-util.h" |
448 | #include "string-util.h" | 534 | #include "string-util.h" |
449 | +#include "missing_stdlib.h" | 535 | +#include "missing_stdlib.h" |
450 | 536 | ||
451 | int bus_property_get_bool( | 537 | int bus_property_get_bool( |
452 | sd_bus *bus, | 538 | sd_bus *bus, |
539 | diff --git a/src/shared/bus-unit-procs.c b/src/shared/bus-unit-procs.c | ||
540 | index 6f4a71138c..4a46de2c1b 100644 | ||
453 | --- a/src/shared/bus-unit-procs.c | 541 | --- a/src/shared/bus-unit-procs.c |
454 | +++ b/src/shared/bus-unit-procs.c | 542 | +++ b/src/shared/bus-unit-procs.c |
455 | @@ -10,6 +10,7 @@ | 543 | @@ -10,6 +10,7 @@ |
@@ -457,9 +545,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
457 | #include "string-util.h" | 545 | #include "string-util.h" |
458 | #include "terminal-util.h" | 546 | #include "terminal-util.h" |
459 | +#include "missing_stdlib.h" | 547 | +#include "missing_stdlib.h" |
460 | 548 | ||
461 | struct CGroupInfo { | 549 | struct CGroupInfo { |
462 | char *cgroup_path; | 550 | char *cgroup_path; |
551 | diff --git a/src/shared/bus-unit-util.c b/src/shared/bus-unit-util.c | ||
552 | index d3a5b25d18..003594e2d7 100644 | ||
463 | --- a/src/shared/bus-unit-util.c | 553 | --- a/src/shared/bus-unit-util.c |
464 | +++ b/src/shared/bus-unit-util.c | 554 | +++ b/src/shared/bus-unit-util.c |
465 | @@ -47,6 +47,7 @@ | 555 | @@ -47,6 +47,7 @@ |
@@ -467,9 +557,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
467 | #include "user-util.h" | 557 | #include "user-util.h" |
468 | #include "utf8.h" | 558 | #include "utf8.h" |
469 | +#include "missing_stdlib.h" | 559 | +#include "missing_stdlib.h" |
470 | 560 | ||
471 | int bus_parse_unit_info(sd_bus_message *message, UnitInfo *u) { | 561 | int bus_parse_unit_info(sd_bus_message *message, UnitInfo *u) { |
472 | assert(message); | 562 | assert(message); |
563 | diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c | ||
564 | index 64ca67993c..31e3d148ea 100644 | ||
473 | --- a/src/shared/bus-util.c | 565 | --- a/src/shared/bus-util.c |
474 | +++ b/src/shared/bus-util.c | 566 | +++ b/src/shared/bus-util.c |
475 | @@ -21,6 +21,7 @@ | 567 | @@ -21,6 +21,7 @@ |
@@ -477,9 +569,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
477 | #include "socket-util.h" | 569 | #include "socket-util.h" |
478 | #include "stdio-util.h" | 570 | #include "stdio-util.h" |
479 | +#include "missing_stdlib.h" | 571 | +#include "missing_stdlib.h" |
480 | 572 | ||
481 | static int name_owner_change_callback(sd_bus_message *m, void *userdata, sd_bus_error *ret_error) { | 573 | static int name_owner_change_callback(sd_bus_message *m, void *userdata, sd_bus_error *ret_error) { |
482 | sd_event *e = userdata; | 574 | sd_event *e = userdata; |
575 | diff --git a/src/shared/dns-domain.c b/src/shared/dns-domain.c | ||
576 | index 787bb8fec9..009589a16f 100644 | ||
483 | --- a/src/shared/dns-domain.c | 577 | --- a/src/shared/dns-domain.c |
484 | +++ b/src/shared/dns-domain.c | 578 | +++ b/src/shared/dns-domain.c |
485 | @@ -17,6 +17,7 @@ | 579 | @@ -17,6 +17,7 @@ |
@@ -487,9 +581,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
487 | #include "strv.h" | 581 | #include "strv.h" |
488 | #include "utf8.h" | 582 | #include "utf8.h" |
489 | +#include "missing_stdlib.h" | 583 | +#include "missing_stdlib.h" |
490 | 584 | ||
491 | int dns_label_unescape(const char **name, char *dest, size_t sz, DNSLabelFlags flags) { | 585 | int dns_label_unescape(const char **name, char *dest, size_t sz, DNSLabelFlags flags) { |
492 | const char *n; | 586 | const char *n; |
587 | diff --git a/src/shared/journal-importer.c b/src/shared/journal-importer.c | ||
588 | index 9e11dc09c1..f9954c1520 100644 | ||
493 | --- a/src/shared/journal-importer.c | 589 | --- a/src/shared/journal-importer.c |
494 | +++ b/src/shared/journal-importer.c | 590 | +++ b/src/shared/journal-importer.c |
495 | @@ -15,6 +15,7 @@ | 591 | @@ -15,6 +15,7 @@ |
@@ -497,9 +593,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
497 | #include "string-util.h" | 593 | #include "string-util.h" |
498 | #include "unaligned.h" | 594 | #include "unaligned.h" |
499 | +#include "missing_stdlib.h" | 595 | +#include "missing_stdlib.h" |
500 | 596 | ||
501 | enum { | 597 | enum { |
502 | IMPORTER_STATE_LINE = 0, /* waiting to read, or reading line */ | 598 | IMPORTER_STATE_LINE = 0, /* waiting to read, or reading line */ |
599 | diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c | ||
600 | index e63c59bd94..dd9773c009 100644 | ||
503 | --- a/src/shared/logs-show.c | 601 | --- a/src/shared/logs-show.c |
504 | +++ b/src/shared/logs-show.c | 602 | +++ b/src/shared/logs-show.c |
505 | @@ -41,6 +41,7 @@ | 603 | @@ -41,6 +41,7 @@ |
@@ -507,9 +605,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
507 | #include "util.h" | 605 | #include "util.h" |
508 | #include "web-util.h" | 606 | #include "web-util.h" |
509 | +#include "missing_stdlib.h" | 607 | +#include "missing_stdlib.h" |
510 | 608 | ||
511 | /* up to three lines (each up to 100 characters) or 300 characters, whichever is less */ | 609 | /* up to three lines (each up to 100 characters) or 300 characters, whichever is less */ |
512 | #define PRINT_LINE_THRESHOLD 3 | 610 | #define PRINT_LINE_THRESHOLD 3 |
611 | diff --git a/src/shared/pager.c b/src/shared/pager.c | ||
612 | index 4bbad7e37b..eefcdd068c 100644 | ||
513 | --- a/src/shared/pager.c | 613 | --- a/src/shared/pager.c |
514 | +++ b/src/shared/pager.c | 614 | +++ b/src/shared/pager.c |
515 | @@ -26,6 +26,7 @@ | 615 | @@ -26,6 +26,7 @@ |
@@ -517,9 +617,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
517 | #include "terminal-util.h" | 617 | #include "terminal-util.h" |
518 | #include "util.h" | 618 | #include "util.h" |
519 | +#include "missing_stdlib.h" | 619 | +#include "missing_stdlib.h" |
520 | 620 | ||
521 | static pid_t pager_pid = 0; | 621 | static pid_t pager_pid = 0; |
522 | 622 | ||
623 | diff --git a/src/shared/uid-range.c b/src/shared/uid-range.c | ||
624 | index 5d5bf7f21d..f1002ffa6c 100644 | ||
523 | --- a/src/shared/uid-range.c | 625 | --- a/src/shared/uid-range.c |
524 | +++ b/src/shared/uid-range.c | 626 | +++ b/src/shared/uid-range.c |
525 | @@ -9,6 +9,7 @@ | 627 | @@ -9,6 +9,7 @@ |
@@ -527,9 +629,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
527 | #include "uid-range.h" | 629 | #include "uid-range.h" |
528 | #include "user-util.h" | 630 | #include "user-util.h" |
529 | +#include "missing_stdlib.h" | 631 | +#include "missing_stdlib.h" |
530 | 632 | ||
531 | static bool uid_range_intersect(UidRange *range, uid_t start, uid_t nr) { | 633 | static bool uid_range_intersect(UidRange *range, uid_t start, uid_t nr) { |
532 | assert(range); | 634 | assert(range); |
635 | diff --git a/src/socket-proxy/socket-proxyd.c b/src/socket-proxy/socket-proxyd.c | ||
636 | index 6e3ee0d76b..7727e33d95 100644 | ||
533 | --- a/src/socket-proxy/socket-proxyd.c | 637 | --- a/src/socket-proxy/socket-proxyd.c |
534 | +++ b/src/socket-proxy/socket-proxyd.c | 638 | +++ b/src/socket-proxy/socket-proxyd.c |
535 | @@ -26,6 +26,7 @@ | 639 | @@ -26,6 +26,7 @@ |
@@ -537,9 +641,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
537 | #include "string-util.h" | 641 | #include "string-util.h" |
538 | #include "util.h" | 642 | #include "util.h" |
539 | +#include "missing_stdlib.h" | 643 | +#include "missing_stdlib.h" |
540 | 644 | ||
541 | #define BUFFER_SIZE (256 * 1024) | 645 | #define BUFFER_SIZE (256 * 1024) |
542 | 646 | ||
647 | diff --git a/src/test/test-hexdecoct.c b/src/test/test-hexdecoct.c | ||
648 | index c9d318b8d1..fcb8d40805 100644 | ||
543 | --- a/src/test/test-hexdecoct.c | 649 | --- a/src/test/test-hexdecoct.c |
544 | +++ b/src/test/test-hexdecoct.c | 650 | +++ b/src/test/test-hexdecoct.c |
545 | @@ -6,6 +6,7 @@ | 651 | @@ -6,6 +6,7 @@ |
@@ -547,9 +653,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
547 | #include "macro.h" | 653 | #include "macro.h" |
548 | #include "string-util.h" | 654 | #include "string-util.h" |
549 | +#include "missing_stdlib.h" | 655 | +#include "missing_stdlib.h" |
550 | 656 | ||
551 | static void test_hexchar(void) { | 657 | static void test_hexchar(void) { |
552 | assert_se(hexchar(0xa) == 'a'); | 658 | assert_se(hexchar(0xa) == 'a'); |
659 | diff --git a/src/udev/udev-builtin-path_id.c b/src/udev/udev-builtin-path_id.c | ||
660 | index 65c40de4c8..4ef9a0c6c8 100644 | ||
553 | --- a/src/udev/udev-builtin-path_id.c | 661 | --- a/src/udev/udev-builtin-path_id.c |
554 | +++ b/src/udev/udev-builtin-path_id.c | 662 | +++ b/src/udev/udev-builtin-path_id.c |
555 | @@ -22,6 +22,7 @@ | 663 | @@ -22,6 +22,7 @@ |
@@ -557,9 +665,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
557 | #include "udev-builtin.h" | 665 | #include "udev-builtin.h" |
558 | #include "udev-util.h" | 666 | #include "udev-util.h" |
559 | +#include "missing_stdlib.h" | 667 | +#include "missing_stdlib.h" |
560 | 668 | ||
561 | _printf_(2,3) | 669 | _printf_(2,3) |
562 | static void path_prepend(char **path, const char *fmt, ...) { | 670 | static void path_prepend(char **path, const char *fmt, ...) { |
671 | diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c | ||
672 | index b28089be71..a7e2232299 100644 | ||
563 | --- a/src/udev/udev-event.c | 673 | --- a/src/udev/udev-event.c |
564 | +++ b/src/udev/udev-event.c | 674 | +++ b/src/udev/udev-event.c |
565 | @@ -34,6 +34,7 @@ | 675 | @@ -34,6 +34,7 @@ |
@@ -567,9 +677,11 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
567 | #include "udev-watch.h" | 677 | #include "udev-watch.h" |
568 | #include "user-util.h" | 678 | #include "user-util.h" |
569 | +#include "missing_stdlib.h" | 679 | +#include "missing_stdlib.h" |
570 | 680 | ||
571 | typedef struct Spawn { | 681 | typedef struct Spawn { |
572 | sd_device *device; | 682 | sd_device *device; |
683 | diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c | ||
684 | index bf997fc0ed..e3f5f1f2e2 100644 | ||
573 | --- a/src/udev/udev-rules.c | 685 | --- a/src/udev/udev-rules.c |
574 | +++ b/src/udev/udev-rules.c | 686 | +++ b/src/udev/udev-rules.c |
575 | @@ -33,6 +33,7 @@ | 687 | @@ -33,6 +33,7 @@ |
@@ -577,17 +689,6 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
577 | #include "user-util.h" | 689 | #include "user-util.h" |
578 | #include "virt.h" | 690 | #include "virt.h" |
579 | +#include "missing_stdlib.h" | 691 | +#include "missing_stdlib.h" |
580 | 692 | ||
581 | #define RULES_DIRS (const char* const*) CONF_PATHS_STRV("udev/rules.d") | 693 | #define RULES_DIRS (const char* const*) CONF_PATHS_STRV("udev/rules.d") |
582 | 694 | ||
583 | --- a/src/basic/percent-util.c | ||
584 | +++ b/src/basic/percent-util.c | ||
585 | @@ -3,6 +3,7 @@ | ||
586 | #include "percent-util.h" | ||
587 | #include "string-util.h" | ||
588 | #include "parse-util.h" | ||
589 | +#include "missing_stdlib.h" | ||
590 | |||
591 | static int parse_parts_value_whole(const char *p, const char *symbol) { | ||
592 | const char *pc, *n; | ||
593 | |||