Home
last modified time | relevance | path

Searched refs:need (Results 1 – 25 of 69) sorted by relevance

123

/systemd-251/src/basic/
Dalloc-util.h96 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 …]
Dalloc-util.c43 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/
Dcpu-set-util.c87 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()
Dacl-util.c59 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/
Dbus-socket.c1083 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/
DTESTING_WITH_SANITIZERS.md17 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
DPORTING_TO_NEW_ARCHITECTURES.md18 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
DUIDS-GIDS.md214 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
DRANDOM_SEEDS.md106 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/
D50-coredump.conf.in19 # 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/
Dtriggers.systemd.sh.in23 # 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
Dtriggers.systemd.in32 -- 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/
D81-net-dhcp.rules10 # s390 ccwgroup interfaces in layer3 mode need broadcast DHCPOFFER
D78-sound-card.rules8 # 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/
DREADME215 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/
Dlinter.yml28 # We need a full repo clone
/systemd-251/hwdb.d/
D60-seat.hwdb26 # HyperV currently doesn't do DRM, hence we need to synthesize for HyperV's fb
/systemd-251/units/
Dsystemd-journald.socket16 # Mount and swap units need this. If this socket unit is removed by an
Dsystemd-journal-gatewayd.service.in36 # If there are many split up journal files we need a lot of fds to access them
Dsystemd-journal-upload.service.in38 # If there are many split up journal files we need a lot of fds to access them
Dsystemd-journal-remote.service.in41 # If there are many split up journal files we need a lot of fds to access them
Dsystemd-journald-dev-log.socket16 # Mount and swap units need this. If this socket unit is removed by an
Dsystemd-time-wait-sync.service.in14 # Note that this tool doesn't need CAP_SYS_TIME itself, but it's primary
Dsystemd-journald@.service.in41 # If there are many split up journal files we need a lot of fds to access them
/systemd-251/test/fuzz/fuzz-udev-rules/
D78-sound-card.rules8 # 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

123