/systemd-251/src/basic/ |
D | alloc-util.h | 96 static inline bool size_multiply_overflow(size_t size, size_t need) { in size_multiply_overflow() argument 97 return _unlikely_(need != 0 && size > (SIZE_MAX / need)); in size_multiply_overflow() 100 _malloc_ _alloc_(1, 2) static inline void *malloc_multiply(size_t size, size_t need) { in malloc_multiply() argument 101 if (size_multiply_overflow(size, need)) in malloc_multiply() 104 return malloc(size * need ?: 1); in malloc_multiply() 108 _alloc_(2, 3) static inline void *reallocarray(void *p, size_t need, size_t size) { in reallocarray() argument 109 if (size_multiply_overflow(size, need)) in reallocarray() 112 return realloc(p, size * need ?: 1); in reallocarray() 116 _alloc_(2, 3) static inline void *memdup_multiply(const void *p, size_t size, size_t need) { in memdup_multiply() argument 117 if (size_multiply_overflow(size, need)) in memdup_multiply() [all …]
|
D | alloc-util.c | 43 size_t need, in greedy_realloc() argument 56 if (*p && (size == 0 || (MALLOC_SIZEOF_SAFE(*p) / size >= need))) in greedy_realloc() 59 if (_unlikely_(need > SIZE_MAX/2)) /* Overflow check */ in greedy_realloc() 61 newalloc = need * 2; in greedy_realloc() 79 size_t need, in greedy_realloc0() argument 89 q = greedy_realloc(p, need, size); in greedy_realloc0()
|
/systemd-251/src/shared/ |
D | cpu-set-util.c | 87 size_t need; in cpu_set_realloc() local 91 need = CPU_ALLOC_SIZE(ncpus); in cpu_set_realloc() 92 if (need > cpu_set->allocated) { in cpu_set_realloc() 95 t = realloc(cpu_set->set, need); in cpu_set_realloc() 99 memzero((uint8_t*) t + cpu_set->allocated, need - cpu_set->allocated); in cpu_set_realloc() 102 cpu_set->allocated = need; in cpu_set_realloc()
|
D | acl-util.c | 59 bool need = false; in calc_acl_mask_if_needed() local 75 need = true; in calc_acl_mask_if_needed() 80 if (need && acl_calc_mask(acl_p) < 0) in calc_acl_mask_if_needed() 83 return need; in calc_acl_mask_if_needed()
|
/systemd-251/src/libsystemd/sd-bus/ |
D | bus-socket.c | 1083 static int bus_socket_read_message_need(sd_bus *bus, size_t *need) { in bus_socket_read_message_need() argument 1089 assert(need); in bus_socket_read_message_need() 1093 *need = sizeof(struct bus_header) + 8; in bus_socket_read_message_need() 1131 *need = (size_t) sum; in bus_socket_read_message_need() 1189 size_t need; in bus_socket_read_message() local 1198 r = bus_socket_read_message_need(bus, &need); in bus_socket_read_message() 1202 if (bus->rbuffer_size >= need) in bus_socket_read_message() 1203 return bus_socket_make_message(bus, need); in bus_socket_read_message() 1205 b = realloc(bus->rbuffer, need); in bus_socket_read_message() 1211 iov = IOVEC_MAKE((uint8_t *)bus->rbuffer + bus->rbuffer_size, need - bus->rbuffer_size); in bus_socket_read_message() [all …]
|
/systemd-251/docs/ |
D | TESTING_WITH_SANITIZERS.md | 17 gcc compiles in sanitizer libraries dynamically by default, so you need to get 34 only the unit tests, but for integration tests you'll need to convince clang 57 need to manually direct binaries to the respective runtime libraries. 81 The reason why you need to force dynamic linking in case of `clang` is that some 85 need to pre-load the ASan DSO using `LD_PRELOAD=/path/to/asan/dso`, which will
|
D | PORTING_TO_NEW_ARCHITECTURES.md | 18 enumeration entry you need to provide an implementation of 44 in very new glibc), and we need to know the right numbers for them. It might
|
D | UIDS-GIDS.md | 214 without the need to know the original base UID: to change the container base, 233 follow this scheme no changes to `/etc/passwd` need to be made, thus minimizing 303 up). Specifically, system users need to be resolvable at least before 305 need to resolve system users — but note that there might be more services 308 Regular users do not need to be resolvable during early boot, it is sufficient 309 if they become resolvable during late boot. Specifically, regular users need to 317 order to minimize synchronization points on systems that don't need it the unit
|
D | RANDOM_SEEDS.md | 106 access encrypted storage which might need random numbers. systemd itself 290 1. *Why don't you just use getrandom()? That's all you need!* 298 all you need!* 307 need!* 312 for the `uuidd.service` start we already need a UUID that the service is 318 That's all you need!* 325 [`egd`](http://egd.sourceforge.net/)? That's all you need!* 340 That's all you need!*
|
/systemd-251/sysctl.d/ |
D | 50-coredump.conf.in | 19 # We collect metadata from /proc/%P/, and thus need to make sure the crashed 20 # processes are not reaped until we have finished collecting what we need. The
|
/systemd-251/src/rpm/ |
D | triggers.systemd.sh.in | 23 # On removal, we need to run daemon-reload after any units have been 25 # On upgrade, we need to run daemon-reload after any new unit files
|
D | triggers.systemd.in | 32 -- On removal, we need to run daemon-reload after any units have been 34 -- On upgrade, we need to run daemon-reload after any new unit files
|
/systemd-251/rules.d/ |
D | 81-net-dhcp.rules | 10 # s390 ccwgroup interfaces in layer3 mode need broadcast DHCPOFFER
|
D | 78-sound-card.rules | 8 # Ok, we probably need a little explanation here for what the two lines above 31 # in it may need to figure out if the 'change' event has already been triggered
|
/systemd-251/ |
D | README | 215 During runtime, you need the following additional 257 and does not need to be specified) is the recommended setting. 292 need to be resolvable by getgrnam() at any time, even in the very early 348 mechanism such as chkconfig or update-rc.d. Packagers need to provide 349 this script if you need this functionality (you don't if you disabled
|
/systemd-251/.github/workflows/ |
D | linter.yml | 28 # We need a full repo clone
|
/systemd-251/hwdb.d/ |
D | 60-seat.hwdb | 26 # HyperV currently doesn't do DRM, hence we need to synthesize for HyperV's fb
|
/systemd-251/units/ |
D | systemd-journald.socket | 16 # Mount and swap units need this. If this socket unit is removed by an
|
D | systemd-journal-gatewayd.service.in | 36 # If there are many split up journal files we need a lot of fds to access them
|
D | systemd-journal-upload.service.in | 38 # If there are many split up journal files we need a lot of fds to access them
|
D | systemd-journal-remote.service.in | 41 # If there are many split up journal files we need a lot of fds to access them
|
D | systemd-journald-dev-log.socket | 16 # Mount and swap units need this. If this socket unit is removed by an
|
D | systemd-time-wait-sync.service.in | 14 # Note that this tool doesn't need CAP_SYS_TIME itself, but it's primary
|
D | systemd-journald@.service.in | 41 # If there are many split up journal files we need a lot of fds to access them
|
/systemd-251/test/fuzz/fuzz-udev-rules/ |
D | 78-sound-card.rules | 8 # Ok, we probably need a little explanation here for what the two lines above 31 # in it may need to figure out if the 'change' event has already been triggered
|