/systemd/src/shared/ |
H A D | seccomp-util.c | 44 int seccomp_arch_from_string(const char *n, uint32_t *ret) { argument 48 assert(ret); 51 *ret = SCMP_ARCH_NATIVE; 53 *ret = SCMP_ARCH_X86; 55 *ret = SCMP_ARCH_X86_64; 57 *ret = SCMP_ARCH_X32; 59 *ret = SCMP_ARCH_ARM;
|
H A D | dns-domain.h | 49 int dns_label_escape_new(const char *p, size_t l, char **ret); 58 int dns_name_concat(const char *a, const char *b, char **ret); 60 static inline int dns_name_normalize(const char *s, char **ret) { argument 62 return dns_name_concat(s, NULL, ret); 86 int dns_name_change_suffix(const char *name, const char *old_suffix, const char *new_suffix, char **ret); 88 int dns_name_reverse(int family, const union in_addr_union *a, char **ret); 99 int dns_service_join(const char *name, const char *type, const char *domain, char **ret); 102 int dns_name_suffix(const char *name, unsigned n_labels, const char **ret); 105 int dns_name_skip(const char *a, unsigned n_labels, const char **ret); 108 int dns_name_common_suffix(const char *a, const char *b, const char **ret); [all...] |
H A D | install-printf.c | 33 static int specifier_prefix_and_instance(char specifier, void *data, void *userdata, char **ret) { argument 38 return unit_name_to_prefix_and_instance(i->name, ret); 41 static int specifier_prefix(char specifier, void *data, void *userdata, char **ret) { argument 46 return unit_name_to_prefix(i->name, ret); 49 static int specifier_instance(char specifier, void *data, void *userdata, char **ret) { argument 66 *ret = instance; 70 static int specifier_user_name(char specifier, void *data, void *userdata, char **ret) { argument 82 *ret = t; 86 static int specifier_user_id(char specifier, void *data, void *userdata, char **ret) { argument 88 if (asprintf(ret, UID_FM 94 install_full_printf(UnitFileInstallInfo *i, const char *format, char **ret) argument [all...] |
H A D | import-util.c | 33 int import_url_last_component(const char *url, char **ret) { argument 53 *ret = s; 58 int import_url_change_last_component(const char *url, const char *suffix, char **ret) { argument 63 assert(ret); 81 *ret = s; 93 int tar_strip_suffixes(const char *name, char **ret) { argument 116 *ret = s; 120 int raw_strip_suffixes(const char *p, char **ret) { argument 155 *ret = q;
|
/systemd/src/test/ |
H A D | test-ask-password-api.c | 26 _cleanup_free_ char *ret; local 28 r = ask_password_tty("hello?", "da key", 0, 0, NULL, &ret); 31 log_info("Got %s", ret);
|
H A D | test-rlimit-util.c | 27 static void test_rlimit_parse_format(int resource, const char *string, rlim_t soft, rlim_t hard, int ret, const char *formatted) { argument 37 assert_se(rlimit_parse(resource, string, &rl) == ret); 38 if (ret < 0)
|
/systemd/src/journal/ |
H A D | test-journal-syslog.c | 26 const char *ident, const char*pid, int ret) { 33 assert_se(ret == ret2); 25 test_syslog_parse_identifier(const char* str, const char *ident, const char*pid, int ret) argument
|
/systemd/src/basic/ |
H A D | proc-cmdline.c | 36 int proc_cmdline(char **ret) { argument 37 assert(ret); 40 return get_process_cmdline(1, 0, false, ret); 42 return read_one_line_file("/proc/cmdline", ret); 85 _cleanup_free_ char *line = NULL, *ret = NULL; local 117 r = free_and_strdup(&ret, e); 129 *value = ret; 130 ret = NULL;
|
H A D | rm-rf.c | 41 int ret = 0, r; local 83 if (errno > 0 && ret == 0) 84 ret = -errno; 85 return ret; 94 if (ret == 0 && errno != ENOENT) 95 ret = -errno; 112 if (ret == 0 && errno != ENOENT) 113 ret = -errno; 120 if (ret == 0 && r != -ENOENT) 121 ret [all...] |
H A D | chattr-util.c | 79 int read_attr_fd(int fd, unsigned *ret) { argument 90 if (ioctl(fd, FS_IOC_GETFLAGS, ret) < 0) 96 int read_attr_path(const char *p, unsigned *ret) { argument 100 assert(ret); 106 return read_attr_fd(fd, ret);
|
H A D | lockfile-util.c | 34 int make_lock_file(const char *p, int operation, LockFile *ret) { argument 91 ret->path = t; 92 ret->fd = fd; 93 ret->operation = operation; 101 int make_lock_file_for(const char *p, int operation, LockFile *ret) { argument 106 assert(ret); 115 return make_lock_file(t, operation, ret);
|
H A D | sigbus.c | 70 int sigbus_pop(void **ret) { argument 71 assert(ret); 94 *ret = addr;
|
H A D | xml.c | 61 char *ret; local 90 ret = strndup(c, e - c); 91 if (!ret) 96 *name = ret; 155 ret = strndup(b, e - b); 156 if (!ret) 159 *name = ret; 178 ret = strndup(b, e - b); 179 if (!ret) 182 *name = ret; [all...] |
H A D | rlimit-util.c | 56 static int rlimit_parse_u64(const char *val, rlim_t *ret) { argument 61 assert(ret); 64 *ret = RLIM_INFINITY; 77 *ret = (rlim_t) u; 81 static int rlimit_parse_size(const char *val, rlim_t *ret) { argument 86 assert(ret); 89 *ret = RLIM_INFINITY; 99 *ret = (rlim_t) u; 103 static int rlimit_parse_sec(const char *val, rlim_t *ret) { argument 109 assert(ret); 132 rlimit_parse_usec(const char *val, rlim_t *ret) argument 175 rlimit_parse_one(int resource, const char *val, rlim_t *ret) argument 187 rlimit_parse(int resource, const char *val, struct rlimit *ret) argument 228 rlimit_format(const struct rlimit *rl, char **ret) argument [all...] |
/systemd/src/import/ |
H A D | import-common.c | 73 int import_fork_tar_x(const char *path, pid_t *ret) { argument 79 assert(ret); 148 *ret = pid; 153 int import_fork_tar_c(const char *path, pid_t *ret) { argument 159 assert(ret); 222 *ret = pid;
|
/systemd/src/libsystemd/sd-resolve/ |
H A D | test-resolve.c | 36 static int getaddrinfo_handler(sd_resolve_query *q, int ret, const struct addrinfo *ai, void *userdata) { argument 41 if (ret != 0) { 42 log_error("getaddrinfo error: %s %i", gai_strerror(ret), ret); 58 static int getnameinfo_handler(sd_resolve_query *q, int ret, const char *host, const char *serv, void *userdata) { argument 61 if (ret != 0) { 62 log_error("getnameinfo error: %s %i", gai_strerror(ret), ret);
|
/systemd/src/libsystemd-network/ |
H A D | lldp-port.c | 89 lldp_port **ret) { 111 *ret = p; 85 lldp_port_new(int ifindex, const char *ifname, const struct ether_addr *addr, void *userdata, lldp_port **ret) argument
|
/systemd/src/network/ |
H A D | networkd-wait-online-link.c | 27 int link_new(Manager *m, Link **ret, int ifindex, const char *ifname) { argument 62 if (ret) 63 *ret = l;
|
H A D | networkd-address-pool.c | 28 AddressPool **ret, 36 assert(ret); 50 *ret = p; 56 AddressPool **ret, 65 assert(ret); 72 return address_pool_new(m, ret, family, &u, prefixlen); 26 address_pool_new( Manager *m, AddressPool **ret, int family, const union in_addr_union *u, unsigned prefixlen) argument 54 address_pool_new_from_string( Manager *m, AddressPool **ret, int family, const char *p, unsigned prefixlen) argument
|
/systemd/src/timesync/ |
H A D | timesyncd-server.c | 25 ServerAddress **ret, 47 if (ret) 48 *ret = a; 70 ServerName **ret, 111 if (ret) 112 *ret = n; 23 server_address_new( ServerName *n, ServerAddress **ret, const union sockaddr_union *sockaddr, socklen_t socklen) argument 68 server_name_new( Manager *m, ServerName **ret, ServerType type, const char *string) argument
|
/systemd/src/resolve/ |
H A D | test-dnssec-complex.c | 34 static void prefix_random(const char *name, char **ret) { argument 52 *ret = m;
|
/systemd/src/udev/net/ |
H A D | ethtool-util.c | 49 int ethtool_connect(int *ret) { argument 52 assert_return(ret, -EINVAL); 58 *ret = fd; 63 int ethtool_get_driver(int *fd, const char *ifname, char **ret) { argument 89 *ret = d;
|
/systemd/src/core/ |
H A D | show-status.c | 29 int parse_show_status(const char *v, ShowStatus *ret) { argument 33 assert(ret); 36 *ret = SHOW_STATUS_AUTO; 44 *ret = r ? SHOW_STATUS_YES : SHOW_STATUS_NO;
|
/systemd/src/libsystemd/sd-bus/ |
H A D | bus-slot.c | 233 void *ret; local 237 ret = slot->userdata; 240 return ret;
|
/systemd/src/libsystemd/sd-id128/ |
H A D | sd-id128.c | 48 _public_ int sd_id128_from_string(const char s[], sd_id128_t *ret) { argument 54 assert_return(ret, -EINVAL); 92 *ret = t; 109 _public_ int sd_id128_get_machine(sd_id128_t *ret) { argument 118 assert_return(ret, -EINVAL); 121 *ret = saved_machine_id; 150 *ret = t; 154 _public_ int sd_id128_get_boot(sd_id128_t *ret) { argument 164 assert_return(ret, -EINVAL); 167 *ret 209 sd_id128_randomize(sd_id128_t *ret) argument [all...] |