/systemd/src/journal/ |
H A D | compress.h | 29 int compress_blob_xz(const void *src, uint64_t src_size, 31 int compress_blob_lz4(const void *src, uint64_t src_size, 34 static inline int compress_blob(const void *src, uint64_t src_size, argument 38 r = compress_blob_lz4(src, src_size, dst, dst_alloc_size, dst_size); 42 r = compress_blob_xz(src, src_size, dst, dst_alloc_size, dst_size); 49 int decompress_blob_xz(const void *src, uint64_t src_size, 51 int decompress_blob_lz4(const void *src, uint64_t src_size, 54 const void *src, uint64_t src_size, 57 int decompress_startswith_xz(const void *src, uint64_t src_size, 61 int decompress_startswith_lz4(const void *src, uint64_ [all...] |
H A D | compress.c | 59 int compress_blob_xz(const void *src, uint64_t src_size, argument 73 assert(src); 86 src, src_size, dst, &out_pos, dst_alloc_size); 97 int compress_blob_lz4(const void *src, uint64_t src_size, argument 102 assert(src); 114 r = LZ4_compress_limitedOutput(src, dst + 8, src_size, (int) dst_alloc_size - 8); 128 int decompress_blob_xz(const void *src, uint64_t src_size, argument 136 assert(src); 151 s.next_in = src; 188 int decompress_blob_lz4(const void *src, uint64_ argument 228 decompress_blob(int compression, const void *src, uint64_t src_size, void **dst, size_t *dst_alloc_size, size_t* dst_size, size_t dst_max) argument 242 decompress_startswith_xz(const void *src, uint64_t src_size, void **buffer, size_t *buffer_size, const void *prefix, size_t prefix_len, uint8_t extra) argument 301 decompress_startswith_lz4(const void *src, uint64_t src_size, void **buffer, size_t *buffer_size, const void *prefix, size_t prefix_len, uint8_t extra) argument 350 decompress_startswith(int compression, const void *src, uint64_t src_size, void **buffer, size_t *buffer_size, const void *prefix, size_t prefix_len, uint8_t extra) argument 451 char *src = NULL; local 618 char *src; local [all...] |
H A D | test-compress.c | 44 typedef int (compress_blob_t)(const void *src, uint64_t src_size, 46 typedef int (decompress_blob_t)(const void *src, uint64_t src_size, 49 typedef int (decompress_sw_t)(const void *src, uint64_t src_size, 154 _cleanup_close_ int src = -1, dst = -1, dst2 = -1; local 166 assert_se((src = open(srcfile, O_RDONLY|O_CLOEXEC)) >= 0); 172 assert_se(compress(src, dst, -1) == 0);
|
/systemd/src/basic/ |
H A D | strxcpyx.c | 32 size_t strpcpy(char **dest, size_t size, const char *src) { argument 35 len = strlen(src); 38 *dest = mempcpy(*dest, src, size-1); 42 *dest = mempcpy(*dest, src, len); 50 size_t strpcpyf(char **dest, size_t size, const char *src, ...) { argument 54 va_start(va, src); 55 i = vsnprintf(*dest, size, src, va); 68 size_t strpcpyl(char **dest, size_t size, const char *src, ...) { argument 71 va_start(va, src); 73 size = strpcpy(dest, size, src); 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 196 assert(src); 198 r = mac_smack_read(src, SMACK_ATTR_ACCESS, &label); 238 int mac_smack_copy(const char *dest, const char *src) { argument
|
/systemd/src/libsystemd-network/ |
H A D | dhcp6-network.c | 36 union sockaddr_union src = { local 47 src.in6.sin6_addr = *local_address; 65 r = bind(s, &src.sa, sizeof(src.in6));
|
H A D | dhcp-network.c | 158 union sockaddr_union src = { local 192 r = bind(s, &src.sa, sizeof(src.in));
|
/systemd/src/journal-remote/ |
H A D | log-generator.py | 40 src = open('/dev/urandom', 'rb') variable 46 message = repr(src.read(2000)) 48 data = repr(src.read(OPTIONS.data_size))
|
/systemd/src/test/ |
H A D | test-udev.c | 39 const char *src; member in struct:fakefs 66 err = mount(fakefss[i].src, fakefss[i].target, NULL, MS_BIND, NULL);
|
/systemd/src/network/ |
H A D | networkd-route.h | 46 union in_addr_union src; member in struct:Route 64 int route_update(Route *route, union in_addr_union *src, unsigned char src_prefixlen, union in_addr_union *gw, union in_addr_union *prefsrc, unsigned char scope, unsigned char protocol);
|
H A D | networkd-route.c | 305 union in_addr_union *src, 312 assert(src); 316 route->src = *src; 373 r = sd_netlink_message_append_in_addr(req, RTA_SRC, &route->src.in); 375 r = sd_netlink_message_append_in6_addr(req, RTA_SRC, &route->src.in6); 470 r = sd_netlink_message_append_in_addr(req, RTA_SRC, &route->src.in); 472 r = sd_netlink_message_append_in6_addr(req, RTA_SRC, &route->src.in6); 695 n->src = buffer; 304 route_update(Route *route, union in_addr_union *src, unsigned char src_prefixlen, union in_addr_union *gw, union in_addr_union *prefsrc, unsigned char scope, unsigned char protocol) argument
|
H A D | networkd-manager.c | 290 union in_addr_union dst = {}, gw = {}, src = {}, prefsrc = {}; local 362 r = sd_netlink_message_read_in_addr(message, RTA_SRC, &src.in); 389 r = sd_netlink_message_read_in6_addr(message, RTA_SRC, &src.in6); 455 route_update(route, &src, src_prefixlen, &gw, &prefsrc, scope, protocol);
|
/systemd/src/libudev/ |
H A D | libudev-util.c | 121 size_t util_path_encode(const char *src, char *dest, size_t size) argument 125 for (i = 0, j = 0; src[i] != '\0'; i++) { 126 if (src[i] == '/') { 133 } else if (src[i] == '\\') { 145 dest[j] = src[i];
|
/systemd/src/boot/efi/ |
H A D | splash.c | 142 UINT32 alpha, src, src_rb, src_g, dst_rb, dst_g, rb, g; local 146 /* convert src from RGBA to XRGB */ 147 src = source >> 8; 150 src_rb = (src & 0xff00ff); 151 src_g = (src & 0x00ff00);
|
/systemd/src/core/ |
H A D | mount-setup.c | 313 _cleanup_free_ char *src; local 314 src = strappend("/sys/fs/cgroup/", options); 315 if (!src) 317 r = mac_smack_copy(t, src); 319 return log_error_errno(r, "Failed to copy smack label from %s to %s: %m", src, t);
|
/systemd/src/login/ |
H A D | logind.c | 686 static int manager_vt_switch(sd_event_source *src, const struct signalfd_siginfo *si, void *data) { argument
|
/systemd/src/cryptsetup/ |
H A D | cryptsetup.c | 318 static int get_password(const char *vol, const char *src, usec_t until, bool accept_cached, char ***ret) { argument 326 assert(src); 329 description = disk_description(src); 353 if (src) 354 (void) disk_major_minor(src, &maj_min);
|
/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); 887 if (!path_is_absolute(src) || !path_is_safe(src)) 891 dest = src; 953 if (mount(src, mount_tmp, NULL, MS_BIND, 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); 1150 if (!path_is_absolute(src)) 1154 dest = src; [all...] |
/systemd/src/udev/ |
H A D | udev-event.c | 76 size_t udev_event_apply_format(struct udev_event *event, const char *src, char *dest, size_t size) { argument 127 from = src; 189 log_error("missing closing brace for format '%s'", src);
|
/systemd/src/resolve/ |
H A D | resolved-dns-packet.c | 1157 const void *src; local 1164 r = dns_packet_read(p, size, &src, &start); 1173 copy = memdup(src, size);
|
/systemd/src/shared/ |
H A D | efivars.c | 442 static void to_utf16(uint16_t *dest, const char *src) { argument 445 for (i = 0; src[i] != '\0'; i++) 446 dest[i] = src[i];
|
/systemd/src/sysusers/ |
H A D | sysusers.c | 191 _cleanup_close_ int src = -1; local 198 src = open(x, O_RDONLY|O_CLOEXEC|O_NOCTTY); 199 if (src < 0) { 206 if (fstat(src, &st) < 0) 213 r = copy_bytes(src, fileno(dst), (uint64_t) -1, true);
|