#include "string-util.h"
#include "strv.h"
#include "terminal-util.h"
-#include "util.h"
#define PCI_CLASS_GRAPHICS_CARD 0x30000
#include <endian.h>
#include "macro.h"
-#include "util.h"
/* A cleaned up architecture definition. We don't want to get lost in
* processor features, models, generations or even ABIs. Hence we
#include "macro.h"
#include "process-util.h"
#include "signal-util.h"
-#include "util.h"
int asynchronous_job(void* (*func)(void *p), void *arg) {
sigset_t ss, saved_ss;
#include "macro.h"
#include "parse-util.h"
#include "stdio-util.h"
-#include "util.h"
static const struct capability_name* lookup_capability(register const char *str, register GPERF_LEN_TYPE len);
#include "cap-list.h"
#include "fileio.h"
#include "log.h"
+#include "logarithm.h"
#include "macro.h"
#include "missing_prctl.h"
#include "parse-util.h"
#include "user-util.h"
-#include "util.h"
int have_effective_cap(int value) {
_cleanup_cap_free_ cap_t cap = NULL;
#include "macro.h"
#include "missing_capability.h"
-#include "util.h"
#define CAP_ALL UINT64_MAX
#include "string-table.h"
#include "string-util.h"
#include "unaligned.h"
-#include "util.h"
#if HAVE_LZ4
DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(LZ4F_compressionContext_t, LZ4F_freeCompressionContext, NULL);
#include "stat-util.h"
#include "stdio-util.h"
#include "tmpfile-util.h"
-#include "util.h"
/* The maximum number of iterations in the loop to close descriptors in the fallback case
* when /proc/self/fd/ is inaccessible. */
#include "tmpfile-util.h"
#include "umask-util.h"
#include "user-util.h"
-#include "util.h"
int unlink_noerrno(const char *path) {
PROTECT_ERRNO;
#include "alloc-util.h"
#include "fileio.h"
#include "hashmap.h"
+#include "logarithm.h"
#include "macro.h"
#include "memory-util.h"
#include "mempool.h"
#include "hash-funcs.h"
#include "macro.h"
-#include "util.h"
/*
* A hash table implementation. As a minor optimization a NULL hashmap object
#include "alloc-util.h"
#include "errno-util.h"
#include "in-addr-util.h"
+#include "logarithm.h"
#include "macro.h"
#include "parse-util.h"
#include "random-util.h"
#include "stdio-util.h"
#include "string-util.h"
#include "strxcpyx.h"
-#include "util.h"
bool in4_addr_is_null(const struct in_addr *a) {
assert(a);
#include "hash-funcs.h"
#include "macro.h"
-#include "util.h"
union in_addr_union {
struct in_addr in;
'locale-util.h',
'log.c',
'log.h',
+ 'logarithm.h',
'login-util.c',
'login-util.h',
'macro.h',
'user-util.h',
'utf8.c',
'utf8.h',
- 'util.h',
'virt.c',
'virt.h',
'xattr-util.c',
#include "strv.h"
#include "terminal-util.h"
#include "utf8.h"
-#include "util.h"
char* first_word(const char *s, const char *word) {
size_t sl, wl;
#include "terminal-util.h"
#include "time-util.h"
#include "user-util.h"
-#include "util.h"
static volatile unsigned cached_columns = 0;
static volatile unsigned cached_lines = 0;
#include "busctl-introspect.h"
#include "path-util.h"
#include "string-util.h"
-#include "util.h"
#include "xml.h"
#define NODE_DEPTH_MAX 16
#include "capability-util.h"
#include "fd-util.h"
#include "log.h"
-#include "util.h"
static bool initialized = false;
static int audit_fd;
#include "kill.h"
#include "signal-util.h"
#include "string-table.h"
-#include "util.h"
void kill_context_init(KillContext *c) {
assert(c);
#include "selinux-util.h"
#include "stdio-util.h"
#include "strv.h"
-#include "util.h"
static bool initialized = false;
#include "unit-name.h"
#include "unit.h"
#include "utf8.h"
-#include "util.h"
#define service_spawn(...) service_spawn_internal(__func__, __VA_ARGS__)
#include "string-table.h"
#include "string-util.h"
#include "terminal-util.h"
-#include "util.h"
static const char* const show_status_table[_SHOW_STATUS_MAX] = {
[SHOW_STATUS_NO] = "no",
#include "macro.h"
#include "smack-setup.h"
#include "string-util.h"
-#include "util.h"
#if ENABLE_SMACK
#include "string-util.h"
#include "strv.h"
#include "unit-name.h"
-#include "util.h"
typedef struct crypto_device {
char *uuid;
#include "socket-util.h"
#include "special.h"
#include "stdio-util.h"
-#include "util.h"
static bool arg_skip = false;
static bool arg_force = false;
#include "fd-util.h"
#include "fuzz.h"
#include "time-util.h"
-#include "util.h"
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
_cleanup_free_ char *str = NULL;
#include "strv.h"
#include "terminal-util.h"
#include "unit-name.h"
-#include "util.h"
#include "virt.h"
static const char *arg_dest = NULL;
#include "string-table.h"
#include "strv.h"
#include "user-util.h"
-#include "util.h"
#include "virt.h"
#define VALID_DEPLOYMENT_CHARS (DIGITS LETTERS "-.:")
#include "stat-util.h"
#include "string-util.h"
#include "tmpfile-util.h"
-#include "util.h"
#define COPY_BUFFER_SIZE (16*1024)
#include "ratelimit.h"
#include "string-util.h"
#include "tmpfile-util.h"
-#include "util.h"
#define COPY_BUFFER_SIZE (16*1024)
#include "signal-util.h"
#include "stat-util.h"
#include "tmpfile-util.h"
-#include "util.h"
int import_fork_tar_x(const char *path, pid_t *ret) {
_cleanup_close_pair_ int pipefd[2] = { -1, -1 };
#include "import-compress.h"
#include "string-table.h"
-#include "util.h"
void import_compress_free(ImportCompress *c) {
assert(c);
#include "rm-rf.h"
#include "string-util.h"
#include "tmpfile-util.h"
-#include "util.h"
struct RawImport {
sd_event *event;
#include "rm-rf.h"
#include "string-util.h"
#include "tmpfile-util.h"
-#include "util.h"
struct TarImport {
sd_event *event;
#include "strv.h"
#include "syslog-util.h"
#include "user-util.h"
-#include "util.h"
#include "web-util.h"
typedef struct Transfer Transfer;
#include "siphash24.h"
#include "string-util.h"
#include "strv.h"
-#include "util.h"
#include "web-util.h"
#define FILENAME_ESCAPE "/.#\"\'"
#include "strv.h"
#include "tmpfile-util.h"
#include "utf8.h"
-#include "util.h"
#include "web-util.h"
typedef enum RawProgress {
#include "tmpfile-util.h"
#include "user-util.h"
#include "utf8.h"
-#include "util.h"
#include "web-util.h"
typedef enum TarProgress {
#include "btrfs-util.h"
#include "qcow2-util.h"
#include "sparse-endian.h"
-#include "util.h"
#define QCOW2_MAGIC 0x514649fb
#include "log.h"
#include "string-util.h"
#include "utf8.h"
-#include "util.h"
/**
* Write up to size bytes to buf. Return negative on error, and number of
#include "microhttpd-util.h"
#include "string-util.h"
#include "strv.h"
-#include "util.h"
void microhttpd_logger(void *arg, const char *fmt, va_list ap) {
char *f;
#include "hashmap.h"
#include "journald-rate-limit.h"
#include "list.h"
+#include "logarithm.h"
#include "random-util.h"
#include "string-util.h"
#include "time-util.h"
#include "parse-util.h"
#include "rm-rf.h"
#include "tests.h"
-#include "util.h"
/* This program tests skipping around in a multi-file journal. */
#include "parse-util.h"
#include "rm-rf.h"
#include "tests.h"
-#include "util.h"
#define N_ENTRIES 200
#include "rm-rf.h"
#include "terminal-util.h"
#include "tests.h"
-#include "util.h"
#define N_ENTRIES 6000
#define RANDOM_RANGE 77
#include "fd-util.h"
#include "in-addr-util.h"
#include "unaligned.h"
-#include "util.h"
int arp_update_filter(int fd, const struct in_addr *a, const struct ether_addr *mac) {
struct sock_filter filter[] = {
#include "dhcp-internal.h"
#include "dhcp-protocol.h"
#include "list.h"
-#include "util.h"
struct sd_dhcp_route {
struct in_addr dst_addr;
#include "siphash24.h"
#include "sparse-endian.h"
#include "string-util.h"
-#include "util.h"
#define IPV4LL_NETWORK UINT32_C(0xA9FE0000)
#define IPV4LL_NETMASK UINT32_C(0xFFFF0000)
#include "in-addr-util.h"
#include "tests.h"
-#include "util.h"
static void acd_handler(sd_ipv4acd *acd, int event, void *userdata) {
assert_se(acd);
#include "fd-util.h"
#include "random-util.h"
#include "tests.h"
-#include "util.h"
static struct hw_addr_data hw_addr = {
.length = ETH_ALEN,
#include "parse-util.h"
#include "string-util.h"
#include "tests.h"
-#include "util.h"
static void ll_handler(sd_ipv4ll *ll, int event, void *userdata) {
assert_se(ll);
#include "fd-util.h"
#include "socket-util.h"
#include "tests.h"
-#include "util.h"
static bool verbose = false;
static bool extended = false;
#include "strv.h"
#include "terminal-util.h"
#include "user-util.h"
-#include "util.h"
enum {
CAP_OFFSET_INHERITABLE = 0,
#include "string-util.h"
#include "strv.h"
#include "terminal-util.h"
-#include "util.h"
static char *indent(unsigned level, uint64_t flags) {
char *p;
#include "errno-util.h"
#include "string-util.h"
#include "strv.h"
-#include "util.h"
BUS_ERROR_MAP_ELF_REGISTER const sd_bus_error_map bus_standard_errors[] = {
SD_BUS_ERROR_MAP("org.freedesktop.DBus.Error.Failed", EACCES),
/* SPDX-License-Identifier: LGPL-2.1-or-later */
-#include <util.h>
-
#include "sd-bus.h"
#include "bus-signature.h"
#include "missing_resource.h"
#include "string-util.h"
#include "time-util.h"
-#include "util.h"
#define MAX_SIZE (2*1024*1024)
#include "macro.h"
#include "string-util.h"
#include "tests.h"
-#include "util.h"
static int match_callback(sd_bus_message *m, void *userdata, sd_bus_error *ret_error) {
log_info("Match triggered! destination=%s interface=%s member=%s",
#include "fileio.h"
#include "log.h"
#include "tests.h"
-#include "util.h"
static void test_bus_path_encode_unique(void) {
_cleanup_free_ char *a = NULL, *b = NULL, *c = NULL, *d = NULL, *e = NULL;
#include "log.h"
#include "macro.h"
#include "strv.h"
-#include "util.h"
struct context {
int fds[2];
#include "stat-util.h"
#include "strv.h"
#include "time-util.h"
-#include "util.h"
#define SNDBUF_SIZE (8*1024*1024)
#include "strv.h"
#include "strxcpyx.h"
#include "user-util.h"
-#include "util.h"
int device_new_aux(sd_device **ret) {
sd_device *device;
#include "stat-util.h"
#include "string-util.h"
#include "tests.h"
-#include "util.h"
#include "virt.h"
static int monitor_handler(sd_device_monitor *m, sd_device *d, void *userdata) {
#include "glyph-util.h"
#include "hashmap.h"
#include "list.h"
+#include "logarithm.h"
#include "macro.h"
#include "memory-util.h"
#include "missing_syscall.h"
#include "string-util.h"
#include "tests.h"
#include "tmpfile-util.h"
-#include "util.h"
static int prepare_handler(sd_event_source *s, void *userdata) {
log_info("preparing %c", PTR_TO_INT(userdata));
#include "missing_syscall.h"
#include "random-util.h"
#include "user-util.h"
-#include "util.h"
_public_ char *sd_id128_to_string(sd_id128_t id, char s[_SD_ARRAY_STATIC SD_ID128_STRING_MAX]) {
assert_return(s, NULL);
#include <sys/types.h>
#include "macro.h"
-#include "util.h"
#ifdef __cplusplus
extern "C" {
#include "macro.h"
#include "terminal-util.h"
#include "tmpfile-util.h"
-#include "util.h"
static void draw_progress(uint64_t p, usec_t *last_usec) {
unsigned n, i, j, k;
#include "strv.h"
#include "tests.h"
#include "tmpfile-util.h"
-#include "util.h"
static char** catalog_dirs = NULL;
static const char *no_catalog_dirs[] = {
#include "parse-util.h"
#include "rm-rf.h"
#include "tests.h"
-#include "util.h"
int main(int argc, char *argv[]) {
sd_journal *j;
#include "log.h"
#include "string-util.h"
#include "tests.h"
-#include "util.h"
int main(int argc, char *argv[]) {
_cleanup_(sd_journal_closep) sd_journal *j = NULL;
#include "macro.h"
#include "mmap-cache.h"
#include "tmpfile-util.h"
-#include "util.h"
int main(int argc, char *argv[]) {
MMapFileDescriptor *fx;
#include "string-util.h"
#include "strv.h"
#include "user-util.h"
-#include "util.h"
/* Error codes:
*
#include "netlink-types.h"
#include "netlink-util.h"
#include "socket-util.h"
-#include "util.h"
static bool rtnl_message_type_is_neigh(uint16_t type) {
return IN_SET(type, RTM_NEWNEIGH, RTM_GETNEIGH, RTM_DELNEIGH);
#include "netlink-internal.h"
#include "netlink-types.h"
#include "socket-util.h"
-#include "util.h"
static int broadcast_groups_get(sd_netlink *nl) {
_cleanup_free_ uint32_t *groups = NULL;
#include "in-addr-util.h"
#include "ordered-set.h"
#include "socket-util.h"
-#include "util.h"
/* See struct rtvia in rtnetlink.h */
typedef struct RouteVia {
#include "stdio-util.h"
#include "string-util.h"
#include "strv.h"
-#include "util.h"
static int network_get_string(const char *field, char **ret) {
_cleanup_free_ char *s = NULL;
#include "string-util.h"
#include "strv.h"
#include "user-util.h"
-#include "util.h"
static int from_environment(const char *envname, const char *fallback, const char **ret) {
assert(ret);
#include "logind-button.h"
#include "missing_input.h"
#include "string-util.h"
-#include "util.h"
#define CONST_MAX5(a, b, c, d, e) CONST_MAX(CONST_MAX(a, b), CONST_MAX(CONST_MAX(c, d), e))
#include "alloc-util.h"
#include "logind-device.h"
#include "logind-seat-dbus.h"
-#include "util.h"
Device* device_new(Manager *m, const char *sysfs, bool master) {
Device *d;
#include "string-util.h"
#include "tmpfile-util.h"
#include "user-util.h"
-#include "util.h"
static void inhibitor_remove_fifo(Inhibitor *i);
#include "missing_capability.h"
#include "strv.h"
#include "user-util.h"
-#include "util.h"
static BUS_DEFINE_PROPERTY_GET_GLOBAL(property_get_const_true, "b", true);
static BUS_DEFINE_PROPERTY_GET(property_get_can_tty, "b", Seat, seat_can_tty);
#include "string-util.h"
#include "terminal-util.h"
#include "tmpfile-util.h"
-#include "util.h"
int seat_new(Seat** ret, Manager *m, const char *id) {
_cleanup_(seat_freep) Seat *s = NULL;
#include "signal-util.h"
#include "strv.h"
#include "user-util.h"
-#include "util.h"
static int property_get_user(
sd_bus *bus,
#include "missing_drm.h"
#include "missing_input.h"
#include "parse-util.h"
-#include "util.h"
enum SessionDeviceNotifications {
SESSION_DEVICE_RESUME,
#include "tmpfile-util.h"
#include "uid-alloc-range.h"
#include "user-util.h"
-#include "util.h"
#define RELEASE_USEC (20*USEC_PER_SEC)
#include "uid-alloc-range.h"
#include "unit-name.h"
#include "user-util.h"
-#include "util.h"
int user_new(User **ret,
Manager *m,
#include "string-util.h"
#include "sysfs-show.h"
#include "terminal-util.h"
-#include "util.h"
static int show_sysfs_one(
const char *seat,
#include "bus-util.h"
#include "fd-util.h"
#include "macro.h"
-#include "util.h"
static int inhibit(sd_bus *bus, const char *what) {
_cleanup_(sd_bus_message_unrefp) sd_bus_message *reply = NULL;
#include "tmpfile-util.h"
#include "unit-name.h"
#include "user-util.h"
-#include "util.h"
Machine* machine_new(Manager *manager, MachineClass class, const char *name) {
Machine *m;
#include "parse-util.h"
#include "string-table.h"
#include "string-util.h"
-#include "util.h"
static const char* const fou_encap_type_table[_NETDEV_FOO_OVER_UDP_ENCAP_MAX] = {
[NETDEV_FOO_OVER_UDP_ENCAP_DIRECT] = "FooOverUDP",
#include "socket-util.h"
#include "string-table.h"
#include "string-util.h"
-#include "util.h"
static const char* const l2tp_l2spec_type_table[_NETDEV_L2TP_L2SPECTYPE_MAX] = {
[NETDEV_L2TP_L2SPECTYPE_NONE] = "none",
#include "socket-util.h"
#include "string-table.h"
#include "string-util.h"
-#include "util.h"
static void security_association_clear(SecurityAssociation *sa) {
if (!sa)
#include "string-table.h"
#include "string-util.h"
#include "tunnel.h"
-#include "util.h"
#define DEFAULT_IPV6_TTL 64
#define IP6_FLOWINFO_FLOWLABEL htobe32(0x000FFFFF)
#include "alloc-util.h"
#include "firewall-util.h"
+#include "logarithm.h"
#include "memory-util.h"
#include "netlink-util.h"
#include "networkd-address-pool.h"
#include "format-util.h"
#include "fs-util.h"
#include "glyph-util.h"
+#include "logarithm.h"
#include "missing_network.h"
#include "netlink-util.h"
#include "network-internal.h"
#include "tmpfile-util.h"
#include "tuntap.h"
#include "udev-util.h"
-#include "util.h"
#include "vrf.h"
bool link_ipv6_enabled(Link *link) {
#include "string-util.h"
#include "strv.h"
#include "tclass.h"
-#include "util.h"
/* Let's assume that anything above this number is a user misconfiguration. */
#define MAX_NTP_SERVERS 128U
#include <linux/rtnetlink.h>
#include "alloc-util.h"
+#include "logarithm.h"
#include "networkd-address.h"
#include "networkd-link.h"
#include "networkd-manager.h"
#include "condition.h"
#include "conf-parser.h"
#include "escape.h"
+#include "logarithm.h"
#include "networkd-link.h"
#include "networkd-util.h"
#include "parse-util.h"
#include "alloc-util.h"
#include "conf-parser.h"
#include "fq.h"
+#include "logarithm.h"
#include "netlink-util.h"
#include "parse-util.h"
#include "string-util.h"
#include "netlink-util.h"
#include "parse-util.h"
#include "string-util.h"
-#include "util.h"
static int heavy_hitter_filter_fill_message(Link *link, QDisc *qdisc, sd_netlink_message *req) {
HeavyHitterFilter *hhf;
#include "netlink-util.h"
#include "strv.h"
#include "time-util.h"
-#include "util.h"
static bool link_in_command_line_interfaces(Link *link, Manager *m) {
assert(link);
#include "string-util.h"
#include "strv.h"
#include "user-util.h"
-#include "util.h"
static int chown_cgroup_path(const char *path, uid_t uid_shift) {
_cleanup_close_ int fd = -1;
#include "parse-util.h"
#include "socket-util.h"
#include "string-util.h"
-#include "util.h"
int expose_port_parse(ExposePort **l, const char *s) {
const char *split, *e;
#include "string-util.h"
#include "strv.h"
#include "udev-util.h"
-#include "util.h"
#define HOST_HASH_KEY SD_ID128_MAKE(1a,37,6f,c7,46,ec,45,0b,ad,a3,d5,31,06,60,5d,b1)
#define CONTAINER_HASH_KEY SD_ID128_MAKE(c3,c4,f9,19,b5,57,b2,1c,e6,cf,14,27,03,9c,ee,a2)
#include "special.h"
#include "stat-util.h"
#include "strv.h"
-#include "util.h"
static int append_machine_properties(
sd_bus_message *m,
#include "string-util.h"
#include "strv.h"
#include "user-util.h"
-#include "util.h"
Settings *settings_new(void) {
Settings *s;
#include "string-util.h"
#include "strv.h"
#include "user-util.h"
-#include "util.h"
static int spawn_getent(const char *database, const char *key, pid_t *rpid) {
int pipe_fds[2], r;
#include "strv.h"
#include "tmpfile-util.h"
#include "user-util.h"
-#include "util.h"
/* Command line argument handling */
typedef enum PStoreStorage {
#include "process-util.h"
#include "signal-util.h"
#include "string-util.h"
-#include "util.h"
static bool arg_skip = false;
static bool arg_force = false;
#include "log.h"
#include "mkdir-label.h"
#include "string-util.h"
-#include "util.h"
static const char *arg_dest = NULL;
#include "process-util.h"
#include "signal-util.h"
#include "strv.h"
-#include "util.h"
/* Goes through /etc/fstab and remounts all API file systems, applying options that are in /etc/fstab that systemd
* might not have respected */
#include "memory-util.h"
#include "socket-util.h"
#include "string-util.h"
-#include "util.h"
static int send_on_socket(int fd, const char *socket_name, const void *packet, size_t size) {
union sockaddr_union sa = {};
#include "strv.h"
#include "unaligned.h"
#include "utf8.h"
-#include "util.h"
#define EDNS0_OPT_DO (1<<15)
#include "string-table.h"
#include "string-util.h"
#include "udev-util.h"
-#include "util.h"
/* Note that any write is delayed until exit and the rfkill state will not be
* stored for rfkill indices that disappear after a change. */
#include "string-util.h"
#include "strv.h"
#include "user-util.h"
-#include "util.h"
int acl_find_uid(acl_t acl, uid_t uid, acl_entry_t *ret_entry) {
acl_entry_t i;
#include "stat-util.h"
#include "string-util.h"
#include "time-util.h"
-#include "util.h"
/* WARNING: Be careful with file system ioctls! When we get an fd, we
* need to make sure it either refers to only a regular file or
#include <stdbool.h>
#include "time-util.h"
-#include "util.h"
typedef struct CalendarComponent {
int start;
#include "stat-util.h"
#include "string-util.h"
#include "strv.h"
-#include "util.h"
char* cpu_set_to_string(const CPUSet *a) {
_cleanup_free_ char *str = NULL;
#include "glyph-util.h"
#include "set.h"
#include "string-util.h"
-#include "util.h"
static int flush_acl(acl_t acl) {
acl_entry_t i;
#include "process-util.h"
#include "rlimit-util.h"
#include "string-util.h"
-#include "util.h"
#define FRAMES_MAX 64
#define THREADS_MAX 64
#include "strv.h"
#include "terminal-util.h"
#include "tmpfile-util.h"
-#include "util.h"
/* Put this test here for a lack of better place */
assert_cc(EAGAIN == EWOULDBLOCK);
#include "time-util.h"
#include "user-util.h"
#include "utf8.h"
-#include "util.h"
#define DEFAULT_WEIGHT 100
#include "proc-cmdline.h"
#include "string-table.h"
#include "string-util.h"
-#include "util.h"
static int sethostname_idempotent_full(const char *s, bool really) {
struct utsname u;
#include "macro.h"
#include "output-mode.h"
#include "time-util.h"
-#include "util.h"
int show_journal_entry(
FILE *f,
#include "string-util.h"
#include "sync-util.h"
#include "umask-util.h"
-#include "util.h"
#include "virt.h"
static int generate_machine_id(const char *root, sd_id128_t *ret) {
#include "string-util.h"
#include "strv.h"
#include "terminal-util.h"
-#include "util.h"
static pid_t pager_pid = 0;
#include "string-util.h"
#include "strv.h"
#include "terminal-util.h"
-#include "util.h"
bool urlify_enabled(void) {
#if ENABLE_URLIFY
#include "log.h"
#include "process-util.h"
#include "spawn-ask-password-agent.h"
-#include "util.h"
static pid_t agent_pid = 0;
#include "spawn-polkit-agent.h"
#include "stdio-util.h"
#include "time-util.h"
-#include "util.h"
#if ENABLE_POLKIT
static pid_t agent_pid = 0;
#include <sys/mman.h>
#include <sys/mount.h>
#include <sys/wait.h>
-#include <util.h>
/* When we include libgen.h because we need dirname() we immediately
* undefine basename() since libgen.h defines it as a macro to the POSIX
#include <sys/types.h>
#include "time-util.h"
-#include "util.h"
#if ENABLE_UTMP
#include <utmpx.h>
#include <stdbool.h>
#include "time-util.h"
-#include "util.h"
const char *watchdog_get_device(void);
usec_t watchdog_get_last_ping(clockid_t clock);
#include "string-util.h"
#include "tests.h"
#include "umount.h"
-#include "util.h"
static void test_mount_points_list_one(const char *fname) {
_cleanup_(mount_points_list_free) LIST_HEAD(MountPoint, mp_list_head);
#include "strv.h"
#include "sync-util.h"
#include "umount.h"
-#include "util.h"
#include "virt.h"
static void mount_point_free(MountPoint **head, MountPoint *m) {
#include "special.h"
#include "string-util.h"
#include "unit-file.h"
-#include "util.h"
/*
* Implements the logic described in systemd.offline-updates(7).
#include "stdio-util.h"
#include "string-util.h"
#include "sysupdate-partition.h"
-#include "util.h"
void partition_info_destroy(PartitionInfo *p) {
assert(p);
#include "string-util.h"
#include "strv.h"
#include "unit-name.h"
-#include "util.h"
static const struct {
const char *path;
[files('test-limits-util.c')],
- [files('test-util.c')],
+ [files('test-logarithm.c')],
[files('test-macro.c')],
#include "macro.h"
#include "string-util.h"
#include "tests.h"
-#include "util.h"
_unused_
static const struct af_name* lookup_af(register const char *str, register GPERF_LEN_TYPE len);
#include "errno-util.h"
#include "log.h"
#include "tests.h"
-#include "util.h"
#include "virt.h"
int main(int argc, char *argv[]) {
#include "async.h"
#include "macro.h"
#include "tmpfile-util.h"
-#include "util.h"
static bool test_async = false;
#include "errno-util.h"
#include "tests.h"
#include "time-util.h"
-#include "util.h"
#include "virt.h"
/* 20ms to test deadlocks; All timings use multiples of this constant as
#include "errno-util.h"
#include "log.h"
#include "tests.h"
-#include "util.h"
static int test_acpi_fpdt(void) {
usec_t loader_start, loader_exit;
#include "format-util.h"
#include "log.h"
#include "string-util.h"
-#include "util.h"
int main(int argc, char *argv[]) {
BtrfsQuotaInfo quota;
#include "parse-util.h"
#include "string-util.h"
#include "tests.h"
-#include "util.h"
/* verify the capability parser */
TEST(cap_list) {
#include "strv.h"
#include "tests.h"
#include "user-util.h"
-#include "util.h"
#include "version.h"
static void check_p_d_u(const char *path, int code, const char *result) {
#include "strv.h"
#include "tests.h"
#include "user-util.h"
-#include "util.h"
static void setup_test_dir(char *tmp_dir, const char *files, ...) {
va_list ap;
#include "strv.h"
#include "tests.h"
#include "tmpfile-util.h"
-#include "util.h"
static void test_config_parse_path_one(const char *rvalue, const char *expected) {
_cleanup_free_ char *path = NULL;
#include "tests.h"
#include "tmpfile-util.h"
#include "user-util.h"
-#include "util.h"
#include "xattr-util.h"
TEST(copy_file) {
#include "strv.h"
#include "terminal-util.h"
#include "tests.h"
-#include "util.h"
#include "utf8.h"
static void test_ellipsize_mem_one(const char *s, size_t old_length, size_t new_length) {
#include "string-util.h"
#include "strv.h"
#include "tests.h"
-#include "util.h"
TEST(strv_env_delete) {
_cleanup_strv_free_ char **a = NULL, **b = NULL, **c = NULL, **d = NULL;
#include "macro.h"
#include "string-util.h"
#include "tests.h"
-#include "util.h"
TEST(errno_list) {
for (size_t i = 0; i < ELEMENTSOF(errno_names); i++) {
#include "tmpfile-util.h"
#include "unit.h"
#include "user-util.h"
-#include "util.h"
#include "virt.h"
static char *user_runtime_unit_dir = NULL;
#include "macro.h"
#include "tests.h"
#include "tmpfile-util.h"
-#include "util.h"
TEST(fdset_new_fill) {
int fd = -1;
#include "strv.h"
#include "tests.h"
#include "tmpfile-util.h"
-#include "util.h"
TEST(parse_env_file) {
_cleanup_(unlink_tempfilep) char
#include "tmpfile-util.h"
#include "umask-util.h"
#include "user-util.h"
-#include "util.h"
#include "virt.h"
static const char *arg_test_dir = NULL;
#include "strv.h"
#include "terminal-util.h"
#include "tests.h"
-#include "util.h"
TEST(gpt_types_against_architectures) {
int r;
#include "hashmap.h"
#include "string-util.h"
#include "tests.h"
-#include "util.h"
unsigned custom_counter = 0;
static void custom_destruct(void* p) {
#include "string-util.h"
#include "strv.h"
#include "tests.h"
-#include "util.h"
static void test_tokenizer_one(const char *data, ...) {
unsigned line = 0, column = 0;
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#include "list.h"
-#include "util.h"
int main(int argc, const char *argv[]) {
size_t i;
#include "macro.h"
#include "strv.h"
#include "tests.h"
-#include "util.h"
TEST(get_locales) {
_cleanup_strv_free_ char **locales = NULL;
#include "log.h"
#include "process-util.h"
#include "string-util.h"
-#include "util.h"
assert_cc(IS_SYNTHETIC_ERRNO(SYNTHETIC_ERRNO(EINVAL)));
assert_cc(!IS_SYNTHETIC_ERRNO(EINVAL));
/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#include "logarithm.h"
#include "tests.h"
-#include "util.h"
TEST(LOG2ULL) {
assert_se(LOG2ULL(0) == 0);
#include "string-util.h"
#include "tests.h"
#include "user-util.h"
-#include "util.h"
#include "virt.h"
TEST(namespace_cleanup_tmpdir) {
#include "strv.h"
#include "tests.h"
#include "tmpfile-util.h"
-#include "util.h"
TEST(print_paths) {
log_info("DEFAULT_PATH=%s", DEFAULT_PATH);
#include "strv.h"
#include "tests.h"
#include "unit.h"
-#include "util.h"
typedef void (*test_function_t)(Manager *m);
#include "terminal-util.h"
#include "tests.h"
#include "user-util.h"
-#include "util.h"
#include "virt.h"
static void test_get_process_comm_one(pid_t pid) {
#include "string-util.h"
#include "tests.h"
#include "time-util.h"
-#include "util.h"
static void test_testing(void) {
bool b;
#include "sleep-config.h"
#include "strv.h"
#include "tests.h"
-#include "util.h"
TEST(parse_sleep_config) {
_cleanup_(free_sleep_configp) SleepConfig *sleep_config = NULL;
#include "string-util.h"
#include "strv.h"
#include "tests.h"
-#include "util.h"
static ssize_t add_string(struct strbuf *sb, const char *s) {
return strbuf_add_string(sb, s, strlen(s));
#include "strv.h"
#include "tests.h"
#include "utf8.h"
-#include "util.h"
TEST(string_erase) {
char *x;
#include "string-util.h"
#include "terminal-util.h"
#include "tests.h"
-#include "util.h"
TEST(strip_tab_ansi) {
_cleanup_free_ char *urlified = NULL, *q = NULL, *qq = NULL;
#include "string-util.h"
#include "strxcpyx.h"
#include "tests.h"
-#include "util.h"
TEST(strpcpy) {
char target[25];
#include "timer.h"
#include "unit-name.h"
#include "unit.h"
-#include "util.h"
#include "virt.h"
int main(int argc, char **argv) {
#include "terminal-util.h"
#include "tests.h"
#include "tmpfile-util.h"
-#include "util.h"
#define LOREM_IPSUM "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor " \
"incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation " \
#include "string-util.h"
#include "tests.h"
#include "tmpfile-util.h"
-#include "util.h"
TEST(tmpfiles) {
_cleanup_free_ char *cmd = NULL, *cmd2 = NULL, *ans = NULL, *ans2 = NULL, *d = NULL, *tmp = NULL, *line = NULL;
#include "tmpfile-util.h"
#include "uid-range.h"
#include "user-util.h"
-#include "util.h"
#include "virt.h"
TEST(uid_range) {
#include "unit-printf.h"
#include "unit.h"
#include "user-util.h"
-#include "util.h"
static char *runtime_dir = NULL;
#include "strv.h"
#include "tests.h"
#include "utf8.h"
-#include "util.h"
TEST(utf8_is_printable) {
assert_se(utf8_is_printable("ascii is valid\tunicode", 22));
#include "alloc-util.h"
#include "string-util.h"
-#include "util.h"
#include "xml.h"
static void test_one(const char *data, ...) {
#include "fs-util.h"
#include "list.h"
#include "log.h"
+#include "logarithm.h"
#include "network-util.h"
#include "ratelimit.h"
#include "resolve-private.h"
#include "timesyncd-conf.h"
#include "timesyncd-manager.h"
#include "user-util.h"
-#include "util.h"
#ifndef ADJ_SETOFFSET
#define ADJ_SETOFFSET 0x0100 /* add 'time' to current time */
#include "strv.h"
#include "tests.h"
#include "udev-event.h"
-#include "util.h"
#define BUF_SIZE 1024
#include "string-util.h"
#include "strxcpyx.h"
#include "udev-builtin.h"
-#include "util.h"
static int builtin_btrfs(sd_device *dev, sd_netlink **rtnl, int argc, char *argv[], bool test) {
struct btrfs_ioctl_vol_args args = {};
#include "stdio-util.h"
#include "string-util.h"
#include "udev-builtin.h"
-#include "util.h"
/* we must use this kernel-compatible implementation */
#define BITS_PER_LONG (sizeof(unsigned long) * 8)
#include "socket-util.h"
#include "strxcpyx.h"
#include "udev-ctrl.h"
-#include "util.h"
/* wire protocol magic must match */
#define UDEV_CTRL_MAGIC 0xdead1dea
#include "macro.h"
#include "udev-rules.h"
#include "udev-util.h"
-#include "util.h"
#define READ_END 0
#define WRITE_END 1
#include "time-util.h"
#include "udevadm.h"
#include "udev-ctrl.h"
-#include "util.h"
#include "virt.h"
static int help(void) {
#include "hwdb-util.h"
#include "udevadm.h"
-#include "util.h"
static const char *arg_test = NULL;
static const char *arg_root = NULL;
#include "udev-util.h"
#include "udevadm.h"
#include "udevd.h"
-#include "util.h"
#include "verbs.h"
static int help(void) {
#include <linux/videodev2.h>
#include "fd-util.h"
-#include "util.h"
int main(int argc, char *argv[]) {
static const struct option options[] = {
#include "stdio-util.h"
#include "strv.h"
#include "unit-name.h"
-#include "util.h"
#include "utmp-wtmp.h"
typedef struct Context {
#include "string-util.h"
#include "strv.h"
#include "terminal-util.h"
-#include "util.h"
#include "virt.h"
static int verify_vc_device(int fd) {