diff options
author | Yureka Lilian <yuka@yuka.dev> | 2023-03-21 08:46:25 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-23 22:36:46 +0000 |
commit | ab7a9262a5616b299579c686428da028f72250a2 (patch) | |
tree | 2444cd01d5b53e36abb12f191e8980ed81f791ed /meta/recipes-core/systemd/systemd/0005-src-basic-missing.h-check-for-missing-strndupa.patch | |
parent | 13c1529b70345b0446482e8952e0b4b452bce7b1 (diff) | |
download | poky-ab7a9262a5616b299579c686428da028f72250a2.tar.gz |
systemd: rebase musl patches
(From OE-Core rev: f34f6ab04b443608497b73668365819343d0c2fe)
Signed-off-by: Yureka Lilian <yuka@yuka.dev>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.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 | 582 |
1 files changed, 0 insertions, 582 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 deleted file mode 100644 index 2c33033e91..0000000000 --- a/meta/recipes-core/systemd/systemd/0005-src-basic-missing.h-check-for-missing-strndupa.patch +++ /dev/null | |||
@@ -1,582 +0,0 @@ | |||
1 | From 106b7bd7186c9d6c1dcd72bd4ca6457d3fa72d0b Mon Sep 17 00:00:00 2001 | ||
2 | From: Chen Qi <Qi.Chen@windriver.com> | ||
3 | Date: Mon, 25 Feb 2019 14:18:21 +0800 | ||
4 | Subject: [PATCH] src/basic/missing.h: check for missing strndupa | ||
5 | |||
6 | include missing.h for definition of strndupa | ||
7 | |||
8 | Upstream-Status: Inappropriate [musl specific] | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
12 | [Rebased for v242] | ||
13 | Signed-off-by: Andrej Valek <andrej.valek@siemens.com> | ||
14 | [rebased for systemd 243] | ||
15 | Signed-off-by: Scott Murray <scott.murray@konsulko.com> | ||
16 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | ||
17 | [rebased for systemd 244] | ||
18 | [Rebased for v247] | ||
19 | Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | ||
20 | --- | ||
21 | meson.build | 1 + | ||
22 | src/backlight/backlight.c | 1 + | ||
23 | src/basic/cgroup-util.c | 1 + | ||
24 | src/basic/env-util.c | 1 + | ||
25 | src/basic/log.c | 1 + | ||
26 | src/basic/missing_stdlib.h | 12 ++++++++++++ | ||
27 | src/basic/mkdir.c | 1 + | ||
28 | src/basic/mountpoint-util.c | 1 + | ||
29 | src/basic/parse-util.c | 1 + | ||
30 | src/basic/path-lookup.c | 1 + | ||
31 | src/basic/percent-util.c | 1 + | ||
32 | src/basic/proc-cmdline.c | 1 + | ||
33 | src/basic/procfs-util.c | 1 + | ||
34 | src/basic/time-util.c | 1 + | ||
35 | src/boot/bless-boot.c | 1 + | ||
36 | src/core/dbus-cgroup.c | 1 + | ||
37 | src/core/dbus-execute.c | 1 + | ||
38 | src/core/dbus-util.c | 1 + | ||
39 | src/core/execute.c | 1 + | ||
40 | src/core/kmod-setup.c | 1 + | ||
41 | src/core/service.c | 1 + | ||
42 | src/coredump/coredump-vacuum.c | 1 + | ||
43 | src/fstab-generator/fstab-generator.c | 1 + | ||
44 | src/journal-remote/journal-remote-main.c | 1 + | ||
45 | src/journal/journalctl.c | 1 + | ||
46 | src/libsystemd/sd-bus/bus-message.c | 1 + | ||
47 | src/libsystemd/sd-bus/bus-objects.c | 1 + | ||
48 | src/libsystemd/sd-bus/bus-socket.c | 1 + | ||
49 | src/libsystemd/sd-bus/sd-bus.c | 1 + | ||
50 | src/libsystemd/sd-bus/test-bus-benchmark.c | 1 + | ||
51 | src/libsystemd/sd-journal/sd-journal.c | 1 + | ||
52 | src/locale/keymap-util.c | 1 + | ||
53 | src/login/pam_systemd.c | 1 + | ||
54 | src/network/generator/network-generator.c | 1 + | ||
55 | src/nspawn/nspawn-settings.c | 1 + | ||
56 | src/nss-mymachines/nss-mymachines.c | 1 + | ||
57 | src/portable/portable.c | 1 + | ||
58 | src/resolve/resolvectl.c | 1 + | ||
59 | src/shared/bus-get-properties.c | 1 + | ||
60 | src/shared/bus-unit-procs.c | 1 + | ||
61 | src/shared/bus-unit-util.c | 1 + | ||
62 | src/shared/bus-util.c | 1 + | ||
63 | src/shared/dns-domain.c | 1 + | ||
64 | src/shared/journal-importer.c | 1 + | ||
65 | src/shared/logs-show.c | 1 + | ||
66 | src/shared/pager.c | 1 + | ||
67 | src/shared/uid-range.c | 1 + | ||
68 | src/socket-proxy/socket-proxyd.c | 1 + | ||
69 | src/test/test-hexdecoct.c | 1 + | ||
70 | src/udev/udev-builtin-path_id.c | 1 + | ||
71 | src/udev/udev-event.c | 1 + | ||
72 | src/udev/udev-rules.c | 1 + | ||
73 | 52 files changed, 63 insertions(+) | ||
74 | |||
75 | --- a/meson.build | ||
76 | +++ b/meson.build | ||
77 | @@ -557,6 +557,7 @@ foreach ident : ['secure_getenv', '__sec | ||
78 | endforeach | ||
79 | |||
80 | foreach ident : [ | ||
81 | + ['strndupa' , '''#include <string.h>'''], | ||
82 | ['memfd_create', '''#include <sys/mman.h>'''], | ||
83 | ['gettid', '''#include <sys/types.h> | ||
84 | #include <unistd.h>'''], | ||
85 | --- a/src/backlight/backlight.c | ||
86 | +++ b/src/backlight/backlight.c | ||
87 | @@ -20,6 +20,7 @@ | ||
88 | #include "strv.h" | ||
89 | #include "terminal-util.h" | ||
90 | #include "util.h" | ||
91 | +#include "missing_stdlib.h" | ||
92 | |||
93 | #define PCI_CLASS_GRAPHICS_CARD 0x30000 | ||
94 | |||
95 | --- a/src/basic/cgroup-util.c | ||
96 | +++ b/src/basic/cgroup-util.c | ||
97 | @@ -37,6 +37,7 @@ | ||
98 | #include "unit-name.h" | ||
99 | #include "user-util.h" | ||
100 | #include "xattr-util.h" | ||
101 | +#include "missing_stdlib.h" | ||
102 | |||
103 | static int cg_enumerate_items(const char *controller, const char *path, FILE **_f, const char *item) { | ||
104 | _cleanup_free_ char *fs = NULL; | ||
105 | --- a/src/basic/env-util.c | ||
106 | +++ b/src/basic/env-util.c | ||
107 | @@ -19,6 +19,7 @@ | ||
108 | #include "string-util.h" | ||
109 | #include "strv.h" | ||
110 | #include "utf8.h" | ||
111 | +#include "missing_stdlib.h" | ||
112 | |||
113 | /* We follow bash for the character set. Different shells have different rules. */ | ||
114 | #define VALID_BASH_ENV_NAME_CHARS \ | ||
115 | --- a/src/basic/log.c | ||
116 | +++ b/src/basic/log.c | ||
117 | @@ -36,6 +36,7 @@ | ||
118 | #include "terminal-util.h" | ||
119 | #include "time-util.h" | ||
120 | #include "utf8.h" | ||
121 | +#include "missing_stdlib.h" | ||
122 | |||
123 | #define SNDBUF_SIZE (8*1024*1024) | ||
124 | |||
125 | --- a/src/basic/missing_stdlib.h | ||
126 | +++ b/src/basic/missing_stdlib.h | ||
127 | @@ -11,3 +11,15 @@ | ||
128 | # error "neither secure_getenv nor __secure_getenv are available" | ||
129 | # endif | ||
130 | #endif | ||
131 | + | ||
132 | +/* string.h */ | ||
133 | +#if ! HAVE_STRNDUPA | ||
134 | +#define strndupa(s, n) \ | ||
135 | + ({ \ | ||
136 | + const char *__old = (s); \ | ||
137 | + size_t __len = strnlen(__old, (n)); \ | ||
138 | + char *__new = (char *)alloca(__len + 1); \ | ||
139 | + __new[__len] = '\0'; \ | ||
140 | + (char *)memcpy(__new, __old, __len); \ | ||
141 | + }) | ||
142 | +#endif | ||
143 | --- a/src/basic/mkdir.c | ||
144 | +++ b/src/basic/mkdir.c | ||
145 | @@ -15,6 +15,7 @@ | ||
146 | #include "stat-util.h" | ||
147 | #include "stdio-util.h" | ||
148 | #include "user-util.h" | ||
149 | +#include "missing_stdlib.h" | ||
150 | |||
151 | int mkdir_safe_internal( | ||
152 | const char *path, | ||
153 | --- a/src/basic/mountpoint-util.c | ||
154 | +++ b/src/basic/mountpoint-util.c | ||
155 | @@ -13,6 +13,7 @@ | ||
156 | #include "missing_stat.h" | ||
157 | #include "missing_syscall.h" | ||
158 | #include "mkdir.h" | ||
159 | +#include "missing_stdlib.h" | ||
160 | #include "mountpoint-util.h" | ||
161 | #include "nulstr-util.h" | ||
162 | #include "parse-util.h" | ||
163 | --- a/src/basic/parse-util.c | ||
164 | +++ b/src/basic/parse-util.c | ||
165 | @@ -18,6 +18,7 @@ | ||
166 | #include "stat-util.h" | ||
167 | #include "string-util.h" | ||
168 | #include "strv.h" | ||
169 | +#include "missing_stdlib.h" | ||
170 | |||
171 | int parse_boolean(const char *v) { | ||
172 | if (!v) | ||
173 | --- a/src/basic/path-lookup.c | ||
174 | +++ b/src/basic/path-lookup.c | ||
175 | @@ -16,6 +16,7 @@ | ||
176 | #include "strv.h" | ||
177 | #include "tmpfile-util.h" | ||
178 | #include "user-util.h" | ||
179 | +#include "missing_stdlib.h" | ||
180 | |||
181 | int xdg_user_runtime_dir(char **ret, const char *suffix) { | ||
182 | const char *e; | ||
183 | --- a/src/basic/percent-util.c | ||
184 | +++ b/src/basic/percent-util.c | ||
185 | @@ -3,6 +3,7 @@ | ||
186 | #include "percent-util.h" | ||
187 | #include "string-util.h" | ||
188 | #include "parse-util.h" | ||
189 | +#include "missing_stdlib.h" | ||
190 | |||
191 | static int parse_parts_value_whole(const char *p, const char *symbol) { | ||
192 | const char *pc, *n; | ||
193 | --- a/src/basic/proc-cmdline.c | ||
194 | +++ b/src/basic/proc-cmdline.c | ||
195 | @@ -15,6 +15,7 @@ | ||
196 | #include "string-util.h" | ||
197 | #include "util.h" | ||
198 | #include "virt.h" | ||
199 | +#include "missing_stdlib.h" | ||
200 | |||
201 | int proc_cmdline(char **ret) { | ||
202 | const char *e; | ||
203 | --- a/src/basic/procfs-util.c | ||
204 | +++ b/src/basic/procfs-util.c | ||
205 | @@ -12,6 +12,7 @@ | ||
206 | #include "procfs-util.h" | ||
207 | #include "stdio-util.h" | ||
208 | #include "string-util.h" | ||
209 | +#include "missing_stdlib.h" | ||
210 | |||
211 | int procfs_get_pid_max(uint64_t *ret) { | ||
212 | _cleanup_free_ char *value = NULL; | ||
213 | --- a/src/basic/time-util.c | ||
214 | +++ b/src/basic/time-util.c | ||
215 | @@ -26,6 +26,7 @@ | ||
216 | #include "string-util.h" | ||
217 | #include "strv.h" | ||
218 | #include "time-util.h" | ||
219 | +#include "missing_stdlib.h" | ||
220 | |||
221 | static clockid_t map_clock_id(clockid_t c) { | ||
222 | |||
223 | --- a/src/boot/bless-boot.c | ||
224 | +++ b/src/boot/bless-boot.c | ||
225 | @@ -22,6 +22,7 @@ | ||
226 | #include "util.h" | ||
227 | #include "verbs.h" | ||
228 | #include "virt.h" | ||
229 | +#include "missing_stdlib.h" | ||
230 | |||
231 | static char **arg_path = NULL; | ||
232 | |||
233 | --- a/src/core/dbus-cgroup.c | ||
234 | +++ b/src/core/dbus-cgroup.c | ||
235 | @@ -21,6 +21,7 @@ | ||
236 | #include "parse-util.h" | ||
237 | #include "path-util.h" | ||
238 | #include "percent-util.h" | ||
239 | +#include "missing_stdlib.h" | ||
240 | #include "socket-util.h" | ||
241 | |||
242 | BUS_DEFINE_PROPERTY_GET(bus_property_get_tasks_max, "t", TasksMax, tasks_max_resolve); | ||
243 | --- a/src/core/dbus-execute.c | ||
244 | +++ b/src/core/dbus-execute.c | ||
245 | @@ -44,6 +44,7 @@ | ||
246 | #include "unit-printf.h" | ||
247 | #include "user-util.h" | ||
248 | #include "utf8.h" | ||
249 | +#include "missing_stdlib.h" | ||
250 | |||
251 | BUS_DEFINE_PROPERTY_GET_ENUM(bus_property_get_exec_output, exec_output, ExecOutput); | ||
252 | static BUS_DEFINE_PROPERTY_GET_ENUM(property_get_exec_input, exec_input, ExecInput); | ||
253 | --- a/src/core/dbus-util.c | ||
254 | +++ b/src/core/dbus-util.c | ||
255 | @@ -9,6 +9,7 @@ | ||
256 | #include "unit-printf.h" | ||
257 | #include "user-util.h" | ||
258 | #include "unit.h" | ||
259 | +#include "missing_stdlib.h" | ||
260 | |||
261 | int bus_property_get_triggered_unit( | ||
262 | sd_bus *bus, | ||
263 | --- a/src/core/execute.c | ||
264 | +++ b/src/core/execute.c | ||
265 | @@ -104,6 +104,7 @@ | ||
266 | #include "unit-serialize.h" | ||
267 | #include "user-util.h" | ||
268 | #include "utmp-wtmp.h" | ||
269 | +#include "missing_stdlib.h" | ||
270 | |||
271 | #define IDLE_TIMEOUT_USEC (5*USEC_PER_SEC) | ||
272 | #define IDLE_TIMEOUT2_USEC (1*USEC_PER_SEC) | ||
273 | --- a/src/core/kmod-setup.c | ||
274 | +++ b/src/core/kmod-setup.c | ||
275 | @@ -11,6 +11,7 @@ | ||
276 | #include "recurse-dir.h" | ||
277 | #include "string-util.h" | ||
278 | #include "virt.h" | ||
279 | +#include "missing_stdlib.h" | ||
280 | |||
281 | #if HAVE_KMOD | ||
282 | #include "module-util.h" | ||
283 | --- a/src/core/service.c | ||
284 | +++ b/src/core/service.c | ||
285 | @@ -42,6 +42,7 @@ | ||
286 | #include "unit.h" | ||
287 | #include "utf8.h" | ||
288 | #include "util.h" | ||
289 | +#include "missing_stdlib.h" | ||
290 | |||
291 | #define service_spawn(...) service_spawn_internal(__func__, __VA_ARGS__) | ||
292 | |||
293 | --- a/src/coredump/coredump-vacuum.c | ||
294 | +++ b/src/coredump/coredump-vacuum.c | ||
295 | @@ -17,6 +17,7 @@ | ||
296 | #include "string-util.h" | ||
297 | #include "time-util.h" | ||
298 | #include "user-util.h" | ||
299 | +#include "missing_stdlib.h" | ||
300 | |||
301 | #define DEFAULT_MAX_USE_LOWER (uint64_t) (1ULL*1024ULL*1024ULL) /* 1 MiB */ | ||
302 | #define DEFAULT_MAX_USE_UPPER (uint64_t) (4ULL*1024ULL*1024ULL*1024ULL) /* 4 GiB */ | ||
303 | --- a/src/fstab-generator/fstab-generator.c | ||
304 | +++ b/src/fstab-generator/fstab-generator.c | ||
305 | @@ -32,6 +32,7 @@ | ||
306 | #include "util.h" | ||
307 | #include "virt.h" | ||
308 | #include "volatile-util.h" | ||
309 | +#include "missing_stdlib.h" | ||
310 | |||
311 | typedef enum MountPointFlags { | ||
312 | MOUNT_NOAUTO = 1 << 0, | ||
313 | --- a/src/journal-remote/journal-remote-main.c | ||
314 | +++ b/src/journal-remote/journal-remote-main.c | ||
315 | @@ -24,6 +24,7 @@ | ||
316 | #include "stat-util.h" | ||
317 | #include "string-table.h" | ||
318 | #include "strv.h" | ||
319 | +#include "missing_stdlib.h" | ||
320 | |||
321 | #define PRIV_KEY_FILE CERTIFICATE_ROOT "/private/journal-remote.pem" | ||
322 | #define CERT_FILE CERTIFICATE_ROOT "/certs/journal-remote.pem" | ||
323 | --- a/src/journal/journalctl.c | ||
324 | +++ b/src/journal/journalctl.c | ||
325 | @@ -70,6 +70,7 @@ | ||
326 | #include "unit-name.h" | ||
327 | #include "user-util.h" | ||
328 | #include "varlink.h" | ||
329 | +#include "missing_stdlib.h" | ||
330 | |||
331 | #define DEFAULT_FSS_INTERVAL_USEC (15*USEC_PER_MINUTE) | ||
332 | #define PROCESS_INOTIFY_INTERVAL 1024 /* Every 1,024 messages processed */ | ||
333 | --- a/src/libsystemd/sd-bus/bus-message.c | ||
334 | +++ b/src/libsystemd/sd-bus/bus-message.c | ||
335 | @@ -19,6 +19,7 @@ | ||
336 | #include "strv.h" | ||
337 | #include "time-util.h" | ||
338 | #include "utf8.h" | ||
339 | +#include "missing_stdlib.h" | ||
340 | |||
341 | static int message_append_basic(sd_bus_message *m, char type, const void *p, const void **stored); | ||
342 | static int message_parse_fields(sd_bus_message *m); | ||
343 | --- a/src/libsystemd/sd-bus/bus-objects.c | ||
344 | +++ b/src/libsystemd/sd-bus/bus-objects.c | ||
345 | @@ -11,6 +11,7 @@ | ||
346 | #include "missing_capability.h" | ||
347 | #include "string-util.h" | ||
348 | #include "strv.h" | ||
349 | +#include "missing_stdlib.h" | ||
350 | |||
351 | static int node_vtable_get_userdata( | ||
352 | sd_bus *bus, | ||
353 | --- a/src/libsystemd/sd-bus/bus-socket.c | ||
354 | +++ b/src/libsystemd/sd-bus/bus-socket.c | ||
355 | @@ -28,6 +28,7 @@ | ||
356 | #include "string-util.h" | ||
357 | #include "user-util.h" | ||
358 | #include "utf8.h" | ||
359 | +#include "missing_stdlib.h" | ||
360 | |||
361 | #define SNDBUF_SIZE (8*1024*1024) | ||
362 | |||
363 | --- a/src/libsystemd/sd-bus/sd-bus.c | ||
364 | +++ b/src/libsystemd/sd-bus/sd-bus.c | ||
365 | @@ -44,6 +44,7 @@ | ||
366 | #include "string-util.h" | ||
367 | #include "strv.h" | ||
368 | #include "user-util.h" | ||
369 | +#include "missing_stdlib.h" | ||
370 | |||
371 | #define log_debug_bus_message(m) \ | ||
372 | do { \ | ||
373 | --- a/src/libsystemd/sd-bus/test-bus-benchmark.c | ||
374 | +++ b/src/libsystemd/sd-bus/test-bus-benchmark.c | ||
375 | @@ -14,6 +14,7 @@ | ||
376 | #include "string-util.h" | ||
377 | #include "time-util.h" | ||
378 | #include "util.h" | ||
379 | +#include "missing_stdlib.h" | ||
380 | |||
381 | #define MAX_SIZE (2*1024*1024) | ||
382 | |||
383 | --- a/src/libsystemd/sd-journal/sd-journal.c | ||
384 | +++ b/src/libsystemd/sd-journal/sd-journal.c | ||
385 | @@ -41,6 +41,7 @@ | ||
386 | #include "string-util.h" | ||
387 | #include "strv.h" | ||
388 | #include "syslog-util.h" | ||
389 | +#include "missing_stdlib.h" | ||
390 | |||
391 | #define JOURNAL_FILES_MAX 7168 | ||
392 | |||
393 | --- a/src/login/pam_systemd.c | ||
394 | +++ b/src/login/pam_systemd.c | ||
395 | @@ -32,6 +32,7 @@ | ||
396 | #include "locale-util.h" | ||
397 | #include "login-util.h" | ||
398 | #include "macro.h" | ||
399 | +#include "missing_stdlib.h" | ||
400 | #include "pam-util.h" | ||
401 | #include "parse-util.h" | ||
402 | #include "path-util.h" | ||
403 | --- a/src/network/generator/network-generator.c | ||
404 | +++ b/src/network/generator/network-generator.c | ||
405 | @@ -13,6 +13,7 @@ | ||
406 | #include "string-table.h" | ||
407 | #include "string-util.h" | ||
408 | #include "strv.h" | ||
409 | +#include "missing_stdlib.h" | ||
410 | |||
411 | /* | ||
412 | # .network | ||
413 | --- a/src/nspawn/nspawn-settings.c | ||
414 | +++ b/src/nspawn/nspawn-settings.c | ||
415 | @@ -17,6 +17,7 @@ | ||
416 | #include "strv.h" | ||
417 | #include "user-util.h" | ||
418 | #include "util.h" | ||
419 | +#include "missing_stdlib.h" | ||
420 | |||
421 | Settings *settings_new(void) { | ||
422 | Settings *s; | ||
423 | --- a/src/nss-mymachines/nss-mymachines.c | ||
424 | +++ b/src/nss-mymachines/nss-mymachines.c | ||
425 | @@ -21,6 +21,7 @@ | ||
426 | #include "nss-util.h" | ||
427 | #include "signal-util.h" | ||
428 | #include "string-util.h" | ||
429 | +#include "missing_stdlib.h" | ||
430 | |||
431 | static void setup_logging_once(void) { | ||
432 | static pthread_once_t once = PTHREAD_ONCE_INIT; | ||
433 | --- a/src/portable/portable.c | ||
434 | +++ b/src/portable/portable.c | ||
435 | @@ -39,6 +39,7 @@ | ||
436 | #include "strv.h" | ||
437 | #include "tmpfile-util.h" | ||
438 | #include "user-util.h" | ||
439 | +#include "missing_stdlib.h" | ||
440 | |||
441 | /* Markers used in the first line of our 20-portable.conf unit file drop-in to determine, that a) the unit file was | ||
442 | * dropped there by the portable service logic and b) for which image it was dropped there. */ | ||
443 | --- a/src/resolve/resolvectl.c | ||
444 | +++ b/src/resolve/resolvectl.c | ||
445 | @@ -46,6 +46,7 @@ | ||
446 | #include "varlink.h" | ||
447 | #include "verb-log-control.h" | ||
448 | #include "verbs.h" | ||
449 | +#include "missing_stdlib.h" | ||
450 | |||
451 | static int arg_family = AF_UNSPEC; | ||
452 | static int arg_ifindex = 0; | ||
453 | --- a/src/shared/bus-get-properties.c | ||
454 | +++ b/src/shared/bus-get-properties.c | ||
455 | @@ -4,6 +4,7 @@ | ||
456 | #include "rlimit-util.h" | ||
457 | #include "stdio-util.h" | ||
458 | #include "string-util.h" | ||
459 | +#include "missing_stdlib.h" | ||
460 | |||
461 | int bus_property_get_bool( | ||
462 | sd_bus *bus, | ||
463 | --- a/src/shared/bus-unit-procs.c | ||
464 | +++ b/src/shared/bus-unit-procs.c | ||
465 | @@ -11,6 +11,7 @@ | ||
466 | #include "sort-util.h" | ||
467 | #include "string-util.h" | ||
468 | #include "terminal-util.h" | ||
469 | +#include "missing_stdlib.h" | ||
470 | |||
471 | struct CGroupInfo { | ||
472 | char *cgroup_path; | ||
473 | --- a/src/shared/bus-unit-util.c | ||
474 | +++ b/src/shared/bus-unit-util.c | ||
475 | @@ -49,6 +49,7 @@ | ||
476 | #include "unit-def.h" | ||
477 | #include "user-util.h" | ||
478 | #include "utf8.h" | ||
479 | +#include "missing_stdlib.h" | ||
480 | |||
481 | int bus_parse_unit_info(sd_bus_message *message, UnitInfo *u) { | ||
482 | assert(message); | ||
483 | --- a/src/shared/bus-util.c | ||
484 | +++ b/src/shared/bus-util.c | ||
485 | @@ -21,6 +21,7 @@ | ||
486 | #include "path-util.h" | ||
487 | #include "socket-util.h" | ||
488 | #include "stdio-util.h" | ||
489 | +#include "missing_stdlib.h" | ||
490 | |||
491 | static int name_owner_change_callback(sd_bus_message *m, void *userdata, sd_bus_error *ret_error) { | ||
492 | sd_event *e = ASSERT_PTR(userdata); | ||
493 | --- a/src/shared/dns-domain.c | ||
494 | +++ b/src/shared/dns-domain.c | ||
495 | @@ -18,6 +18,7 @@ | ||
496 | #include "string-util.h" | ||
497 | #include "strv.h" | ||
498 | #include "utf8.h" | ||
499 | +#include "missing_stdlib.h" | ||
500 | |||
501 | int dns_label_unescape(const char **name, char *dest, size_t sz, DNSLabelFlags flags) { | ||
502 | const char *n; | ||
503 | --- a/src/shared/journal-importer.c | ||
504 | +++ b/src/shared/journal-importer.c | ||
505 | @@ -15,6 +15,7 @@ | ||
506 | #include "parse-util.h" | ||
507 | #include "string-util.h" | ||
508 | #include "unaligned.h" | ||
509 | +#include "missing_stdlib.h" | ||
510 | |||
511 | enum { | ||
512 | IMPORTER_STATE_LINE = 0, /* waiting to read, or reading line */ | ||
513 | --- a/src/shared/logs-show.c | ||
514 | +++ b/src/shared/logs-show.c | ||
515 | @@ -42,6 +42,7 @@ | ||
516 | #include "utf8.h" | ||
517 | #include "util.h" | ||
518 | #include "web-util.h" | ||
519 | +#include "missing_stdlib.h" | ||
520 | |||
521 | /* up to three lines (each up to 100 characters) or 300 characters, whichever is less */ | ||
522 | #define PRINT_LINE_THRESHOLD 3 | ||
523 | --- a/src/shared/pager.c | ||
524 | +++ b/src/shared/pager.c | ||
525 | @@ -26,6 +26,7 @@ | ||
526 | #include "strv.h" | ||
527 | #include "terminal-util.h" | ||
528 | #include "util.h" | ||
529 | +#include "missing_stdlib.h" | ||
530 | |||
531 | static pid_t pager_pid = 0; | ||
532 | |||
533 | --- a/src/socket-proxy/socket-proxyd.c | ||
534 | +++ b/src/socket-proxy/socket-proxyd.c | ||
535 | @@ -26,6 +26,7 @@ | ||
536 | #include "socket-util.h" | ||
537 | #include "string-util.h" | ||
538 | #include "util.h" | ||
539 | +#include "missing_stdlib.h" | ||
540 | |||
541 | #define BUFFER_SIZE (256 * 1024) | ||
542 | |||
543 | --- a/src/test/test-hexdecoct.c | ||
544 | +++ b/src/test/test-hexdecoct.c | ||
545 | @@ -7,6 +7,7 @@ | ||
546 | #include "macro.h" | ||
547 | #include "random-util.h" | ||
548 | #include "string-util.h" | ||
549 | +#include "missing_stdlib.h" | ||
550 | #include "tests.h" | ||
551 | |||
552 | TEST(hexchar) { | ||
553 | --- a/src/udev/udev-builtin-path_id.c | ||
554 | +++ b/src/udev/udev-builtin-path_id.c | ||
555 | @@ -22,6 +22,7 @@ | ||
556 | #include "sysexits.h" | ||
557 | #include "udev-builtin.h" | ||
558 | #include "udev-util.h" | ||
559 | +#include "missing_stdlib.h" | ||
560 | |||
561 | _printf_(2,3) | ||
562 | static void path_prepend(char **path, const char *fmt, ...) { | ||
563 | --- a/src/udev/udev-event.c | ||
564 | +++ b/src/udev/udev-event.c | ||
565 | @@ -34,6 +34,7 @@ | ||
566 | #include "udev-util.h" | ||
567 | #include "udev-watch.h" | ||
568 | #include "user-util.h" | ||
569 | +#include "missing_stdlib.h" | ||
570 | |||
571 | typedef struct Spawn { | ||
572 | sd_device *device; | ||
573 | --- a/src/udev/udev-rules.c | ||
574 | +++ b/src/udev/udev-rules.c | ||
575 | @@ -34,6 +34,7 @@ | ||
576 | #include "udev-util.h" | ||
577 | #include "user-util.h" | ||
578 | #include "virt.h" | ||
579 | +#include "missing_stdlib.h" | ||
580 | |||
581 | #define RULES_DIRS (const char* const*) CONF_PATHS_STRV("udev/rules.d") | ||
582 | |||