Searched defs:buffer (Results 1 - 25 of 70) sorted by relevance

123

/systemd/src/basic/
H A Dether-addr-util.c27 char* ether_addr_to_string(const struct ether_addr *addr, char buffer[ETHER_ADDR_TO_STRING_MAX]) { argument
29 assert(buffer);
33 * doesn't use a static buffer. */
35 sprintf(buffer, "%02x:%02x:%02x:%02x:%02x:%02x",
43 return buffer;
/systemd/test/
H A Drule-syntax-check.py42 buffer = '' variable
50 buffer += line[:-2]
53 line = buffer + line
54 buffer = '' variable
/systemd/src/import/
H A Dimport-compress.c131 uint8_t buffer[16 * 1024]; local
134 c->xz.next_out = buffer;
135 c->xz.avail_out = sizeof(buffer);
141 r = callback(buffer, sizeof(buffer) - c->xz.avail_out, userdata);
153 uint8_t buffer[16 * 1024]; local
155 c->gzip.next_out = buffer;
156 c->gzip.avail_out = sizeof(buffer);
162 r = callback(buffer, sizeof(buffer)
174 uint8_t buffer[16 * 1024]; local
243 enlarge_buffer(void **buffer, size_t *buffer_size, size_t *buffer_allocated) argument
261 import_compress(ImportCompress *c, const void *data, size_t size, void **buffer, size_t *buffer_size, size_t *buffer_allocated) argument
373 import_compress_finish(ImportCompress *c, void **buffer, size_t *buffer_size, size_t *buffer_allocated) argument
[all...]
H A Dexport-raw.c58 void *buffer; member in struct:RawExport
87 free(e->buffer);
209 r = import_compress_finish(&e->compress, &e->buffer, &e->buffer_size, &e->buffer_allocated);
212 r = import_compress(&e->compress, input, l, &e->buffer, &e->buffer_size, &e->buffer_allocated);
220 l = write(e->output_fd, e->buffer, e->buffer_size);
230 memmove(e->buffer, (uint8_t*) e->buffer + l, e->buffer_size - l);
H A Dexport-tar.c51 void *buffer; member in struct:TarExport
92 free(e->buffer);
204 r = import_compress_finish(&e->compress, &e->buffer, &e->buffer_size, &e->buffer_allocated);
207 r = import_compress(&e->compress, input, l, &e->buffer, &e->buffer_size, &e->buffer_allocated);
215 l = write(e->output_fd, e->buffer, e->buffer_size);
225 memmove(e->buffer, (uint8_t*) e->buffer + l, e->buffer_size - l);
H A Dimport-raw.c71 uint8_t buffer[16*1024]; member in struct:RawImport
348 assert(i->buffer_size < sizeof(i->buffer));
350 l = read(i->input_fd, i->buffer + i->buffer_size, sizeof(i->buffer) - i->buffer_size);
372 r = import_uncompress_detect(&i->compress, i->buffer, i->buffer_size);
393 r = import_uncompress(&i->compress, i->buffer, i->buffer_size, raw_import_write, i);
H A Dimport-tar.c71 uint8_t buffer[16*1024]; member in struct:TarImport
277 assert(i->buffer_size < sizeof(i->buffer));
279 l = read(i->input_fd, i->buffer + i->buffer_size, sizeof(i->buffer) - i->buffer_size);
301 r = import_uncompress_detect(&i->compress, i->buffer, i->buffer_size);
314 r = import_uncompress(&i->compress, i->buffer, i->buffer_size, tar_import_write, i);
/systemd/src/test/
H A Dtest-prioq.c43 unsigned buffer[SET_SIZE], i; local
51 for (i = 0; i < ELEMENTSOF(buffer); i++) {
55 buffer[i] = u;
59 qsort(buffer, ELEMENTSOF(buffer), sizeof(buffer[0]), unsigned_compare);
61 for (i = 0; i < ELEMENTSOF(buffer); i++) {
64 assert_se(prioq_size(q) == ELEMENTSOF(buffer) - i);
67 assert_se(buffer[i] == u);
/systemd/src/bus-proxyd/
H A Dbus-xml-policy.h80 Policy buffer; member in struct:SharedPolicy
/systemd/src/initctl/
H A Dinitctl.c62 struct init_request buffer; member in struct:Fifo
207 ((uint8_t*) &f->buffer) + f->bytes_read,
208 sizeof(f->buffer) - f->bytes_read);
217 assert(f->bytes_read <= sizeof(f->buffer));
219 if (f->bytes_read == sizeof(f->buffer)) {
220 request_process(f->server, &f->buffer);
/systemd/src/network/
H A Dnetworkd-netdev-vxlan.c148 union in_addr_union *addr = data, buffer; local
156 r = in_addr_from_string_auto(rvalue, &f, &buffer);
168 *addr = buffer;
/systemd/src/resolve/
H A Dresolved-dns-stream.c68 uint8_t buffer[CMSG_SPACE(MAXSIZE(struct in_pktinfo, struct in6_pktinfo)) member in union:__anon249
H A Dresolved-dns-synthesize.c238 struct local_address buffer[2]; local
244 buffer[n++] = (struct local_address) {
251 buffer[n++] = (struct local_address) {
257 return answer_add_addresses_rr(answer, DNS_RESOURCE_KEY_NAME(key), buffer, n);
/systemd/src/boot/efi/
H A Dutil.c148 EFI_STATUS efivar_get_raw(const EFI_GUID *vendor, CHAR16 *name, CHAR8 **buffer, UINTN *size) { argument
160 *buffer = buf;
/systemd/src/bootchart/
H A Dstore.c46 * Alloc a static 4k buffer for stdio - primarily used to increase
47 * PSS buffering from the default 1k stdin buffer to reduce
74 static int pid_cmdline_strscpy(int procfd, char *buffer, size_t buf_len, int pid) { argument
84 n = read(fd, buffer, buf_len-1);
88 if (buffer[i] == '\0')
89 buffer[i] = ' ';
90 buffer[n] = '\0';
/systemd/src/journal/
H A Dcompress.c243 void **buffer, size_t *buffer_size,
257 assert(buffer);
260 assert(*buffer_size == 0 || *buffer);
266 if (!(greedy_realloc(buffer, buffer_size, ALIGN_8(prefix_len + 1), 1)))
272 s.next_out = *buffer;
282 return memcmp(*buffer, prefix, prefix_len) == 0 &&
283 ((const uint8_t*) *buffer)[prefix_len] == extra;
290 if (!(greedy_realloc(buffer, buffer_size, *buffer_size * 2, 1)))
293 s.next_out = *buffer + *buffer_size - s.avail_out;
302 void **buffer, size_
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
[all...]
H A Djournal-send.c98 char buffer[8 + LINE_MAX], p[sizeof("PRIORITY=")-1 + DECIMAL_STR_MAX(int) + 1]; local
107 memcpy(buffer, "MESSAGE=", 8);
108 vsnprintf(buffer+8, sizeof(buffer) - 8, format, ap);
111 IOVEC_SET_STRING(iov[0], buffer);
137 char *buffer; local
152 if (vasprintf(&buffer, format, aq) < 0) {
161 IOVEC_SET_STRING(iov[i++], buffer);
353 char buffer[n]; local
357 j = strerror_r(_saved_errno_, buffer
461 char buffer[8 + LINE_MAX], p[sizeof("PRIORITY=")-1 + DECIMAL_STR_MAX(int) + 1]; local
[all...]
H A Djournald-kmsg.c329 char buffer[8192+1]; /* the kernel-side limit per record is 8K currently */ local
335 l = read(s->dev_kmsg_fd, buffer, sizeof(buffer) - 1);
353 dev_kmsg_record(s, buffer, l);
390 log_warning("/dev/kmsg buffer overrun, some messages lost.");
H A Djournald-native.c84 const void *buffer, size_t buffer_size,
98 assert(buffer || buffer_size == 0);
100 p = buffer;
300 if (iovec[j].iov_base < buffer ||
301 (const uint8_t*) iovec[j].iov_base >= (const uint8_t*) buffer + buffer_size)
82 server_process_native_message( Server *s, const void *buffer, size_t buffer_size, const struct ucred *ucred, const struct timeval *tv, const char *label, size_t label_len) argument
H A Djournald-syslog.c119 static void forward_syslog_raw(Server *s, int priority, const char *buffer, const struct ucred *ucred, const struct timeval *tv) { argument
123 assert(buffer);
128 IOVEC_SET_STRING(iovec, buffer);
/systemd/src/journal-remote/
H A Dmicrohttpd-util.c51 char *buffer,
59 response = MHD_create_response_from_buffer(size, buffer, mode);
63 log_debug("Queing response %u: %s", code, buffer);
49 mhd_respond_internal(struct MHD_Connection *connection, enum MHD_RequestTerminationCode code, char *buffer, size_t size, enum MHD_ResponseMemoryMode mode) argument
/systemd/src/libsystemd/sd-bus/
H A Dtest-bus-marshal.c128 void *buffer = NULL; local
209 r = bus_message_get_blob(m, &buffer, &sz);
212 h = hexmem(buffer, sz);
227 g = g_dbus_message_new_from_blob(buffer, sz, 0, NULL);
242 w = dbus_message_demarshal(buffer, sz, &error);
254 r = bus_message_from_malloc(bus, buffer, sz, NULL, 0, NULL, &m);
/systemd/src/libsystemd/sd-netlink/
H A Dtest-netlink.c54 char buffer[ETHER_ADDR_TO_STRING_MAX]; local
72 assert_se(streq(mac, ether_addr_to_string(&mac_out, buffer)));
/systemd/src/libsystemd/sd-network/
H A Dsd-network.c313 union inotify_event_buffer buffer; local
322 l = read(fd, &buffer, sizeof(buffer));
330 FOREACH_INOTIFY_EVENT(e, buffer, l) {
/systemd/src/libsystemd/sd-path/
H A Dsd-path.c54 static int from_home_dir(const char *envname, const char *suffix, char **buffer, const char **ret) { argument
60 assert(buffer);
84 *buffer = cc;
89 static int from_user_dir(const char *field, char **buffer, const char **ret) { argument
98 assert(buffer);
156 *buffer = cc;
161 r = get_home_dir(buffer);
165 *ret = *buffer;
174 *buffer = copy;
194 *buffer
208 get_path(uint64_t type, char **buffer, const char **ret) argument
336 char *buffer = NULL, *cc; local
[all...]

Completed in 51 milliseconds

123