diff options
author | Khem Raj <raj.khem@gmail.com> | 2024-03-25 17:25:55 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-03-25 18:52:52 -0700 |
commit | 6e0d48562b496a3326377722b94556bf02d3432f (patch) | |
tree | be1bd35af5be167ccf35c569702976ca7c2997c4 /meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/0011-src-basic-missing.h-check-for-missing-strndupa.patch | |
parent | 7bfcc56748aa867f9dbcd5d85f177d53d52a3118 (diff) | |
download | meta-openembedded-6e0d48562b496a3326377722b94556bf02d3432f.tar.gz |
sdbus-c++-libsystemd: Upgrade to 255.4 release of systemd
Synchronise musl patches with oe-core
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/0011-src-basic-missing.h-check-for-missing-strndupa.patch')
-rw-r--r-- | meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/0011-src-basic-missing.h-check-for-missing-strndupa.patch | 684 |
1 files changed, 0 insertions, 684 deletions
diff --git a/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/0011-src-basic-missing.h-check-for-missing-strndupa.patch b/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/0011-src-basic-missing.h-check-for-missing-strndupa.patch deleted file mode 100644 index ec451cddb..000000000 --- a/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/0011-src-basic-missing.h-check-for-missing-strndupa.patch +++ /dev/null | |||
@@ -1,684 +0,0 @@ | |||
1 | From ee5c8b494a3269edd154a0b799a03b39dba2ceb0 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 | [Rebased for v254] | ||
21 | --- | ||
22 | meson.build | 1 + | ||
23 | src/backlight/backlight.c | 1 + | ||
24 | src/basic/cgroup-util.c | 1 + | ||
25 | src/basic/env-util.c | 1 + | ||
26 | src/basic/log.c | 1 + | ||
27 | src/basic/missing_stdlib.h | 12 ++++++++++++ | ||
28 | src/basic/mkdir.c | 1 + | ||
29 | src/basic/mountpoint-util.c | 1 + | ||
30 | src/basic/parse-util.c | 1 + | ||
31 | src/basic/path-lookup.c | 1 + | ||
32 | src/basic/percent-util.c | 1 + | ||
33 | src/basic/proc-cmdline.c | 1 + | ||
34 | src/basic/procfs-util.c | 1 + | ||
35 | src/basic/time-util.c | 1 + | ||
36 | src/boot/bless-boot.c | 1 + | ||
37 | src/core/dbus-cgroup.c | 1 + | ||
38 | src/core/dbus-execute.c | 1 + | ||
39 | src/core/dbus-util.c | 1 + | ||
40 | src/core/execute.c | 1 + | ||
41 | src/core/kmod-setup.c | 1 + | ||
42 | src/core/service.c | 1 + | ||
43 | src/coredump/coredump-vacuum.c | 1 + | ||
44 | src/fstab-generator/fstab-generator.c | 1 + | ||
45 | src/journal-remote/journal-remote-main.c | 1 + | ||
46 | src/journal/journalctl.c | 1 + | ||
47 | src/libsystemd/sd-bus/bus-message.c | 1 + | ||
48 | src/libsystemd/sd-bus/bus-objects.c | 1 + | ||
49 | src/libsystemd/sd-bus/bus-socket.c | 1 + | ||
50 | src/libsystemd/sd-bus/sd-bus.c | 1 + | ||
51 | src/libsystemd/sd-bus/test-bus-benchmark.c | 1 + | ||
52 | src/libsystemd/sd-journal/sd-journal.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/socket-proxy/socket-proxyd.c | 1 + | ||
68 | src/test/test-hexdecoct.c | 1 + | ||
69 | src/udev/udev-builtin-path_id.c | 1 + | ||
70 | src/udev/udev-event.c | 1 + | ||
71 | src/udev/udev-rules.c | 1 + | ||
72 | 50 files changed, 61 insertions(+) | ||
73 | |||
74 | diff --git a/meson.build b/meson.build | ||
75 | index fb96143c37..739b2f7f72 100644 | ||
76 | --- a/meson.build | ||
77 | +++ b/meson.build | ||
78 | @@ -595,6 +595,7 @@ foreach ident : ['secure_getenv', '__secure_getenv'] | ||
79 | endforeach | ||
80 | |||
81 | foreach ident : [ | ||
82 | + ['strndupa' , '''#include <string.h>'''], | ||
83 | ['memfd_create', '''#include <sys/mman.h>'''], | ||
84 | ['gettid', '''#include <sys/types.h> | ||
85 | #include <unistd.h>'''], | ||
86 | diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c | ||
87 | index e66477f328..2613d1e3f9 100644 | ||
88 | --- a/src/backlight/backlight.c | ||
89 | +++ b/src/backlight/backlight.c | ||
90 | @@ -19,6 +19,7 @@ | ||
91 | #include "string-util.h" | ||
92 | #include "strv.h" | ||
93 | #include "terminal-util.h" | ||
94 | +#include "missing_stdlib.h" | ||
95 | |||
96 | #define PCI_CLASS_GRAPHICS_CARD 0x30000 | ||
97 | |||
98 | diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c | ||
99 | index feda596939..11b4375ed5 100644 | ||
100 | --- a/src/basic/cgroup-util.c | ||
101 | +++ b/src/basic/cgroup-util.c | ||
102 | @@ -38,6 +38,7 @@ | ||
103 | #include "unit-name.h" | ||
104 | #include "user-util.h" | ||
105 | #include "xattr-util.h" | ||
106 | +#include "missing_stdlib.h" | ||
107 | |||
108 | static int cg_enumerate_items(const char *controller, const char *path, FILE **_f, const char *item) { | ||
109 | _cleanup_free_ char *fs = NULL; | ||
110 | diff --git a/src/basic/env-util.c b/src/basic/env-util.c | ||
111 | index 55ac11a512..7ccb1d7887 100644 | ||
112 | --- a/src/basic/env-util.c | ||
113 | +++ b/src/basic/env-util.c | ||
114 | @@ -19,6 +19,7 @@ | ||
115 | #include "string-util.h" | ||
116 | #include "strv.h" | ||
117 | #include "utf8.h" | ||
118 | +#include "missing_stdlib.h" | ||
119 | |||
120 | /* We follow bash for the character set. Different shells have different rules. */ | ||
121 | #define VALID_BASH_ENV_NAME_CHARS \ | ||
122 | diff --git a/src/basic/log.c b/src/basic/log.c | ||
123 | index fc5793139e..515218fca8 100644 | ||
124 | --- a/src/basic/log.c | ||
125 | +++ b/src/basic/log.c | ||
126 | @@ -40,6 +40,7 @@ | ||
127 | #include "terminal-util.h" | ||
128 | #include "time-util.h" | ||
129 | #include "utf8.h" | ||
130 | +#include "missing_stdlib.h" | ||
131 | |||
132 | #define SNDBUF_SIZE (8*1024*1024) | ||
133 | #define IOVEC_MAX 256U | ||
134 | diff --git a/src/basic/missing_stdlib.h b/src/basic/missing_stdlib.h | ||
135 | index 8c76f93eb2..9068bfb4f0 100644 | ||
136 | --- a/src/basic/missing_stdlib.h | ||
137 | +++ b/src/basic/missing_stdlib.h | ||
138 | @@ -11,3 +11,15 @@ | ||
139 | # error "neither secure_getenv nor __secure_getenv are available" | ||
140 | # endif | ||
141 | #endif | ||
142 | + | ||
143 | +/* string.h */ | ||
144 | +#if ! HAVE_STRNDUPA | ||
145 | +#define strndupa(s, n) \ | ||
146 | + ({ \ | ||
147 | + const char *__old = (s); \ | ||
148 | + size_t __len = strnlen(__old, (n)); \ | ||
149 | + char *__new = (char *)alloca(__len + 1); \ | ||
150 | + __new[__len] = '\0'; \ | ||
151 | + (char *)memcpy(__new, __old, __len); \ | ||
152 | + }) | ||
153 | +#endif | ||
154 | diff --git a/src/basic/mkdir.c b/src/basic/mkdir.c | ||
155 | index 7ad19ee33b..cc1d5e1e5b 100644 | ||
156 | --- a/src/basic/mkdir.c | ||
157 | +++ b/src/basic/mkdir.c | ||
158 | @@ -15,6 +15,7 @@ | ||
159 | #include "stat-util.h" | ||
160 | #include "stdio-util.h" | ||
161 | #include "user-util.h" | ||
162 | +#include "missing_stdlib.h" | ||
163 | |||
164 | int mkdirat_safe_internal( | ||
165 | int dir_fd, | ||
166 | diff --git a/src/basic/mountpoint-util.c b/src/basic/mountpoint-util.c | ||
167 | index bc74fbef8f..cdb609bb84 100644 | ||
168 | --- a/src/basic/mountpoint-util.c | ||
169 | +++ b/src/basic/mountpoint-util.c | ||
170 | @@ -18,6 +18,7 @@ | ||
171 | #include "missing_stat.h" | ||
172 | #include "missing_syscall.h" | ||
173 | #include "mkdir.h" | ||
174 | +#include "missing_stdlib.h" | ||
175 | #include "mountpoint-util.h" | ||
176 | #include "nulstr-util.h" | ||
177 | #include "parse-util.h" | ||
178 | diff --git a/src/basic/parse-util.c b/src/basic/parse-util.c | ||
179 | index 3445d31307..d82b4415d9 100644 | ||
180 | --- a/src/basic/parse-util.c | ||
181 | +++ b/src/basic/parse-util.c | ||
182 | @@ -18,6 +18,7 @@ | ||
183 | #include "stat-util.h" | ||
184 | #include "string-util.h" | ||
185 | #include "strv.h" | ||
186 | +#include "missing_stdlib.h" | ||
187 | |||
188 | int parse_boolean(const char *v) { | ||
189 | if (!v) | ||
190 | diff --git a/src/basic/path-lookup.c b/src/basic/path-lookup.c | ||
191 | index c99e9d8786..71a917a0b0 100644 | ||
192 | --- a/src/basic/path-lookup.c | ||
193 | +++ b/src/basic/path-lookup.c | ||
194 | @@ -16,6 +16,7 @@ | ||
195 | #include "strv.h" | ||
196 | #include "tmpfile-util.h" | ||
197 | #include "user-util.h" | ||
198 | +#include "missing_stdlib.h" | ||
199 | |||
200 | int xdg_user_runtime_dir(char **ret, const char *suffix) { | ||
201 | const char *e; | ||
202 | diff --git a/src/basic/percent-util.c b/src/basic/percent-util.c | ||
203 | index cab9d0eaea..5f6ca258e9 100644 | ||
204 | --- a/src/basic/percent-util.c | ||
205 | +++ b/src/basic/percent-util.c | ||
206 | @@ -3,6 +3,7 @@ | ||
207 | #include "percent-util.h" | ||
208 | #include "string-util.h" | ||
209 | #include "parse-util.h" | ||
210 | +#include "missing_stdlib.h" | ||
211 | |||
212 | static int parse_parts_value_whole(const char *p, const char *symbol) { | ||
213 | const char *pc, *n; | ||
214 | diff --git a/src/basic/proc-cmdline.c b/src/basic/proc-cmdline.c | ||
215 | index eea70d8606..ae3abd8402 100644 | ||
216 | --- a/src/basic/proc-cmdline.c | ||
217 | +++ b/src/basic/proc-cmdline.c | ||
218 | @@ -16,6 +16,7 @@ | ||
219 | #include "string-util.h" | ||
220 | #include "strv.h" | ||
221 | #include "virt.h" | ||
222 | +#include "missing_stdlib.h" | ||
223 | |||
224 | int proc_cmdline_filter_pid1_args(char **argv, char ***ret) { | ||
225 | enum { | ||
226 | diff --git a/src/basic/procfs-util.c b/src/basic/procfs-util.c | ||
227 | index bcba5a5208..64a95dd866 100644 | ||
228 | --- a/src/basic/procfs-util.c | ||
229 | +++ b/src/basic/procfs-util.c | ||
230 | @@ -12,6 +12,7 @@ | ||
231 | #include "procfs-util.h" | ||
232 | #include "stdio-util.h" | ||
233 | #include "string-util.h" | ||
234 | +#include "missing_stdlib.h" | ||
235 | |||
236 | int procfs_get_pid_max(uint64_t *ret) { | ||
237 | _cleanup_free_ char *value = NULL; | ||
238 | diff --git a/src/basic/time-util.c b/src/basic/time-util.c | ||
239 | index b700f364ef..48a26bcec9 100644 | ||
240 | --- a/src/basic/time-util.c | ||
241 | +++ b/src/basic/time-util.c | ||
242 | @@ -27,6 +27,7 @@ | ||
243 | #include "string-util.h" | ||
244 | #include "strv.h" | ||
245 | #include "time-util.h" | ||
246 | +#include "missing_stdlib.h" | ||
247 | |||
248 | static clockid_t map_clock_id(clockid_t c) { | ||
249 | |||
250 | diff --git a/src/boot/bless-boot.c b/src/boot/bless-boot.c | ||
251 | index 59f02b761a..7496646350 100644 | ||
252 | --- a/src/boot/bless-boot.c | ||
253 | +++ b/src/boot/bless-boot.c | ||
254 | @@ -22,6 +22,7 @@ | ||
255 | #include "terminal-util.h" | ||
256 | #include "verbs.h" | ||
257 | #include "virt.h" | ||
258 | +#include "missing_stdlib.h" | ||
259 | |||
260 | static char **arg_path = NULL; | ||
261 | |||
262 | diff --git a/src/core/dbus-cgroup.c b/src/core/dbus-cgroup.c | ||
263 | index b5484eda78..54ed62c790 100644 | ||
264 | --- a/src/core/dbus-cgroup.c | ||
265 | +++ b/src/core/dbus-cgroup.c | ||
266 | @@ -23,6 +23,7 @@ | ||
267 | #include "parse-util.h" | ||
268 | #include "path-util.h" | ||
269 | #include "percent-util.h" | ||
270 | +#include "missing_stdlib.h" | ||
271 | #include "socket-util.h" | ||
272 | |||
273 | BUS_DEFINE_PROPERTY_GET(bus_property_get_tasks_max, "t", TasksMax, tasks_max_resolve); | ||
274 | diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c | ||
275 | index f514b8fd12..4febd0d496 100644 | ||
276 | --- a/src/core/dbus-execute.c | ||
277 | +++ b/src/core/dbus-execute.c | ||
278 | @@ -48,6 +48,7 @@ | ||
279 | #include "unit-printf.h" | ||
280 | #include "user-util.h" | ||
281 | #include "utf8.h" | ||
282 | +#include "missing_stdlib.h" | ||
283 | |||
284 | BUS_DEFINE_PROPERTY_GET_ENUM(bus_property_get_exec_output, exec_output, ExecOutput); | ||
285 | static BUS_DEFINE_PROPERTY_GET_ENUM(property_get_exec_input, exec_input, ExecInput); | ||
286 | diff --git a/src/core/dbus-util.c b/src/core/dbus-util.c | ||
287 | index edfa0eb69a..6fd2ec9062 100644 | ||
288 | --- a/src/core/dbus-util.c | ||
289 | +++ b/src/core/dbus-util.c | ||
290 | @@ -9,6 +9,7 @@ | ||
291 | #include "unit-printf.h" | ||
292 | #include "user-util.h" | ||
293 | #include "unit.h" | ||
294 | +#include "missing_stdlib.h" | ||
295 | |||
296 | int bus_property_get_triggered_unit( | ||
297 | sd_bus *bus, | ||
298 | diff --git a/src/core/execute.c b/src/core/execute.c | ||
299 | index 853e87450f..8ef76de9ab 100644 | ||
300 | --- a/src/core/execute.c | ||
301 | +++ b/src/core/execute.c | ||
302 | @@ -113,6 +113,7 @@ | ||
303 | #include "unit-serialize.h" | ||
304 | #include "user-util.h" | ||
305 | #include "utmp-wtmp.h" | ||
306 | +#include "missing_stdlib.h" | ||
307 | |||
308 | #define IDLE_TIMEOUT_USEC (5*USEC_PER_SEC) | ||
309 | #define IDLE_TIMEOUT2_USEC (1*USEC_PER_SEC) | ||
310 | diff --git a/src/core/kmod-setup.c b/src/core/kmod-setup.c | ||
311 | index e843743777..e149807492 100644 | ||
312 | --- a/src/core/kmod-setup.c | ||
313 | +++ b/src/core/kmod-setup.c | ||
314 | @@ -13,6 +13,7 @@ | ||
315 | #include "string-util.h" | ||
316 | #include "strv.h" | ||
317 | #include "virt.h" | ||
318 | +#include "missing_stdlib.h" | ||
319 | |||
320 | #if HAVE_KMOD | ||
321 | #include "module-util.h" | ||
322 | diff --git a/src/core/service.c b/src/core/service.c | ||
323 | index 9ad3c3d995..b112d64919 100644 | ||
324 | --- a/src/core/service.c | ||
325 | +++ b/src/core/service.c | ||
326 | @@ -45,6 +45,7 @@ | ||
327 | #include "unit-name.h" | ||
328 | #include "unit.h" | ||
329 | #include "utf8.h" | ||
330 | +#include "missing_stdlib.h" | ||
331 | |||
332 | #define service_spawn(...) service_spawn_internal(__func__, __VA_ARGS__) | ||
333 | |||
334 | diff --git a/src/coredump/coredump-vacuum.c b/src/coredump/coredump-vacuum.c | ||
335 | index c6e201ecf2..ab034475e2 100644 | ||
336 | --- a/src/coredump/coredump-vacuum.c | ||
337 | +++ b/src/coredump/coredump-vacuum.c | ||
338 | @@ -17,6 +17,7 @@ | ||
339 | #include "string-util.h" | ||
340 | #include "time-util.h" | ||
341 | #include "user-util.h" | ||
342 | +#include "missing_stdlib.h" | ||
343 | |||
344 | #define DEFAULT_MAX_USE_LOWER (uint64_t) (1ULL*1024ULL*1024ULL) /* 1 MiB */ | ||
345 | #define DEFAULT_MAX_USE_UPPER (uint64_t) (4ULL*1024ULL*1024ULL*1024ULL) /* 4 GiB */ | ||
346 | diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c | ||
347 | index efc553b698..acea922311 100644 | ||
348 | --- a/src/fstab-generator/fstab-generator.c | ||
349 | +++ b/src/fstab-generator/fstab-generator.c | ||
350 | @@ -37,6 +37,7 @@ | ||
351 | #include "unit-name.h" | ||
352 | #include "virt.h" | ||
353 | #include "volatile-util.h" | ||
354 | +#include "missing_stdlib.h" | ||
355 | |||
356 | typedef enum MountPointFlags { | ||
357 | MOUNT_NOAUTO = 1 << 0, | ||
358 | diff --git a/src/journal-remote/journal-remote-main.c b/src/journal-remote/journal-remote-main.c | ||
359 | index 7df264fb53..9463a0e9fb 100644 | ||
360 | --- a/src/journal-remote/journal-remote-main.c | ||
361 | +++ b/src/journal-remote/journal-remote-main.c | ||
362 | @@ -26,6 +26,7 @@ | ||
363 | #include "stat-util.h" | ||
364 | #include "string-table.h" | ||
365 | #include "strv.h" | ||
366 | +#include "missing_stdlib.h" | ||
367 | |||
368 | #define PRIV_KEY_FILE CERTIFICATE_ROOT "/private/journal-remote.pem" | ||
369 | #define CERT_FILE CERTIFICATE_ROOT "/certs/journal-remote.pem" | ||
370 | diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c | ||
371 | index da0fac548e..c1c043e0e0 100644 | ||
372 | --- a/src/journal/journalctl.c | ||
373 | +++ b/src/journal/journalctl.c | ||
374 | @@ -77,6 +77,7 @@ | ||
375 | #include "unit-name.h" | ||
376 | #include "user-util.h" | ||
377 | #include "varlink.h" | ||
378 | +#include "missing_stdlib.h" | ||
379 | |||
380 | #define DEFAULT_FSS_INTERVAL_USEC (15*USEC_PER_MINUTE) | ||
381 | #define PROCESS_INOTIFY_INTERVAL 1024 /* Every 1,024 messages processed */ | ||
382 | diff --git a/src/libsystemd/sd-bus/bus-message.c b/src/libsystemd/sd-bus/bus-message.c | ||
383 | index 9719f97c02..75decd9834 100644 | ||
384 | --- a/src/libsystemd/sd-bus/bus-message.c | ||
385 | +++ b/src/libsystemd/sd-bus/bus-message.c | ||
386 | @@ -19,6 +19,7 @@ | ||
387 | #include "strv.h" | ||
388 | #include "time-util.h" | ||
389 | #include "utf8.h" | ||
390 | +#include "missing_stdlib.h" | ||
391 | |||
392 | static int message_append_basic(sd_bus_message *m, char type, const void *p, const void **stored); | ||
393 | static int message_parse_fields(sd_bus_message *m); | ||
394 | diff --git a/src/libsystemd/sd-bus/bus-objects.c b/src/libsystemd/sd-bus/bus-objects.c | ||
395 | index 2ad7a9993d..bba72f99f4 100644 | ||
396 | --- a/src/libsystemd/sd-bus/bus-objects.c | ||
397 | +++ b/src/libsystemd/sd-bus/bus-objects.c | ||
398 | @@ -11,6 +11,7 @@ | ||
399 | #include "missing_capability.h" | ||
400 | #include "string-util.h" | ||
401 | #include "strv.h" | ||
402 | +#include "missing_stdlib.h" | ||
403 | |||
404 | static int node_vtable_get_userdata( | ||
405 | sd_bus *bus, | ||
406 | diff --git a/src/libsystemd/sd-bus/bus-socket.c b/src/libsystemd/sd-bus/bus-socket.c | ||
407 | index 64037e4fe0..9b9ce0aaa9 100644 | ||
408 | --- a/src/libsystemd/sd-bus/bus-socket.c | ||
409 | +++ b/src/libsystemd/sd-bus/bus-socket.c | ||
410 | @@ -28,6 +28,7 @@ | ||
411 | #include "string-util.h" | ||
412 | #include "user-util.h" | ||
413 | #include "utf8.h" | ||
414 | +#include "missing_stdlib.h" | ||
415 | |||
416 | #define SNDBUF_SIZE (8*1024*1024) | ||
417 | |||
418 | diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c | ||
419 | index f6a5e4aa06..b36faa79a3 100644 | ||
420 | --- a/src/libsystemd/sd-bus/sd-bus.c | ||
421 | +++ b/src/libsystemd/sd-bus/sd-bus.c | ||
422 | @@ -46,6 +46,7 @@ | ||
423 | #include "string-util.h" | ||
424 | #include "strv.h" | ||
425 | #include "user-util.h" | ||
426 | +#include "missing_stdlib.h" | ||
427 | |||
428 | #define log_debug_bus_message(m) \ | ||
429 | do { \ | ||
430 | diff --git a/src/libsystemd/sd-bus/test-bus-benchmark.c b/src/libsystemd/sd-bus/test-bus-benchmark.c | ||
431 | index 1eb6edd329..d434a3c178 100644 | ||
432 | --- a/src/libsystemd/sd-bus/test-bus-benchmark.c | ||
433 | +++ b/src/libsystemd/sd-bus/test-bus-benchmark.c | ||
434 | @@ -13,6 +13,7 @@ | ||
435 | #include "missing_resource.h" | ||
436 | #include "string-util.h" | ||
437 | #include "time-util.h" | ||
438 | +#include "missing_stdlib.h" | ||
439 | |||
440 | #define MAX_SIZE (2*1024*1024) | ||
441 | |||
442 | diff --git a/src/libsystemd/sd-journal/sd-journal.c b/src/libsystemd/sd-journal/sd-journal.c | ||
443 | index 9947947ef2..8dc6f93159 100644 | ||
444 | --- a/src/libsystemd/sd-journal/sd-journal.c | ||
445 | +++ b/src/libsystemd/sd-journal/sd-journal.c | ||
446 | @@ -44,6 +44,7 @@ | ||
447 | #include "strv.h" | ||
448 | #include "syslog-util.h" | ||
449 | #include "uid-alloc-range.h" | ||
450 | +#include "missing_stdlib.h" | ||
451 | |||
452 | #define JOURNAL_FILES_RECHECK_USEC (2 * USEC_PER_SEC) | ||
453 | |||
454 | diff --git a/src/login/pam_systemd.c b/src/login/pam_systemd.c | ||
455 | index ba2fca32c6..e1f9caa13b 100644 | ||
456 | --- a/src/login/pam_systemd.c | ||
457 | +++ b/src/login/pam_systemd.c | ||
458 | @@ -34,6 +34,7 @@ | ||
459 | #include "locale-util.h" | ||
460 | #include "login-util.h" | ||
461 | #include "macro.h" | ||
462 | +#include "missing_stdlib.h" | ||
463 | #include "pam-util.h" | ||
464 | #include "parse-util.h" | ||
465 | #include "path-util.h" | ||
466 | diff --git a/src/network/generator/network-generator.c b/src/network/generator/network-generator.c | ||
467 | index 1090934bfc..69a77f66e2 100644 | ||
468 | --- a/src/network/generator/network-generator.c | ||
469 | +++ b/src/network/generator/network-generator.c | ||
470 | @@ -14,6 +14,7 @@ | ||
471 | #include "string-table.h" | ||
472 | #include "string-util.h" | ||
473 | #include "strv.h" | ||
474 | +#include "missing_stdlib.h" | ||
475 | |||
476 | /* | ||
477 | # .network | ||
478 | diff --git a/src/nspawn/nspawn-settings.c b/src/nspawn/nspawn-settings.c | ||
479 | index 05bde1c756..aa29587868 100644 | ||
480 | --- a/src/nspawn/nspawn-settings.c | ||
481 | +++ b/src/nspawn/nspawn-settings.c | ||
482 | @@ -16,6 +16,7 @@ | ||
483 | #include "string-util.h" | ||
484 | #include "strv.h" | ||
485 | #include "user-util.h" | ||
486 | +#include "missing_stdlib.h" | ||
487 | |||
488 | Settings *settings_new(void) { | ||
489 | Settings *s; | ||
490 | diff --git a/src/nss-mymachines/nss-mymachines.c b/src/nss-mymachines/nss-mymachines.c | ||
491 | index c64e79bdff..eda26b0b9a 100644 | ||
492 | --- a/src/nss-mymachines/nss-mymachines.c | ||
493 | +++ b/src/nss-mymachines/nss-mymachines.c | ||
494 | @@ -21,6 +21,7 @@ | ||
495 | #include "nss-util.h" | ||
496 | #include "signal-util.h" | ||
497 | #include "string-util.h" | ||
498 | +#include "missing_stdlib.h" | ||
499 | |||
500 | static void setup_logging_once(void) { | ||
501 | static pthread_once_t once = PTHREAD_ONCE_INIT; | ||
502 | diff --git a/src/portable/portable.c b/src/portable/portable.c | ||
503 | index 7811833fac..c6414da91c 100644 | ||
504 | --- a/src/portable/portable.c | ||
505 | +++ b/src/portable/portable.c | ||
506 | @@ -40,6 +40,7 @@ | ||
507 | #include "strv.h" | ||
508 | #include "tmpfile-util.h" | ||
509 | #include "user-util.h" | ||
510 | +#include "missing_stdlib.h" | ||
511 | |||
512 | /* Markers used in the first line of our 20-portable.conf unit file drop-in to determine, that a) the unit file was | ||
513 | * dropped there by the portable service logic and b) for which image it was dropped there. */ | ||
514 | diff --git a/src/resolve/resolvectl.c b/src/resolve/resolvectl.c | ||
515 | index 2638e985fb..82c903fd66 100644 | ||
516 | --- a/src/resolve/resolvectl.c | ||
517 | +++ b/src/resolve/resolvectl.c | ||
518 | @@ -48,6 +48,7 @@ | ||
519 | #include "varlink.h" | ||
520 | #include "verb-log-control.h" | ||
521 | #include "verbs.h" | ||
522 | +#include "missing_stdlib.h" | ||
523 | |||
524 | static int arg_family = AF_UNSPEC; | ||
525 | static int arg_ifindex = 0; | ||
526 | diff --git a/src/shared/bus-get-properties.c b/src/shared/bus-get-properties.c | ||
527 | index 8b4f66b22e..5926e4c61b 100644 | ||
528 | --- a/src/shared/bus-get-properties.c | ||
529 | +++ b/src/shared/bus-get-properties.c | ||
530 | @@ -4,6 +4,7 @@ | ||
531 | #include "rlimit-util.h" | ||
532 | #include "stdio-util.h" | ||
533 | #include "string-util.h" | ||
534 | +#include "missing_stdlib.h" | ||
535 | |||
536 | int bus_property_get_bool( | ||
537 | sd_bus *bus, | ||
538 | diff --git a/src/shared/bus-unit-procs.c b/src/shared/bus-unit-procs.c | ||
539 | index 8b462b5627..183ce1c18e 100644 | ||
540 | --- a/src/shared/bus-unit-procs.c | ||
541 | +++ b/src/shared/bus-unit-procs.c | ||
542 | @@ -11,6 +11,7 @@ | ||
543 | #include "sort-util.h" | ||
544 | #include "string-util.h" | ||
545 | #include "terminal-util.h" | ||
546 | +#include "missing_stdlib.h" | ||
547 | |||
548 | struct CGroupInfo { | ||
549 | char *cgroup_path; | ||
550 | diff --git a/src/shared/bus-unit-util.c b/src/shared/bus-unit-util.c | ||
551 | index 1e95e36678..640ee031d5 100644 | ||
552 | --- a/src/shared/bus-unit-util.c | ||
553 | +++ b/src/shared/bus-unit-util.c | ||
554 | @@ -51,6 +51,7 @@ | ||
555 | #include "unit-def.h" | ||
556 | #include "user-util.h" | ||
557 | #include "utf8.h" | ||
558 | +#include "missing_stdlib.h" | ||
559 | |||
560 | int bus_parse_unit_info(sd_bus_message *message, UnitInfo *u) { | ||
561 | assert(message); | ||
562 | diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c | ||
563 | index d09ec5148d..f38a8f7cc1 100644 | ||
564 | --- a/src/shared/bus-util.c | ||
565 | +++ b/src/shared/bus-util.c | ||
566 | @@ -24,6 +24,7 @@ | ||
567 | #include "path-util.h" | ||
568 | #include "socket-util.h" | ||
569 | #include "stdio-util.h" | ||
570 | +#include "missing_stdlib.h" | ||
571 | |||
572 | static int name_owner_change_callback(sd_bus_message *m, void *userdata, sd_bus_error *ret_error) { | ||
573 | sd_event *e = ASSERT_PTR(userdata); | ||
574 | diff --git a/src/shared/dns-domain.c b/src/shared/dns-domain.c | ||
575 | index 620b156563..5ee5b09186 100644 | ||
576 | --- a/src/shared/dns-domain.c | ||
577 | +++ b/src/shared/dns-domain.c | ||
578 | @@ -18,6 +18,7 @@ | ||
579 | #include "string-util.h" | ||
580 | #include "strv.h" | ||
581 | #include "utf8.h" | ||
582 | +#include "missing_stdlib.h" | ||
583 | |||
584 | int dns_label_unescape(const char **name, char *dest, size_t sz, DNSLabelFlags flags) { | ||
585 | const char *n; | ||
586 | diff --git a/src/shared/journal-importer.c b/src/shared/journal-importer.c | ||
587 | index d9eabec886..534c6cf7e3 100644 | ||
588 | --- a/src/shared/journal-importer.c | ||
589 | +++ b/src/shared/journal-importer.c | ||
590 | @@ -16,6 +16,7 @@ | ||
591 | #include "string-util.h" | ||
592 | #include "strv.h" | ||
593 | #include "unaligned.h" | ||
594 | +#include "missing_stdlib.h" | ||
595 | |||
596 | enum { | ||
597 | IMPORTER_STATE_LINE = 0, /* waiting to read, or reading line */ | ||
598 | diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c | ||
599 | index b72e516c8d..6e832b74c3 100644 | ||
600 | --- a/src/shared/logs-show.c | ||
601 | +++ b/src/shared/logs-show.c | ||
602 | @@ -41,6 +41,7 @@ | ||
603 | #include "time-util.h" | ||
604 | #include "utf8.h" | ||
605 | #include "web-util.h" | ||
606 | +#include "missing_stdlib.h" | ||
607 | |||
608 | /* up to three lines (each up to 100 characters) or 300 characters, whichever is less */ | ||
609 | #define PRINT_LINE_THRESHOLD 3 | ||
610 | diff --git a/src/shared/pager.c b/src/shared/pager.c | ||
611 | index 6ed35a3ca9..99d9d36140 100644 | ||
612 | --- a/src/shared/pager.c | ||
613 | +++ b/src/shared/pager.c | ||
614 | @@ -25,6 +25,7 @@ | ||
615 | #include "string-util.h" | ||
616 | #include "strv.h" | ||
617 | #include "terminal-util.h" | ||
618 | +#include "missing_stdlib.h" | ||
619 | |||
620 | static pid_t pager_pid = 0; | ||
621 | |||
622 | diff --git a/src/socket-proxy/socket-proxyd.c b/src/socket-proxy/socket-proxyd.c | ||
623 | index 821049e667..08a5bdae3d 100644 | ||
624 | --- a/src/socket-proxy/socket-proxyd.c | ||
625 | +++ b/src/socket-proxy/socket-proxyd.c | ||
626 | @@ -27,6 +27,7 @@ | ||
627 | #include "set.h" | ||
628 | #include "socket-util.h" | ||
629 | #include "string-util.h" | ||
630 | +#include "missing_stdlib.h" | ||
631 | |||
632 | #define BUFFER_SIZE (256 * 1024) | ||
633 | |||
634 | diff --git a/src/test/test-hexdecoct.c b/src/test/test-hexdecoct.c | ||
635 | index 9d71db6ae1..a9938c1e6e 100644 | ||
636 | --- a/src/test/test-hexdecoct.c | ||
637 | +++ b/src/test/test-hexdecoct.c | ||
638 | @@ -7,6 +7,7 @@ | ||
639 | #include "macro.h" | ||
640 | #include "random-util.h" | ||
641 | #include "string-util.h" | ||
642 | +#include "missing_stdlib.h" | ||
643 | #include "tests.h" | ||
644 | |||
645 | TEST(hexchar) { | ||
646 | diff --git a/src/udev/udev-builtin-path_id.c b/src/udev/udev-builtin-path_id.c | ||
647 | index 8e4d57ee72..6b4555b4d5 100644 | ||
648 | --- a/src/udev/udev-builtin-path_id.c | ||
649 | +++ b/src/udev/udev-builtin-path_id.c | ||
650 | @@ -24,6 +24,7 @@ | ||
651 | #include "sysexits.h" | ||
652 | #include "udev-builtin.h" | ||
653 | #include "udev-util.h" | ||
654 | +#include "missing_stdlib.h" | ||
655 | |||
656 | _printf_(2,3) | ||
657 | static void path_prepend(char **path, const char *fmt, ...) { | ||
658 | diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c | ||
659 | index ec4ad30824..bc40303a46 100644 | ||
660 | --- a/src/udev/udev-event.c | ||
661 | +++ b/src/udev/udev-event.c | ||
662 | @@ -34,6 +34,7 @@ | ||
663 | #include "udev-util.h" | ||
664 | #include "udev-watch.h" | ||
665 | #include "user-util.h" | ||
666 | +#include "missing_stdlib.h" | ||
667 | |||
668 | typedef struct Spawn { | ||
669 | sd_device *device; | ||
670 | diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c | ||
671 | index 5bd09a64d1..0ce79f815c 100644 | ||
672 | --- a/src/udev/udev-rules.c | ||
673 | +++ b/src/udev/udev-rules.c | ||
674 | @@ -35,6 +35,7 @@ | ||
675 | #include "udev-util.h" | ||
676 | #include "user-util.h" | ||
677 | #include "virt.h" | ||
678 | +#include "missing_stdlib.h" | ||
679 | |||
680 | #define RULES_DIRS ((const char* const*) CONF_PATHS_STRV("udev/rules.d")) | ||
681 | |||
682 | -- | ||
683 | 2.39.2 | ||
684 | |||