/systemd/src/basic/ |
H A D | strxcpyx.h | 27 size_t strpcpy(char **dest, size_t size, const char *src); 28 size_t strpcpyf(char **dest, size_t size, const char *src, ...) _printf_(3, 4); 29 size_t strpcpyl(char **dest, size_t size, const char *src, ...) _sentinel_; 30 size_t strscpy(char *dest, size_t size, const char *src); 31 size_t strscpyl(char *dest, size_t size, const char *src, ...) _sentinel_;
|
H A D | strxcpyx.c | 22 * with '\0' * and moves the @dest pointer forward to the added '\0'. 32 size_t strpcpy(char **dest, size_t size, const char *src) { argument 38 *dest = mempcpy(*dest, src, size-1); 42 *dest = mempcpy(*dest, src, len); 46 *dest[0] = '\0'; 50 size_t strpcpyf(char **dest, size_t size, const char *src, ...) { argument 55 i = vsnprintf(*dest, size, src, va); 57 *dest 68 strpcpyl(char **dest, size_t size, const char *src, ...) argument 80 strscpy(char *dest, size_t size, const char *src) argument 87 strscpyl(char *dest, size_t size, const char *src, ...) argument [all...] |
H A D | smack-util.c | 191 int mac_smack_copy(const char *dest, const char *src) { argument 195 assert(dest); 202 r = mac_smack_apply(dest, SMACK_ATTR_ACCESS, label); 238 int mac_smack_copy(const char *dest, const char *src) { argument
|
H A D | smack-util.h | 54 int mac_smack_copy(const char *dest, const char *src);
|
/systemd/src/nspawn/ |
H A D | nspawn-mount.h | 58 int mount_all(const char *dest, bool use_userns, bool in_userns, bool use_netns, uid_t uid_shift, uid_t uid_range, const char *selinux_apifs_context); 59 int mount_sysfs(const char *dest); 61 int mount_cgroups(const char *dest, bool unified_requested, bool userns, uid_t uid_shift, uid_t uid_range, const char *selinux_apifs_context); 62 int mount_systemd_cgroup_writable(const char *dest, bool unified_requested); 64 int mount_custom(const char *dest, CustomMount *mounts, unsigned n, bool userns, uid_t uid_shift, uid_t uid_range, const char *selinux_apifs_context);
|
H A D | nspawn-mount.c | 225 int mount_sysfs(const char *dest) { argument 229 top = prefix_roota(dest, "/sys"); 282 int mount_all(const char *dest, argument 328 where = prefix_root(dest, mount_table[k].where); 406 static int mount_bind(const char *dest, CustomMount *m) { argument 424 where = prefix_roota(dest, m->destination); 469 const char *dest, 478 assert(dest); 481 where = prefix_roota(dest, m->destination); 513 static int mount_overlay(const char *dest, CustomMoun argument 468 mount_tmpfs( const char *dest, CustomMount *m, bool userns, uid_t uid_shift, uid_t uid_range, const char *selinux_apifs_context) argument 563 mount_custom( const char *dest, CustomMount *mounts, unsigned n, bool userns, uid_t uid_shift, uid_t uid_range, const char *selinux_apifs_context) argument 602 mount_legacy_cgroup_hierarchy(const char *dest, const char *controller, const char *hierarchy, bool read_only) argument 630 mount_legacy_cgroups( const char *dest, bool userns, uid_t uid_shift, uid_t uid_range, const char *selinux_apifs_context) argument 729 mount_unified_cgroups(const char *dest) argument 759 mount_cgroups( const char *dest, bool unified_requested, bool userns, uid_t uid_shift, uid_t uid_range, const char *selinux_apifs_context) argument 771 mount_systemd_cgroup_writable( const char *dest, bool unified_requested) argument [all...] |
H A D | nspawn.c | 1027 static int setup_timezone(const char *dest) { argument 1033 assert(dest); 1050 where = prefix_roota(dest, "/etc/localtime"); 1063 check = prefix_roota(dest, check); 1088 static int setup_resolv_conf(const char *dest) { argument 1092 assert(dest); 1098 where = prefix_roota(dest, "/etc/resolv.conf"); 1132 static int setup_boot_id(const char *dest) { argument 1144 from = prefix_roota(dest, "/run/proc-sys-kernel-random-boot-id"); 1145 to = prefix_roota(dest, "/pro 1166 copy_devnodes(const char *dest) argument 1229 setup_pts(const char *dest) argument 1276 setup_dev_console(const char *dest, const char *console) argument 1305 setup_kmsg(const char *dest, int kmsg_socket) argument [all...] |
/systemd/src/libsystemd-network/ |
H A D | dhcp6-network.c | 76 union sockaddr_union dest = { local 84 memcpy(&dest.in6.sin6_addr, server_address, sizeof(dest.in6.sin6_addr)); 86 r = sendto(s, packet, len, 0, &dest.sa, sizeof(dest.in6));
|
H A D | dhcp-packet.c | 105 packet->udp.dest = htobe16(destination_port); 163 if (be16toh(packet->udp.dest) != DHCP_PORT_CLIENT) { 166 be16toh(packet->udp.dest), DHCP_PORT_CLIENT);
|
H A D | dhcp-network.c | 55 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, offsetof(DHCPPacket, udp.dest)), /* A <- UDP destination port */ 219 union sockaddr_union dest = { local 230 r = sendto(s, packet, len, 0, &dest.sa, sizeof(dest.in));
|
H A D | lldp-tlv.c | 623 int sd_lldp_packet_get_destination_type(tlv_packet *tlv, int *dest) { argument 625 assert_return(dest, -EINVAL); 629 *dest = SD_LLDP_DESTINATION_TYPE_NEAREST_BRIDGE; 631 *dest = SD_LLDP_DESTINATION_TYPE_NEAREST_NON_TPMR_BRIDGE; 633 *dest = SD_LLDP_DESTINATION_TYPE_NEAREST_CUSTOMER_BRIDGE;
|
H A D | network-internal.c | 449 struct in_addr dest, gw; local 452 assert_se(sd_dhcp_route_get_destination(routes[i], &dest) >= 0); 456 fprintf(f, "%s/%" PRIu8, inet_ntoa(dest), length);
|
H A D | test-lldp.c | 213 int dest; local 215 assert_se(sd_lldp_packet_get_destination_type(m, &dest) >= 0); 216 assert_se(dest == SD_LLDP_DESTINATION_TYPE_NEAREST_BRIDGE);
|
/systemd/src/shared/ |
H A D | dns-domain.h | 46 int dns_label_unescape(const char **name, char *dest, size_t sz); 47 int dns_label_unescape_suffix(const char *name, const char **label_end, char *dest, size_t sz); 48 int dns_label_escape(const char *p, size_t l, char *dest, size_t sz);
|
H A D | dns-domain.c | 42 int dns_label_unescape(const char **name, char *dest, size_t sz) { argument 51 d = dest; 144 int dns_label_unescape_suffix(const char *name, const char **label_terminal, char *dest, size_t sz) { argument 150 assert(dest); 155 *dest = 0; 198 r = dns_label_unescape(&name, dest, sz); 207 int dns_label_escape(const char *p, size_t l, char *dest, size_t sz) { argument 220 assert(dest); 222 q = dest; 271 return (int) (q - dest); [all...] |
H A D | install.c | 283 _cleanup_free_ char *dest = NULL; local 303 r = readlink_malloc(new_path, &dest); 307 if (path_equal(dest, old_path)) 408 _cleanup_free_ char *p = NULL, *dest = NULL; local 419 q = readlink_malloc(p, &dest); 435 set_contains(remove_symlinks_to, dest) || 436 set_contains(remove_symlinks_to, basename(dest)) || 556 _cleanup_free_ char *p = NULL, *dest = NULL; local 566 q = readlink_malloc(p, &dest); 576 if (!path_is_absolute(dest)) { [all...] |
/systemd/src/libudev/ |
H A D | libudev-util.c | 121 size_t util_path_encode(const char *src, char *dest, size_t size) argument 131 memcpy(&dest[j], "\\x2f", 4); 138 memcpy(&dest[j], "\\x5c", 4); 145 dest[j] = src[i]; 149 dest[j] = '\0';
|
/systemd/src/bus-proxyd/ |
H A D | proxy.h | 58 int proxy_new(Proxy **out, int in_fd, int out_fd, const char *dest);
|
/systemd/src/libsystemd/sd-bus/ |
H A D | bus-error.c | 294 _public_ int sd_bus_error_copy(sd_bus_error *dest, const sd_bus_error *e) { argument 298 if (!dest) 301 assert_return(!bus_error_is_dirty(dest), -EINVAL); 310 *dest = *e; 312 dest->name = strdup(e->name); 313 if (!dest->name) { 314 *dest = BUS_ERROR_OOM; 319 dest->message = strdup(e->message); 321 dest->_need_free = 1;
|
/systemd/src/systemd/ |
H A D | sd-lldp.h | 78 int sd_lldp_packet_get_destination_type(sd_lldp_packet *tlv, int *dest);
|
/systemd/src/machine/ |
H A D | machine-dbus.c | 870 const char *dest, *src; local 883 r = sd_bus_message_read(message, "ssbb", &src, &dest, &read_only, &make_directory); 890 if (isempty(dest)) 891 dest = src; 892 else if (!path_is_absolute(dest) || !path_is_safe(dest)) 1027 (void) mkdir_p(dest, 0755); 1031 if (mount(mount_inside, dest, NULL, MS_MOVE, NULL) < 0) { 1127 const char *src, *dest, *host_path, *container_path, *host_basename, *host_dirname, *container_basename, *container_dirname; local 1146 r = sd_bus_message_read(message, "ss", &src, &dest); [all...] |
/systemd/src/udev/ata_id/ |
H A D | ata_id.c | 268 * @dest: Destination buffer for the string. 271 * Copies the ATA string from @identify located at @offset_words into @dest. 275 char *dest, 284 *dest = c1; 285 dest++; 286 *dest = c2; 287 dest++; 273 disk_identify_get_string(uint8_t identify[512], unsigned int offset_words, char *dest, size_t dest_len) argument
|
/systemd/src/journal/ |
H A D | catalog.c | 121 char *dest, *p; local 129 dest = new(char, l1 + l2 + 1); 130 if (!dest) { 135 p = dest; 158 assert(p - dest <= (ptrdiff_t)(l1 + l2)); 160 return dest;
|
/systemd/src/delta/ |
H A D | delta.c | 169 _cleanup_free_ char *dest = NULL; local 179 k = readlink_malloc(top, &dest); 181 if (equivalent(dest, bottom) > 0)
|
/systemd/src/timesync/ |
H A D | timesyncd-manager.c | 497 double origin, receive, trans, dest; local 623 dest = ts_to_d(recv_time) + OFFSET_1900_1970; 625 offset = ((receive - origin) + (trans - dest)) / 2; 626 delay = (dest - origin) - (trans - receive); 643 " dest : %.3f\n" 659 dest - OFFSET_1900_1970,
|