/* SPDX-License-Identifier: LGPL-2.1+ */
-
#include "format-util.h"
#include "memory-util.h"
#include "stdio-util.h"
/* SPDX-License-Identifier: LGPL-2.1+ */
-
#include "login-util.h"
#include "string-util.h"
if (r < 0)
return log_error_errno(r, "Failed to show table: %m");
-
-
return 0;
}
if (s->result == SWAP_SUCCESS)
s->result = f;
-
r = unit_kill_context(UNIT(s),
&s->kill_context,
state_to_kill_operation(s, state),
swap_enter_signal(s, SWAP_DEACTIVATING_SIGKILL, SWAP_SUCCESS);
return 0;
-
default:
assert_not_reached("Unexpected state.");
}
return 0;
}
-
r = sd_genl_message_new(nl, SD_GENL_ID_CTRL, CTRL_CMD_GETFAMILY, &req);
if (r < 0)
return r;
return k;
}
-
static int verb_reload(int argc, char *argv[], void *userdata) {
_cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
_cleanup_(sd_bus_flush_close_unrefp) sd_bus *bus = NULL;
struct rtnl_link_stats64 stats_old, stats_new;
bool stats_updated;
-
/* All kinds of DNS configuration */
struct in_addr_data *dns;
unsigned n_dns;
return 0;
}
-
static int trim_cb(const char *path, const struct stat *sb, int typeflag, struct FTW *ftwbuf) {
assert(path);
assert(sb);
return 0;
}
-
static ssize_t utf16_size(const uint16_t *s, size_t buf_len_bytes) {
size_t l = 0;
return 0;
}
-
static int get_stringset(int fd, struct ifreq *ifr, int stringset_id, struct ethtool_gstrings **gstrings) {
_cleanup_free_ struct ethtool_gstrings *strings = NULL;
struct {
bool tx_pending_set;
} netdev_ring_param;
-
int ethtool_get_driver(int *fd, const char *ifname, char **ret);
int ethtool_get_link_info(int *fd, const char *ifname,
int *ret_autonegotiation, size_t *ret_speed,
return 0;
}
-
static int list_units(int argc, char *argv[], void *userdata) {
_cleanup_free_ UnitInfo *unit_infos = NULL;
_cleanup_(message_set_freep) Set *replies = NULL;
/* SPDX-License-Identifier: LGPL-2.1+ */
-
#include "alloc-util.h"
#include "calendarspec.h"
#include "errno-util.h"
/* SPDX-License-Identifier: LGPL-2.1+ */
-
#include "alloc-util.h"
#include "string-util.h"
#include "tests.h"
/* SPDX-License-Identifier: LGPL-2.1+ */
-
#include "env-util.h"
#include "fd-util.h"
#include "fileio.h"
/* SPDX-License-Identifier: LGPL-2.1+ */
-
#include "alloc-util.h"
#include "escape.h"
#include "nulstr-util.h"
if (r == 0)
log_debug("Cache rebuild skipped based on mtime.");
-
char **id;
STRV_FOREACH(id, ids) {
const char *fragment, *name;