Searched defs:src (Results 1 - 22 of 22) sorted by relevance

/systemd/src/journal/
H A Dcompress.h29 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 Dcompress.c59 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 Dtest-compress.c44 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 Dstrxcpyx.c32 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 Dsmack-util.c191 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 Ddhcp6-network.c36 union sockaddr_union src = { local
47 src.in6.sin6_addr = *local_address;
65 r = bind(s, &src.sa, sizeof(src.in6));
H A Ddhcp-network.c158 union sockaddr_union src = { local
192 r = bind(s, &src.sa, sizeof(src.in));
/systemd/src/journal-remote/
H A Dlog-generator.py40 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 Dtest-udev.c39 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 Dnetworkd-route.h46 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 Dnetworkd-route.c305 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 Dnetworkd-manager.c290 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 Dlibudev-util.c121 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 Dsplash.c142 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 Dmount-setup.c313 _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 Dlogind.c686 static int manager_vt_switch(sd_event_source *src, const struct signalfd_siginfo *si, void *data) { argument
/systemd/src/cryptsetup/
H A Dcryptsetup.c318 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 Dmachine-dbus.c870 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 Dudev-event.c76 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 Dresolved-dns-packet.c1157 const void *src; local
1164 r = dns_packet_read(p, size, &src, &start);
1173 copy = memdup(src, size);
/systemd/src/shared/
H A Defivars.c442 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 Dsysusers.c191 _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);

Completed in 4828 milliseconds