Merge pull request #32868 from keszybz/more-whomification
Fix confusion between killer and prey
This commit is contained in:
@@ -81,26 +81,26 @@ typedef enum BondPrimaryReselect {
|
||||
_NETDEV_BOND_PRIMARY_RESELECT_INVALID = -EINVAL,
|
||||
} BondPrimaryReselect;
|
||||
|
||||
const char *bond_mode_to_string(BondMode d) _const_;
|
||||
const char* bond_mode_to_string(BondMode d) _const_;
|
||||
BondMode bond_mode_from_string(const char *d) _pure_;
|
||||
|
||||
const char *bond_xmit_hash_policy_to_string(BondXmitHashPolicy d) _const_;
|
||||
const char* bond_xmit_hash_policy_to_string(BondXmitHashPolicy d) _const_;
|
||||
BondXmitHashPolicy bond_xmit_hash_policy_from_string(const char *d) _pure_;
|
||||
|
||||
const char *bond_lacp_rate_to_string(BondLacpRate d) _const_;
|
||||
const char* bond_lacp_rate_to_string(BondLacpRate d) _const_;
|
||||
BondLacpRate bond_lacp_rate_from_string(const char *d) _pure_;
|
||||
|
||||
const char *bond_fail_over_mac_to_string(BondFailOverMac d) _const_;
|
||||
const char* bond_fail_over_mac_to_string(BondFailOverMac d) _const_;
|
||||
BondFailOverMac bond_fail_over_mac_from_string(const char *d) _pure_;
|
||||
|
||||
const char *bond_ad_select_to_string(BondAdSelect d) _const_;
|
||||
const char* bond_ad_select_to_string(BondAdSelect d) _const_;
|
||||
BondAdSelect bond_ad_select_from_string(const char *d) _pure_;
|
||||
|
||||
const char *bond_arp_validate_to_string(BondArpValidate d) _const_;
|
||||
const char* bond_arp_validate_to_string(BondArpValidate d) _const_;
|
||||
BondArpValidate bond_arp_validate_from_string(const char *d) _pure_;
|
||||
|
||||
const char *bond_arp_all_targets_to_string(BondArpAllTargets d) _const_;
|
||||
const char* bond_arp_all_targets_to_string(BondArpAllTargets d) _const_;
|
||||
BondArpAllTargets bond_arp_all_targets_from_string(const char *d) _pure_;
|
||||
|
||||
const char *bond_primary_reselect_to_string(BondPrimaryReselect d) _const_;
|
||||
const char* bond_primary_reselect_to_string(BondPrimaryReselect d) _const_;
|
||||
BondPrimaryReselect bond_primary_reselect_from_string(const char *d) _pure_;
|
||||
|
||||
@@ -60,6 +60,6 @@ int bpf_map_update_element(int fd, const void *key, void *value);
|
||||
int bpf_map_lookup_element(int fd, const void *key, void *value);
|
||||
|
||||
int bpf_cgroup_attach_type_from_string(const char *str) _pure_;
|
||||
const char *bpf_cgroup_attach_type_to_string(int attach_type) _const_;
|
||||
const char* bpf_cgroup_attach_type_to_string(int attach_type) _const_;
|
||||
|
||||
DEFINE_TRIVIAL_CLEANUP_FUNC(BPFProgram*, bpf_program_free);
|
||||
|
||||
@@ -16,5 +16,5 @@ typedef enum BridgeState {
|
||||
_NETDEV_BRIDGE_STATE_INVALID = -EINVAL,
|
||||
} BridgeState;
|
||||
|
||||
const char *bridge_state_to_string(BridgeState d) _const_;
|
||||
const char* bridge_state_to_string(BridgeState d) _const_;
|
||||
BridgeState bridge_state_from_string(const char *d) _pure_;
|
||||
|
||||
@@ -40,7 +40,7 @@ char* cpu_set_to_string(const CPUSet *a) {
|
||||
return TAKE_PTR(str) ?: strdup("");
|
||||
}
|
||||
|
||||
char *cpu_set_to_range_string(const CPUSet *set) {
|
||||
char* cpu_set_to_range_string(const CPUSet *set) {
|
||||
unsigned range_start = 0, range_end;
|
||||
_cleanup_free_ char *str = NULL;
|
||||
bool in_range = false;
|
||||
|
||||
@@ -26,7 +26,7 @@ int cpu_set_add_all(CPUSet *a, const CPUSet *b);
|
||||
int cpu_set_add(CPUSet *a, unsigned cpu);
|
||||
|
||||
char* cpu_set_to_string(const CPUSet *a);
|
||||
char *cpu_set_to_range_string(const CPUSet *a);
|
||||
char* cpu_set_to_range_string(const CPUSet *a);
|
||||
char* cpu_set_to_mask_string(const CPUSet *a);
|
||||
int cpu_set_realloc(CPUSet *cpu_set, unsigned ncpus);
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ DLSYM_PROTOTYPE(crypt_volume_key_keyring) = NULL;
|
||||
/* Do this only on new enough compilers that actually support the "symver" attribute. Given this is a debug
|
||||
* feature, let's simply not bother on older compilers */
|
||||
#if BUILD_MODE_DEVELOPER && defined(__has_attribute) && __has_attribute(symver)
|
||||
const char *my_crypt_token_external_path(void); /* prototype for our own implementation */
|
||||
const char* my_crypt_token_external_path(void); /* prototype for our own implementation */
|
||||
|
||||
/* We use the "symver" attribute to mark this implementation as the default implementation, and drop the
|
||||
* SD_SHARED namespace we by default attach to our symbols via a version script. */
|
||||
|
||||
@@ -113,7 +113,7 @@ int dlopen_cryptsetup(void);
|
||||
|
||||
int cryptsetup_get_keyslot_from_token(sd_json_variant *v);
|
||||
|
||||
static inline const char *mangle_none(const char *s) {
|
||||
static inline const char* mangle_none(const char *s) {
|
||||
/* A helper that turns cryptsetup/integritysetup/veritysetup "options" strings into NULL if they are effectively empty */
|
||||
return isempty(s) || STR_IN_SET(s, "-", "none") ? NULL : s;
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ static inline bool IMAGE_IS_HOST(const struct Image *i) {
|
||||
|
||||
int image_to_json(const struct Image *i, sd_json_variant **ret);
|
||||
|
||||
const char *image_root_to_string(ImageClass c) _const_;
|
||||
const char* image_root_to_string(ImageClass c) _const_;
|
||||
|
||||
extern const struct hash_ops image_hash_ops;
|
||||
|
||||
|
||||
@@ -235,7 +235,7 @@ int probe_sector_size_prefer_ioctl(int fd, uint32_t *ret);
|
||||
|
||||
int partition_pick_mount_options(PartitionDesignator d, const char *fstype, bool rw, bool discard, char **ret_options, unsigned long *ret_ms_flags);
|
||||
|
||||
static inline const char *dissected_partition_fstype(const DissectedPartition *m) {
|
||||
static inline const char* dissected_partition_fstype(const DissectedPartition *m) {
|
||||
assert(m);
|
||||
|
||||
return m->decrypted_node ? m->decrypted_fstype : m->fstype;
|
||||
|
||||
@@ -181,17 +181,17 @@ int ethtool_set_channels(int *ethtool_fd, const char *ifname, const netdev_chann
|
||||
int ethtool_set_flow_control(int *fd, const char *ifname, int rx, int tx, int autoneg);
|
||||
int ethtool_set_nic_coalesce_settings(int *ethtool_fd, const char *ifname, const netdev_coalesce_param *coalesce);
|
||||
|
||||
const char *duplex_to_string(Duplex d) _const_;
|
||||
const char* duplex_to_string(Duplex d) _const_;
|
||||
Duplex duplex_from_string(const char *d) _pure_;
|
||||
|
||||
int wol_options_to_string_alloc(uint32_t opts, char **ret);
|
||||
|
||||
const char *port_to_string(NetDevPort port) _const_;
|
||||
const char* port_to_string(NetDevPort port) _const_;
|
||||
NetDevPort port_from_string(const char *port) _pure_;
|
||||
|
||||
const char *mdi_to_string(int mdi) _const_;
|
||||
const char* mdi_to_string(int mdi) _const_;
|
||||
|
||||
const char *ethtool_link_mode_bit_to_string(enum ethtool_link_mode_bit_indices val) _const_;
|
||||
const char* ethtool_link_mode_bit_to_string(enum ethtool_link_mode_bit_indices val) _const_;
|
||||
enum ethtool_link_mode_bit_indices ethtool_link_mode_bit_from_string(const char *str) _pure_;
|
||||
|
||||
CONFIG_PARSER_PROTOTYPE(config_parse_duplex);
|
||||
|
||||
@@ -24,7 +24,7 @@ struct FirewallContext {
|
||||
sd_netlink *nfnl;
|
||||
};
|
||||
|
||||
const char *firewall_backend_to_string(FirewallBackend b) _const_;
|
||||
const char* firewall_backend_to_string(FirewallBackend b) _const_;
|
||||
|
||||
int fw_nftables_init(FirewallContext *ctx);
|
||||
int fw_nftables_init_full(FirewallContext *ctx, bool init_tables);
|
||||
|
||||
@@ -60,10 +60,10 @@ typedef struct NFTSetContext {
|
||||
void nft_set_context_clear(NFTSetContext *s);
|
||||
int nft_set_context_dup(const NFTSetContext *src, NFTSetContext *dst);
|
||||
|
||||
const char *nfproto_to_string(int i) _const_;
|
||||
const char* nfproto_to_string(int i) _const_;
|
||||
int nfproto_from_string(const char *s) _pure_;
|
||||
|
||||
const char *nft_set_source_to_string(int i) _const_;
|
||||
const char* nft_set_source_to_string(int i) _const_;
|
||||
int nft_set_source_from_string(const char *s) _pure_;
|
||||
|
||||
int nft_set_element_modify_iprange(
|
||||
|
||||
@@ -346,7 +346,7 @@ static char *tag_to_udev_node(const char *tagvalue, const char *by) {
|
||||
return strjoin("/dev/disk/by-", by, "/", t);
|
||||
}
|
||||
|
||||
char *fstab_node_to_udev_node(const char *p) {
|
||||
char* fstab_node_to_udev_node(const char *p) {
|
||||
const char *q;
|
||||
|
||||
assert(p);
|
||||
|
||||
@@ -49,7 +49,7 @@ static inline bool fstab_test_yes_no_option(const char *opts, const char *yes_no
|
||||
}
|
||||
int fstab_find_pri(const char *opts, int *ret);
|
||||
|
||||
char *fstab_node_to_udev_node(const char *p);
|
||||
char* fstab_node_to_udev_node(const char *p);
|
||||
|
||||
static inline const char* fstab_path(void) {
|
||||
return secure_getenv("SYSTEMD_FSTAB") ?: "/etc/fstab";
|
||||
|
||||
@@ -13,5 +13,5 @@ typedef enum GeneveDF {
|
||||
_NETDEV_GENEVE_DF_INVALID = -EINVAL,
|
||||
} GeneveDF;
|
||||
|
||||
const char *geneve_df_to_string(GeneveDF d) _const_;
|
||||
const char* geneve_df_to_string(GeneveDF d) _const_;
|
||||
GeneveDF geneve_df_from_string(const char *d) _pure_;
|
||||
|
||||
+3
-3
@@ -199,7 +199,7 @@ static const GptPartitionType *gpt_partition_type_find_by_uuid(sd_id128_t id) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const char *gpt_partition_type_uuid_to_string(sd_id128_t id) {
|
||||
const char* gpt_partition_type_uuid_to_string(sd_id128_t id) {
|
||||
const GptPartitionType *pt;
|
||||
|
||||
pt = gpt_partition_type_find_by_uuid(id);
|
||||
@@ -209,7 +209,7 @@ const char *gpt_partition_type_uuid_to_string(sd_id128_t id) {
|
||||
return pt->name;
|
||||
}
|
||||
|
||||
const char *gpt_partition_type_uuid_to_string_harder(
|
||||
const char* gpt_partition_type_uuid_to_string_harder(
|
||||
sd_id128_t id,
|
||||
char buffer[static SD_ID128_UUID_STRING_MAX]) {
|
||||
|
||||
@@ -296,7 +296,7 @@ GptPartitionType gpt_partition_type_from_uuid(sd_id128_t id) {
|
||||
};
|
||||
}
|
||||
|
||||
const char *gpt_partition_type_mountpoint_nulstr(GptPartitionType type) {
|
||||
const char* gpt_partition_type_mountpoint_nulstr(GptPartitionType type) {
|
||||
return partition_mountpoint_to_string(type.designator);
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -41,8 +41,8 @@ PartitionDesignator partition_verity_sig_to_data(PartitionDesignator d);
|
||||
const char* partition_designator_to_string(PartitionDesignator d) _const_;
|
||||
PartitionDesignator partition_designator_from_string(const char *name) _pure_;
|
||||
|
||||
const char *gpt_partition_type_uuid_to_string(sd_id128_t id);
|
||||
const char *gpt_partition_type_uuid_to_string_harder(
|
||||
const char* gpt_partition_type_uuid_to_string(sd_id128_t id);
|
||||
const char* gpt_partition_type_uuid_to_string_harder(
|
||||
sd_id128_t id,
|
||||
char buffer[static SD_ID128_UUID_STRING_MAX]);
|
||||
|
||||
@@ -67,7 +67,7 @@ int gpt_partition_type_from_string(const char *s, GptPartitionType *ret);
|
||||
|
||||
GptPartitionType gpt_partition_type_override_architecture(GptPartitionType type, Architecture arch);
|
||||
|
||||
const char *gpt_partition_type_mountpoint_nulstr(GptPartitionType type);
|
||||
const char* gpt_partition_type_mountpoint_nulstr(GptPartitionType type);
|
||||
|
||||
bool gpt_partition_type_knows_read_only(GptPartitionType type);
|
||||
bool gpt_partition_type_knows_growfs(GptPartitionType type);
|
||||
|
||||
@@ -267,7 +267,7 @@ int group_record_build(GroupRecord **ret, ...) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char *group_record_group_name_and_realm(GroupRecord *h) {
|
||||
const char* group_record_group_name_and_realm(GroupRecord *h) {
|
||||
assert(h);
|
||||
|
||||
/* Return the pre-initialized joined string if it is defined */
|
||||
|
||||
@@ -43,5 +43,5 @@ int group_record_load(GroupRecord *h, sd_json_variant *v, UserRecordLoadFlags fl
|
||||
int group_record_build(GroupRecord **ret, ...);
|
||||
int group_record_clone(GroupRecord *g, UserRecordLoadFlags flags, GroupRecord **ret);
|
||||
|
||||
const char *group_record_group_name_and_realm(GroupRecord *h);
|
||||
const char* group_record_group_name_and_realm(GroupRecord *h);
|
||||
UserDisposition group_record_disposition(GroupRecord *h);
|
||||
|
||||
@@ -237,17 +237,17 @@ typedef enum PresetAction {
|
||||
_PRESET_ACTION_ERRNO_MAX = -ERRNO_MAX, /* Ensure this type covers the whole negative errno range */
|
||||
} PresetAction;
|
||||
|
||||
const char *preset_action_past_tense_to_string(PresetAction action);
|
||||
const char* preset_action_past_tense_to_string(PresetAction action);
|
||||
|
||||
void unit_file_presets_done(UnitFilePresets *p);
|
||||
PresetAction unit_file_query_preset(RuntimeScope scope, const char *root_dir, const char *name, UnitFilePresets *cached);
|
||||
|
||||
const char *unit_file_state_to_string(UnitFileState s) _const_;
|
||||
const char* unit_file_state_to_string(UnitFileState s) _const_;
|
||||
UnitFileState unit_file_state_from_string(const char *s) _pure_;
|
||||
/* from_string conversion is unreliable because of the overlap between -EPERM and -1 for error. */
|
||||
|
||||
const char *install_change_type_to_string(InstallChangeType t) _const_;
|
||||
const char* install_change_type_to_string(InstallChangeType t) _const_;
|
||||
InstallChangeType install_change_type_from_string(const char *s) _pure_;
|
||||
|
||||
const char *unit_file_preset_mode_to_string(UnitFilePresetMode m) _const_;
|
||||
const char* unit_file_preset_mode_to_string(UnitFilePresetMode m) _const_;
|
||||
UnitFilePresetMode unit_file_preset_mode_from_string(const char *s) _pure_;
|
||||
|
||||
@@ -14,7 +14,7 @@ static const struct ip_protocol_name* lookup_ip_protocol(register const char *st
|
||||
#include "ip-protocol-from-name.h"
|
||||
#include "ip-protocol-to-name.h"
|
||||
|
||||
const char *ip_protocol_to_name(int id) {
|
||||
const char* ip_protocol_to_name(int id) {
|
||||
|
||||
if (id < 0)
|
||||
return NULL;
|
||||
@@ -73,7 +73,7 @@ int parse_ip_protocol_full(const char *s, bool relaxed) {
|
||||
return p;
|
||||
}
|
||||
|
||||
const char *ip_protocol_to_tcp_udp(int id) {
|
||||
const char* ip_protocol_to_tcp_udp(int id) {
|
||||
return IN_SET(id, IPPROTO_TCP, IPPROTO_UDP) ?
|
||||
ip_protocol_to_name(id) : NULL;
|
||||
}
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
const char *ip_protocol_to_name(int id);
|
||||
const char* ip_protocol_to_name(int id);
|
||||
int ip_protocol_from_name(const char *name);
|
||||
int parse_ip_protocol_full(const char *s, bool relaxed);
|
||||
static inline int parse_ip_protocol(const char *s) {
|
||||
return parse_ip_protocol_full(s, false);
|
||||
}
|
||||
|
||||
const char *ip_protocol_to_tcp_udp(int id);
|
||||
const char* ip_protocol_to_tcp_udp(int id);
|
||||
int ip_protocol_from_tcp_udp(const char *ip_protocol);
|
||||
|
||||
@@ -22,8 +22,8 @@ typedef enum IPVlanFlags {
|
||||
_NETDEV_IPVLAN_FLAGS_INVALID = -EINVAL,
|
||||
} IPVlanFlags;
|
||||
|
||||
const char *ipvlan_mode_to_string(IPVlanMode d) _const_;
|
||||
const char* ipvlan_mode_to_string(IPVlanMode d) _const_;
|
||||
IPVlanMode ipvlan_mode_from_string(const char *d) _pure_;
|
||||
|
||||
const char *ipvlan_flags_to_string(IPVlanFlags d) _const_;
|
||||
const char* ipvlan_flags_to_string(IPVlanFlags d) _const_;
|
||||
IPVlanFlags ipvlan_flags_from_string(const char *d) _pure_;
|
||||
|
||||
@@ -13,5 +13,5 @@ typedef enum MacVlanMode {
|
||||
_NETDEV_MACVLAN_MODE_INVALID = -EINVAL,
|
||||
} MacVlanMode;
|
||||
|
||||
const char *macvlan_mode_to_string(MacVlanMode d) _const_;
|
||||
const char* macvlan_mode_to_string(MacVlanMode d) _const_;
|
||||
MacVlanMode macvlan_mode_from_string(const char *d) _pure_;
|
||||
|
||||
@@ -92,10 +92,10 @@ typedef enum NamePolicy {
|
||||
_NAMEPOLICY_INVALID = -EINVAL,
|
||||
} NamePolicy;
|
||||
|
||||
const char *name_policy_to_string(NamePolicy p) _const_;
|
||||
const char* name_policy_to_string(NamePolicy p) _const_;
|
||||
NamePolicy name_policy_from_string(const char *p) _pure_;
|
||||
|
||||
const char *alternative_names_policy_to_string(NamePolicy p) _const_;
|
||||
const char* alternative_names_policy_to_string(NamePolicy p) _const_;
|
||||
NamePolicy alternative_names_policy_from_string(const char *p) _pure_;
|
||||
|
||||
int device_get_sysattr_int_filtered(sd_device *device, const char *sysattr, int *ret_value);
|
||||
|
||||
@@ -51,7 +51,7 @@ int net_get_type_string(sd_device *device, uint16_t iftype, char **ret) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char *net_get_persistent_name(sd_device *device) {
|
||||
const char* net_get_persistent_name(sd_device *device) {
|
||||
assert(device);
|
||||
|
||||
/* fetch some persistent data unique (on this machine) to this device */
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
bool netif_has_carrier(uint8_t operstate, unsigned flags);
|
||||
int net_get_type_string(sd_device *device, uint16_t iftype, char **ret);
|
||||
const char *net_get_persistent_name(sd_device *device);
|
||||
const char* net_get_persistent_name(sd_device *device);
|
||||
int net_get_unique_predictable_data(sd_device *device, bool use_sysname, uint64_t *ret);
|
||||
int net_get_unique_predictable_data_from_name(const char *name, const sd_id128_t *key, uint64_t *ret);
|
||||
int net_verify_hardware_address(
|
||||
|
||||
@@ -58,7 +58,7 @@ int namespace_flags_to_string(unsigned long flags, char **ret) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char *namespace_single_flag_to_string(unsigned long flag) {
|
||||
const char* namespace_single_flag_to_string(unsigned long flag) {
|
||||
for (unsigned i = 0; namespace_info[i].proc_name; i++)
|
||||
if (namespace_info[i].clone_flag == flag)
|
||||
return namespace_info[i].proc_name;
|
||||
|
||||
@@ -20,4 +20,4 @@
|
||||
|
||||
int namespace_flags_from_string(const char *name, unsigned long *ret);
|
||||
int namespace_flags_to_string(unsigned long flags, char **ret);
|
||||
const char *namespace_single_flag_to_string(unsigned long flag);
|
||||
const char* namespace_single_flag_to_string(unsigned long flag);
|
||||
|
||||
@@ -201,7 +201,7 @@ CK_RV pkcs11_get_slot_list_malloc(
|
||||
return CKR_BUFFER_TOO_SMALL;
|
||||
}
|
||||
|
||||
char *pkcs11_token_label(const CK_TOKEN_INFO *token_info) {
|
||||
char* pkcs11_token_label(const CK_TOKEN_INFO *token_info) {
|
||||
char *t;
|
||||
|
||||
/* The label is not NUL terminated and likely padded with spaces, let's make a copy here, so that we
|
||||
@@ -214,7 +214,7 @@ char *pkcs11_token_label(const CK_TOKEN_INFO *token_info) {
|
||||
return t;
|
||||
}
|
||||
|
||||
char *pkcs11_token_manufacturer_id(const CK_TOKEN_INFO *token_info) {
|
||||
char* pkcs11_token_manufacturer_id(const CK_TOKEN_INFO *token_info) {
|
||||
char *t;
|
||||
|
||||
t = strndup((char*) token_info->manufacturerID, sizeof(token_info->manufacturerID));
|
||||
@@ -225,7 +225,7 @@ char *pkcs11_token_manufacturer_id(const CK_TOKEN_INFO *token_info) {
|
||||
return t;
|
||||
}
|
||||
|
||||
char *pkcs11_token_model(const CK_TOKEN_INFO *token_info) {
|
||||
char* pkcs11_token_model(const CK_TOKEN_INFO *token_info) {
|
||||
char *t;
|
||||
|
||||
t = strndup((char*) token_info->model, sizeof(token_info->model));
|
||||
|
||||
@@ -48,9 +48,9 @@ DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(CK_FUNCTION_LIST**, sym_p11_kit_modules_finaliz
|
||||
|
||||
CK_RV pkcs11_get_slot_list_malloc(CK_FUNCTION_LIST *m, CK_SLOT_ID **ret_slotids, CK_ULONG *ret_n_slotids);
|
||||
|
||||
char *pkcs11_token_label(const CK_TOKEN_INFO *token_info);
|
||||
char *pkcs11_token_manufacturer_id(const CK_TOKEN_INFO *token_info);
|
||||
char *pkcs11_token_model(const CK_TOKEN_INFO *token_info);
|
||||
char* pkcs11_token_label(const CK_TOKEN_INFO *token_info);
|
||||
char* pkcs11_token_manufacturer_id(const CK_TOKEN_INFO *token_info);
|
||||
char* pkcs11_token_model(const CK_TOKEN_INFO *token_info);
|
||||
|
||||
int pkcs11_token_login_by_pin(CK_FUNCTION_LIST *m, CK_SESSION_HANDLE session, const CK_TOKEN_INFO *token_info, const char *token_label, const void *pin, size_t pin_size);
|
||||
int pkcs11_token_login(CK_FUNCTION_LIST *m, CK_SESSION_HANDLE session, CK_SLOT_ID slotid, const CK_TOKEN_INFO *token_info, const char *friendly_name, const char *icon_name, const char *key_name, const char *credential_name, usec_t until, AskPasswordFlags ask_password_flags, char **ret_used_pin);
|
||||
|
||||
@@ -31,13 +31,13 @@ int conf_files_cat(const char *root, const char *name, CatFlags flags);
|
||||
#define RED_CROSS_MARK_MAX (STRLEN(ANSI_HIGHLIGHT_RED) + STRLEN("✗") + STRLEN(ANSI_NORMAL) + 1)
|
||||
#define GREEN_CHECK_MARK_MAX (STRLEN(ANSI_HIGHLIGHT_GREEN) + STRLEN("✓") + STRLEN(ANSI_NORMAL) + 1)
|
||||
|
||||
static inline const char *red_cross_mark_internal(char buffer[static RED_CROSS_MARK_MAX]) {
|
||||
static inline const char* red_cross_mark_internal(char buffer[static RED_CROSS_MARK_MAX]) {
|
||||
assert(buffer);
|
||||
assert_se(stpcpy(stpcpy(stpcpy(buffer, ansi_highlight_red()), special_glyph(SPECIAL_GLYPH_CROSS_MARK)), ansi_normal()) < buffer + RED_CROSS_MARK_MAX);
|
||||
return buffer;
|
||||
}
|
||||
|
||||
static inline const char *green_check_mark_internal(char buffer[static GREEN_CHECK_MARK_MAX]) {
|
||||
static inline const char* green_check_mark_internal(char buffer[static GREEN_CHECK_MARK_MAX]) {
|
||||
assert(buffer);
|
||||
assert_se(stpcpy(stpcpy(stpcpy(buffer, ansi_highlight_green()), special_glyph(SPECIAL_GLYPH_CHECK_MARK)), ansi_normal()) < buffer + GREEN_CHECK_MARK_MAX);
|
||||
return buffer;
|
||||
|
||||
@@ -173,7 +173,7 @@ static inline int seccomp_parse_errno_or_action(const char *p) {
|
||||
return parse_errno(p);
|
||||
}
|
||||
|
||||
static inline const char *seccomp_errno_or_action_to_string(int num) {
|
||||
static inline const char* seccomp_errno_or_action_to_string(int num) {
|
||||
if (num == SECCOMP_ERROR_NUMBER_KILL)
|
||||
return "kill";
|
||||
return errno_to_name(num);
|
||||
|
||||
@@ -397,7 +397,7 @@ int in_addr_full_new_from_string(const char *s, struct in_addr_full **ret) {
|
||||
return in_addr_full_new(family, &a, port, ifindex, server_name, ret);
|
||||
}
|
||||
|
||||
const char *in_addr_full_to_string(struct in_addr_full *a) {
|
||||
const char* in_addr_full_to_string(struct in_addr_full *a) {
|
||||
assert(a);
|
||||
|
||||
if (!a->cached_server_string)
|
||||
|
||||
@@ -41,6 +41,6 @@ struct in_addr_full *in_addr_full_free(struct in_addr_full *a);
|
||||
DEFINE_TRIVIAL_CLEANUP_FUNC(struct in_addr_full*, in_addr_full_free);
|
||||
int in_addr_full_new(int family, const union in_addr_union *a, uint16_t port, int ifindex, const char *server_name, struct in_addr_full **ret);
|
||||
int in_addr_full_new_from_string(const char *s, struct in_addr_full **ret);
|
||||
const char *in_addr_full_to_string(struct in_addr_full *a);
|
||||
const char* in_addr_full_to_string(struct in_addr_full *a);
|
||||
|
||||
int netns_get_nsid(int netnsfd, uint32_t *ret);
|
||||
|
||||
+1
-1
@@ -309,7 +309,7 @@ int enter_cgroup_root(char **ret_cgroup) {
|
||||
return enter_cgroup(ret_cgroup, false);
|
||||
}
|
||||
|
||||
const char *ci_environment(void) {
|
||||
const char* ci_environment(void) {
|
||||
/* We return a string because we might want to provide multiple bits of information later on: not
|
||||
* just the general CI environment type, but also whether we're sanitizing or not, etc. The caller is
|
||||
* expected to use strstr on the returned value. */
|
||||
|
||||
+1
-1
@@ -95,7 +95,7 @@ bool can_memlock(void);
|
||||
}
|
||||
|
||||
/* Provide a convenient way to check if we're running in CI. */
|
||||
const char *ci_environment(void);
|
||||
const char* ci_environment(void);
|
||||
|
||||
typedef struct TestFunc {
|
||||
union f {
|
||||
|
||||
@@ -55,7 +55,7 @@ static int tpm2_log_event_type_info_cmp(const tpm2_log_event_type_info *a, const
|
||||
return CMP(ASSERT_PTR(a)->event_type, ASSERT_PTR(b)->event_type);
|
||||
}
|
||||
|
||||
const char *tpm2_log_event_type_to_string(uint32_t type) {
|
||||
const char* tpm2_log_event_type_to_string(uint32_t type) {
|
||||
|
||||
tpm2_log_event_type_info *found, key = {
|
||||
.event_type = type,
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
#define LOAD_OPTIONS_EVENT_TAG_ID UINT32_C(0x8F3B22ED)
|
||||
#endif
|
||||
|
||||
const char *tpm2_log_event_type_to_string(uint32_t type) _const_;
|
||||
const char* tpm2_log_event_type_to_string(uint32_t type) _const_;
|
||||
|
||||
#if HAVE_TPM2
|
||||
|
||||
|
||||
+11
-11
@@ -1458,7 +1458,7 @@ void tpm2_tpms_pcr_selection_move(TPMS_PCR_SELECTION *a, TPMS_PCR_SELECTION *b)
|
||||
FOREACH_TPMS_PCR_SELECTION_IN_TPML_PCR_SELECTION(tpms, tpml) \
|
||||
FOREACH_PCR_IN_TPMS_PCR_SELECTION(pcr, tpms)
|
||||
|
||||
char *tpm2_tpms_pcr_selection_to_string(const TPMS_PCR_SELECTION *s) {
|
||||
char* tpm2_tpms_pcr_selection_to_string(const TPMS_PCR_SELECTION *s) {
|
||||
assert(s);
|
||||
|
||||
const char *algstr = strna(tpm2_hash_alg_to_string(s->hash));
|
||||
@@ -1648,7 +1648,7 @@ void tpm2_tpml_pcr_selection_sub(TPML_PCR_SELECTION *a, const TPML_PCR_SELECTION
|
||||
tpm2_tpml_pcr_selection_sub_tpms_pcr_selection(a, selection_b);
|
||||
}
|
||||
|
||||
char *tpm2_tpml_pcr_selection_to_string(const TPML_PCR_SELECTION *l) {
|
||||
char* tpm2_tpml_pcr_selection_to_string(const TPML_PCR_SELECTION *l) {
|
||||
assert(l);
|
||||
|
||||
_cleanup_free_ char *banks = NULL;
|
||||
@@ -1942,7 +1942,7 @@ int tpm2_pcr_value_from_string(const char *arg, Tpm2PCRValue *ret_pcr_value) {
|
||||
/* Return a string for the PCR value. The format is described in tpm2_pcr_value_from_string(). Note that if
|
||||
* the hash algorithm is not recognized, neither hash name nor hash digest value is included in the
|
||||
* string. This does not check for validity. */
|
||||
char *tpm2_pcr_value_to_string(const Tpm2PCRValue *pcr_value) {
|
||||
char* tpm2_pcr_value_to_string(const Tpm2PCRValue *pcr_value) {
|
||||
_cleanup_free_ char *index = NULL, *value = NULL;
|
||||
|
||||
if (asprintf(&index, "%u", pcr_value->index) < 0)
|
||||
@@ -1999,7 +1999,7 @@ int tpm2_pcr_values_from_string(const char *arg, Tpm2PCRValue **ret_pcr_values,
|
||||
|
||||
/* Return a string representing the array of PCR values. The format is as described in
|
||||
* tpm2_pcr_values_from_string(). This does not check for validity. */
|
||||
char *tpm2_pcr_values_to_string(const Tpm2PCRValue *pcr_values, size_t n_pcr_values) {
|
||||
char* tpm2_pcr_values_to_string(const Tpm2PCRValue *pcr_values, size_t n_pcr_values) {
|
||||
_cleanup_free_ char *s = NULL;
|
||||
|
||||
FOREACH_ARRAY(v, pcr_values, n_pcr_values) {
|
||||
@@ -6223,11 +6223,11 @@ static const char* tpm2_userspace_event_type_table[_TPM2_USERSPACE_EVENT_TYPE_MA
|
||||
|
||||
DEFINE_STRING_TABLE_LOOKUP(tpm2_userspace_event_type, Tpm2UserspaceEventType);
|
||||
|
||||
const char *tpm2_userspace_log_path(void) {
|
||||
const char* tpm2_userspace_log_path(void) {
|
||||
return secure_getenv("SYSTEMD_MEASURE_LOG_USERSPACE") ?: "/run/log/systemd/tpm2-measure.log";
|
||||
}
|
||||
|
||||
const char *tpm2_firmware_log_path(void) {
|
||||
const char* tpm2_firmware_log_path(void) {
|
||||
return secure_getenv("SYSTEMD_MEASURE_LOG_FIRMWARE") ?: "/sys/kernel/security/tpm0/binary_bios_measurements";
|
||||
}
|
||||
|
||||
@@ -7277,7 +7277,7 @@ int tpm2_hmac_key_from_pin(Tpm2Context *c, const Tpm2Handle *session, const TPM2
|
||||
}
|
||||
#endif
|
||||
|
||||
char *tpm2_pcr_mask_to_string(uint32_t mask) {
|
||||
char* tpm2_pcr_mask_to_string(uint32_t mask) {
|
||||
_cleanup_free_ char *s = NULL;
|
||||
|
||||
FOREACH_PCR_IN_MASK(n, mask)
|
||||
@@ -7595,7 +7595,7 @@ int tpm2_hash_alg_to_size(uint16_t alg) {
|
||||
}
|
||||
}
|
||||
|
||||
const char *tpm2_hash_alg_to_string(uint16_t alg) {
|
||||
const char* tpm2_hash_alg_to_string(uint16_t alg) {
|
||||
switch (alg) {
|
||||
case TPM2_ALG_SHA1:
|
||||
return "sha1";
|
||||
@@ -7623,7 +7623,7 @@ int tpm2_hash_alg_from_string(const char *alg) {
|
||||
return log_debug_errno(SYNTHETIC_ERRNO(EINVAL), "Unknown hash algorithm name '%s'", alg);
|
||||
}
|
||||
|
||||
const char *tpm2_asym_alg_to_string(uint16_t alg) {
|
||||
const char* tpm2_asym_alg_to_string(uint16_t alg) {
|
||||
switch (alg) {
|
||||
case TPM2_ALG_ECC:
|
||||
return "ecc";
|
||||
@@ -7643,7 +7643,7 @@ int tpm2_asym_alg_from_string(const char *alg) {
|
||||
return log_debug_errno(SYNTHETIC_ERRNO(EINVAL), "Unknown asymmetric algorithm name '%s'", alg);
|
||||
}
|
||||
|
||||
const char *tpm2_sym_alg_to_string(uint16_t alg) {
|
||||
const char* tpm2_sym_alg_to_string(uint16_t alg) {
|
||||
switch (alg) {
|
||||
#if HAVE_TPM2
|
||||
case TPM2_ALG_AES:
|
||||
@@ -7663,7 +7663,7 @@ int tpm2_sym_alg_from_string(const char *alg) {
|
||||
return log_debug_errno(SYNTHETIC_ERRNO(EINVAL), "Unknown symmetric algorithm name '%s'", alg);
|
||||
}
|
||||
|
||||
const char *tpm2_sym_mode_to_string(uint16_t mode) {
|
||||
const char* tpm2_sym_mode_to_string(uint16_t mode) {
|
||||
switch (mode) {
|
||||
#if HAVE_TPM2
|
||||
case TPM2_ALG_CTR:
|
||||
|
||||
+12
-12
@@ -110,14 +110,14 @@ bool tpm2_pcr_value_valid(const Tpm2PCRValue *pcr_value);
|
||||
bool tpm2_pcr_values_has_any_values(const Tpm2PCRValue *pcr_values, size_t n_pcr_values);
|
||||
bool tpm2_pcr_values_has_all_values(const Tpm2PCRValue *pcr_values, size_t n_pcr_values);
|
||||
int tpm2_pcr_value_from_string(const char *arg, Tpm2PCRValue *ret_pcr_value);
|
||||
char *tpm2_pcr_value_to_string(const Tpm2PCRValue *pcr_value);
|
||||
char* tpm2_pcr_value_to_string(const Tpm2PCRValue *pcr_value);
|
||||
|
||||
bool tpm2_pcr_values_valid(const Tpm2PCRValue *pcr_values, size_t n_pcr_values);
|
||||
void tpm2_sort_pcr_values(Tpm2PCRValue *pcr_values, size_t n_pcr_values);
|
||||
int tpm2_pcr_values_from_mask(uint32_t mask, TPMI_ALG_HASH hash, Tpm2PCRValue **ret_pcr_values, size_t *ret_n_pcr_values);
|
||||
int tpm2_pcr_values_to_mask(const Tpm2PCRValue *pcr_values, size_t n_pcr_values, TPMI_ALG_HASH hash, uint32_t *ret_mask);
|
||||
int tpm2_pcr_values_from_string(const char *arg, Tpm2PCRValue **ret_pcr_values, size_t *ret_n_pcr_values);
|
||||
char *tpm2_pcr_values_to_string(const Tpm2PCRValue *pcr_values, size_t n_pcr_values);
|
||||
char* tpm2_pcr_values_to_string(const Tpm2PCRValue *pcr_values, size_t n_pcr_values);
|
||||
int tpm2_pcr_values_hash_count(const Tpm2PCRValue *pcr_values, size_t n_pcr_values, size_t *ret_count);
|
||||
int tpm2_tpml_pcr_selection_from_pcr_values(const Tpm2PCRValue *pcr_values, size_t n_pcr_values, TPML_PCR_SELECTION *ret_selection, TPM2B_DIGEST **ret_values, size_t *ret_n_values);
|
||||
|
||||
@@ -144,8 +144,8 @@ int tpm2_get_good_pcr_banks(Tpm2Context *c, uint32_t pcr_mask, TPMI_ALG_HASH **r
|
||||
int tpm2_get_good_pcr_banks_strv(Tpm2Context *c, uint32_t pcr_mask, char ***ret);
|
||||
int tpm2_get_best_pcr_bank(Tpm2Context *c, uint32_t pcr_mask, TPMI_ALG_HASH *ret);
|
||||
|
||||
const char *tpm2_userspace_log_path(void);
|
||||
const char *tpm2_firmware_log_path(void);
|
||||
const char* tpm2_userspace_log_path(void);
|
||||
const char* tpm2_firmware_log_path(void);
|
||||
|
||||
typedef enum Tpm2UserspaceEventType {
|
||||
TPM2_EVENT_PHASE,
|
||||
@@ -169,7 +169,7 @@ void tpm2_tpms_pcr_selection_sub_mask(TPMS_PCR_SELECTION *s, uint32_t mask);
|
||||
void tpm2_tpms_pcr_selection_add(TPMS_PCR_SELECTION *a, const TPMS_PCR_SELECTION *b);
|
||||
void tpm2_tpms_pcr_selection_sub(TPMS_PCR_SELECTION *a, const TPMS_PCR_SELECTION *b);
|
||||
void tpm2_tpms_pcr_selection_move(TPMS_PCR_SELECTION *a, TPMS_PCR_SELECTION *b);
|
||||
char *tpm2_tpms_pcr_selection_to_string(const TPMS_PCR_SELECTION *s);
|
||||
char* tpm2_tpms_pcr_selection_to_string(const TPMS_PCR_SELECTION *s);
|
||||
size_t tpm2_tpms_pcr_selection_weight(const TPMS_PCR_SELECTION *s);
|
||||
#define tpm2_tpms_pcr_selection_is_empty(s) (tpm2_tpms_pcr_selection_weight(s) == 0)
|
||||
|
||||
@@ -182,7 +182,7 @@ void tpm2_tpml_pcr_selection_add_tpms_pcr_selection(TPML_PCR_SELECTION *l, const
|
||||
void tpm2_tpml_pcr_selection_sub_tpms_pcr_selection(TPML_PCR_SELECTION *l, const TPMS_PCR_SELECTION *s);
|
||||
void tpm2_tpml_pcr_selection_add(TPML_PCR_SELECTION *a, const TPML_PCR_SELECTION *b);
|
||||
void tpm2_tpml_pcr_selection_sub(TPML_PCR_SELECTION *a, const TPML_PCR_SELECTION *b);
|
||||
char *tpm2_tpml_pcr_selection_to_string(const TPML_PCR_SELECTION *l);
|
||||
char* tpm2_tpml_pcr_selection_to_string(const TPML_PCR_SELECTION *l);
|
||||
size_t tpm2_tpml_pcr_selection_weight(const TPML_PCR_SELECTION *l);
|
||||
#define tpm2_tpml_pcr_selection_is_empty(l) (tpm2_tpml_pcr_selection_weight(l) == 0)
|
||||
|
||||
@@ -426,19 +426,19 @@ int tpm2_parse_luks2_json(sd_json_variant *v, int *ret_keyslot, uint32_t *ret_ha
|
||||
|
||||
int tpm2_hash_alg_to_size(uint16_t alg);
|
||||
|
||||
const char *tpm2_hash_alg_to_string(uint16_t alg) _const_;
|
||||
const char* tpm2_hash_alg_to_string(uint16_t alg) _const_;
|
||||
int tpm2_hash_alg_from_string(const char *alg) _pure_;
|
||||
|
||||
const char *tpm2_asym_alg_to_string(uint16_t alg) _const_;
|
||||
const char* tpm2_asym_alg_to_string(uint16_t alg) _const_;
|
||||
int tpm2_asym_alg_from_string(const char *alg) _pure_;
|
||||
|
||||
const char *tpm2_sym_alg_to_string(uint16_t alg) _const_;
|
||||
const char* tpm2_sym_alg_to_string(uint16_t alg) _const_;
|
||||
int tpm2_sym_alg_from_string(const char *alg) _pure_;
|
||||
|
||||
const char *tpm2_sym_mode_to_string(uint16_t mode) _const_;
|
||||
const char* tpm2_sym_mode_to_string(uint16_t mode) _const_;
|
||||
int tpm2_sym_mode_from_string(const char *mode) _pure_;
|
||||
|
||||
char *tpm2_pcr_mask_to_string(uint32_t mask);
|
||||
char* tpm2_pcr_mask_to_string(uint32_t mask);
|
||||
|
||||
extern const uint16_t tpm2_hash_algorithms[];
|
||||
|
||||
@@ -483,7 +483,7 @@ enum {
|
||||
};
|
||||
|
||||
int tpm2_pcr_index_from_string(const char *s) _pure_;
|
||||
const char *tpm2_pcr_index_to_string(int pcr) _const_;
|
||||
const char* tpm2_pcr_index_to_string(int pcr) _const_;
|
||||
|
||||
/* The first and last NV index handle that is not registered to any company, as per TCG's "Registry of
|
||||
* Reserved TPM 2.0 Handles and Localities", section 2.2.2. */
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "user-util.h"
|
||||
#include "userdb.h"
|
||||
|
||||
const char *user_record_state_color(const char *state) {
|
||||
const char* user_record_state_color(const char *state) {
|
||||
if (STR_IN_SET(state, "unfixated", "absent"))
|
||||
return ansi_grey();
|
||||
else if (streq(state, "active"))
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include "user-record.h"
|
||||
#include "group-record.h"
|
||||
|
||||
const char *user_record_state_color(const char *state);
|
||||
const char* user_record_state_color(const char *state);
|
||||
|
||||
void user_record_show(UserRecord *hr, bool show_full_group_info);
|
||||
void group_record_show(GroupRecord *gr, bool show_full_user_info);
|
||||
|
||||
+10
-10
@@ -1757,7 +1757,7 @@ int user_record_build(UserRecord **ret, ...) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char *user_record_user_name_and_realm(UserRecord *h) {
|
||||
const char* user_record_user_name_and_realm(UserRecord *h) {
|
||||
assert(h);
|
||||
|
||||
/* Return the pre-initialized joined string if it is defined */
|
||||
@@ -1778,13 +1778,13 @@ UserStorage user_record_storage(UserRecord *h) {
|
||||
return USER_CLASSIC;
|
||||
}
|
||||
|
||||
const char *user_record_file_system_type(UserRecord *h) {
|
||||
const char* user_record_file_system_type(UserRecord *h) {
|
||||
assert(h);
|
||||
|
||||
return h->file_system_type ?: "btrfs";
|
||||
}
|
||||
|
||||
const char *user_record_skeleton_directory(UserRecord *h) {
|
||||
const char* user_record_skeleton_directory(UserRecord *h) {
|
||||
assert(h);
|
||||
|
||||
return h->skeleton_directory ?: "/etc/skel";
|
||||
@@ -1820,7 +1820,7 @@ const char* user_record_home_directory(UserRecord *h) {
|
||||
return user_record_home_directory_real(h);
|
||||
}
|
||||
|
||||
const char *user_record_image_path(UserRecord *h) {
|
||||
const char* user_record_image_path(UserRecord *h) {
|
||||
assert(h);
|
||||
|
||||
if (h->image_path)
|
||||
@@ -1833,7 +1833,7 @@ const char *user_record_image_path(UserRecord *h) {
|
||||
user_record_home_directory_real(h) : NULL;
|
||||
}
|
||||
|
||||
const char *user_record_cifs_user_name(UserRecord *h) {
|
||||
const char* user_record_cifs_user_name(UserRecord *h) {
|
||||
assert(h);
|
||||
|
||||
return h->cifs_user_name ?: h->user_name;
|
||||
@@ -1862,7 +1862,7 @@ static const char *user_record_shell_real(UserRecord *h) {
|
||||
return NOLOGIN;
|
||||
}
|
||||
|
||||
const char *user_record_shell(UserRecord *h) {
|
||||
const char* user_record_shell(UserRecord *h) {
|
||||
const char *shell;
|
||||
|
||||
assert(h);
|
||||
@@ -1877,7 +1877,7 @@ const char *user_record_shell(UserRecord *h) {
|
||||
return shell;
|
||||
}
|
||||
|
||||
const char *user_record_real_name(UserRecord *h) {
|
||||
const char* user_record_real_name(UserRecord *h) {
|
||||
assert(h);
|
||||
|
||||
return h->real_name ?: h->user_name;
|
||||
@@ -1925,13 +1925,13 @@ bool user_record_luks_offline_discard(UserRecord *h) {
|
||||
return true;
|
||||
}
|
||||
|
||||
const char *user_record_luks_cipher(UserRecord *h) {
|
||||
const char* user_record_luks_cipher(UserRecord *h) {
|
||||
assert(h);
|
||||
|
||||
return h->luks_cipher ?: "aes";
|
||||
}
|
||||
|
||||
const char *user_record_luks_cipher_mode(UserRecord *h) {
|
||||
const char* user_record_luks_cipher_mode(UserRecord *h) {
|
||||
assert(h);
|
||||
|
||||
return h->luks_cipher_mode ?: "xts-plain64";
|
||||
@@ -2007,7 +2007,7 @@ uint64_t user_record_luks_sector_size(UserRecord *h) {
|
||||
return CLAMP(UINT64_C(1) << (63 - __builtin_clzl(h->luks_sector_size)), 512U, 4096U);
|
||||
}
|
||||
|
||||
const char *user_record_luks_pbkdf_hash_algorithm(UserRecord *h) {
|
||||
const char* user_record_luks_pbkdf_hash_algorithm(UserRecord *h) {
|
||||
assert(h);
|
||||
|
||||
return h->luks_pbkdf_hash_algorithm ?: "sha512";
|
||||
|
||||
+11
-11
@@ -395,21 +395,21 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(UserRecord*, user_record_unref);
|
||||
int user_record_load(UserRecord *h, sd_json_variant *v, UserRecordLoadFlags flags);
|
||||
int user_record_build(UserRecord **ret, ...);
|
||||
|
||||
const char *user_record_user_name_and_realm(UserRecord *h);
|
||||
const char* user_record_user_name_and_realm(UserRecord *h);
|
||||
UserStorage user_record_storage(UserRecord *h);
|
||||
const char *user_record_file_system_type(UserRecord *h);
|
||||
const char *user_record_skeleton_directory(UserRecord *h);
|
||||
const char* user_record_file_system_type(UserRecord *h);
|
||||
const char* user_record_skeleton_directory(UserRecord *h);
|
||||
mode_t user_record_access_mode(UserRecord *h);
|
||||
const char *user_record_home_directory(UserRecord *h);
|
||||
const char *user_record_image_path(UserRecord *h);
|
||||
const char* user_record_home_directory(UserRecord *h);
|
||||
const char* user_record_image_path(UserRecord *h);
|
||||
unsigned long user_record_mount_flags(UserRecord *h);
|
||||
const char *user_record_cifs_user_name(UserRecord *h);
|
||||
const char *user_record_shell(UserRecord *h);
|
||||
const char *user_record_real_name(UserRecord *h);
|
||||
const char* user_record_cifs_user_name(UserRecord *h);
|
||||
const char* user_record_shell(UserRecord *h);
|
||||
const char* user_record_real_name(UserRecord *h);
|
||||
bool user_record_luks_discard(UserRecord *h);
|
||||
bool user_record_luks_offline_discard(UserRecord *h);
|
||||
const char *user_record_luks_cipher(UserRecord *h);
|
||||
const char *user_record_luks_cipher_mode(UserRecord *h);
|
||||
const char* user_record_luks_cipher(UserRecord *h);
|
||||
const char* user_record_luks_cipher_mode(UserRecord *h);
|
||||
uint64_t user_record_luks_volume_key_size(UserRecord *h);
|
||||
const char* user_record_luks_pbkdf_type(UserRecord *h);
|
||||
uint64_t user_record_luks_pbkdf_force_iterations(UserRecord *h);
|
||||
@@ -417,7 +417,7 @@ usec_t user_record_luks_pbkdf_time_cost_usec(UserRecord *h);
|
||||
uint64_t user_record_luks_pbkdf_memory_cost(UserRecord *h);
|
||||
uint64_t user_record_luks_pbkdf_parallel_threads(UserRecord *h);
|
||||
uint64_t user_record_luks_sector_size(UserRecord *h);
|
||||
const char *user_record_luks_pbkdf_hash_algorithm(UserRecord *h);
|
||||
const char* user_record_luks_pbkdf_hash_algorithm(UserRecord *h);
|
||||
gid_t user_record_gid(UserRecord *h);
|
||||
UserDisposition user_record_disposition(UserRecord *h);
|
||||
int user_record_removable(UserRecord *h);
|
||||
|
||||
@@ -361,7 +361,7 @@ close_and_fail:
|
||||
return r;
|
||||
}
|
||||
|
||||
const char *watchdog_get_device(void) {
|
||||
const char* watchdog_get_device(void) {
|
||||
return watchdog_device;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#include "time-util.h"
|
||||
|
||||
const char *watchdog_get_device(void);
|
||||
const char* watchdog_get_device(void);
|
||||
usec_t watchdog_get_last_ping(clockid_t clock);
|
||||
|
||||
int watchdog_set_device(const char *path);
|
||||
|
||||
@@ -11,6 +11,6 @@
|
||||
int wifi_get_interface(sd_netlink *genl, int ifindex, enum nl80211_iftype *ret_iftype, char **ret_ssid);
|
||||
int wifi_get_station(sd_netlink *genl, int ifindex, struct ether_addr *ret_bssid);
|
||||
|
||||
const char *nl80211_iftype_to_string(enum nl80211_iftype iftype) _const_;
|
||||
const char* nl80211_iftype_to_string(enum nl80211_iftype iftype) _const_;
|
||||
enum nl80211_iftype nl80211_iftype_from_string(const char *s) _pure_;
|
||||
const char *nl80211_cmd_to_string(int cmd) _const_;
|
||||
const char* nl80211_cmd_to_string(int cmd) _const_;
|
||||
|
||||
Reference in New Issue
Block a user