/systemd-251/src/basic/ |
D | strxcpyx.h | 9 size_t strnpcpy_full(char **dest, size_t size, const char *src, size_t len, bool *ret_truncated); 10 static inline size_t strnpcpy(char **dest, size_t size, const char *src, size_t len) { in strnpcpy() 13 size_t strpcpy_full(char **dest, size_t size, const char *src, bool *ret_truncated); 14 static inline size_t strpcpy(char **dest, size_t size, const char *src) { in strpcpy() 17 size_t strpcpyf_full(char **dest, size_t size, bool *ret_truncated, const char *src, ...) _printf_(… 20 size_t strpcpyl_full(char **dest, size_t size, bool *ret_truncated, const char *src, ...) _sentinel… 23 size_t strnscpy_full(char *dest, size_t size, const char *src, size_t len, bool *ret_truncated); 24 static inline size_t strnscpy(char *dest, size_t size, const char *src, size_t len) { in strnscpy() 27 size_t strscpy_full(char *dest, size_t size, const char *src, bool *ret_truncated); 28 static inline size_t strscpy(char *dest, size_t size, const char *src) { in strscpy() [all …]
|
D | alloc-util.h | 28 size_t _nn_ = n; \ 35 size_t _n_ = n; \ 42 size_t _n_ = n; \ 63 void* memdup(const void *p, size_t l) _alloc_(2); 64 void* memdup_suffix0(const void *p, size_t l); /* We can't use _alloc_() here, since we return a bu… 69 size_t _l_ = l; \ 77 size_t _l_ = l; \ 96 static inline bool size_multiply_overflow(size_t size, size_t need) { in size_multiply_overflow() 100 _malloc_ _alloc_(1, 2) static inline void *malloc_multiply(size_t size, size_t need) { in malloc_multiply() 108 _alloc_(2, 3) static inline void *reallocarray(void *p, size_t need, size_t size) { in reallocarray() [all …]
|
D | hexdecoct.h | 20 char *hexmem(const void *p, size_t l); 21 int unhexmem_full(const char *p, size_t l, bool secure, void **mem, size_t *len); 22 static inline int unhexmem(const char *p, size_t l, void **mem, size_t *len) { in unhexmem() 33 char *base32hexmem(const void *p, size_t l, bool padding); 34 int unbase32hexmem(const char *p, size_t l, bool padding, void **mem, size_t *len); 36 ssize_t base64mem_full(const void *p, size_t l, size_t line_break, char **ret); 37 static inline ssize_t base64mem(const void *p, size_t l, char **ret) { in base64mem() 42 const void *p, size_t l, 44 int unbase64mem_full(const char *p, size_t l, bool secure, void **mem, size_t *len); 45 static inline int unbase64mem(const char *p, size_t l, void **mem, size_t *len) { in unbase64mem() [all …]
|
D | io-util.h | 16 ssize_t loop_read(int fd, void *buf, size_t nbytes, bool do_poll); 17 int loop_read_exact(int fd, void *buf, size_t nbytes, bool do_poll); 18 int loop_write(int fd, const void *buf, size_t nbytes, bool do_poll); 22 int ppoll_usec(struct pollfd *fds, size_t nfds, usec_t timeout); 25 ssize_t sparse_write(int fd, const void *p, size_t sz, size_t run_length); 27 static inline size_t IOVEC_TOTAL_SIZE(const struct iovec *i, size_t n) { in IOVEC_TOTAL_SIZE() 28 size_t r = 0; in IOVEC_TOTAL_SIZE() 30 for (size_t j = 0; j < n; j++) in IOVEC_TOTAL_SIZE() 36 static inline bool IOVEC_INCREMENT(struct iovec *i, size_t n, size_t k) { in IOVEC_INCREMENT() 40 for (size_t j = 0; j < n; j++) { in IOVEC_INCREMENT() [all …]
|
D | nss-util.h | 20 char *buffer, size_t buflen, \ 27 char *buffer, size_t buflen, \ 35 char *buffer, size_t buflen, \ 40 char *buffer, size_t buflen, \ 48 char *buffer, size_t buflen, \ 55 char *buffer, size_t buflen, \ 63 char *buffer, size_t buflen, \ 77 char *buffer, size_t buflen, \ 107 char *buffer, size_t buflen, \ 122 char *buffer, size_t buflen, \ [all …]
|
D | compress.h | 21 void *dst, size_t dst_alloc_size, size_t *dst_size); 23 void *dst, size_t dst_alloc_size, size_t *dst_size); 25 void *dst, size_t dst_alloc_size, size_t *dst_size); 28 void **dst, size_t* dst_size, size_t dst_max); 30 void **dst, size_t* dst_size, size_t dst_max); 32 void **dst, size_t* dst_size, size_t dst_max); 35 void **dst, size_t* dst_size, size_t dst_max); 39 const void *prefix, size_t prefix_len, 43 const void *prefix, size_t prefix_len, 47 const void *prefix, size_t prefix_len, [all …]
|
D | string-util.h | 84 char *strnappend(const char *s, const char *suffix, size_t length); 93 size_t _len_ = 0; \ 94 size_t _i_; \ 121 char *ascii_strlower_n(char *s, size_t n); 126 int ascii_strcasecmp_n(const char *a, const char *b, size_t n); 127 int ascii_strcasecmp_nn(const char *a, size_t n, const char *b, size_t m); 147 char *ellipsize_mem(const char *s, size_t old_length_bytes, size_t new_length_columns, unsigned per… 148 static inline char *ellipsize(const char *s, size_t length, unsigned percent) { in ellipsize() 152 char *cellescape(char *buf, size_t len, const char *s); 157 char* strshorten(char *s, size_t l); [all …]
|
D | memory-util.h | 13 size_t page_size(void) _pure_; 19 static inline void *memcpy_safe(void *dst, const void *src, size_t n) { in memcpy_safe() 27 static inline void *mempcpy_safe(void *dst, const void *src, size_t n) { in mempcpy_safe() 35 static inline int memcmp_safe(const void *s1, const void *s2, size_t n) { in memcmp_safe() 44 static inline int memcmp_nn(const void *s1, size_t n1, const void *s2, size_t n2) { in memcmp_nn() 51 size_t _l_ = (l); \ 58 bool memeqbyte(uint8_t byte, const void *data, size_t length); 64 static inline void *mempset(void *s, int c, size_t n) { in mempset() 70 …tatic inline void *memmem_safe(const void *haystack, size_t haystacklen, const void *needle, size_… in memmem_safe() 84 …atic inline void *mempmem_safe(const void *haystack, size_t haystacklen, const void *needle, size_… in mempmem_safe() [all …]
|
D | strxcpyx.c | 21 size_t strnpcpy_full(char **dest, size_t size, const char *src, size_t len, bool *ret_truncated) { in strnpcpy_full() 50 size_t strpcpy_full(char **dest, size_t size, const char *src, bool *ret_truncated) { in strpcpy_full() 57 size_t strpcpyf_full(char **dest, size_t size, bool *ret_truncated, const char *src, ...) { in strpcpyf_full() 83 size_t strpcpyl_full(char **dest, size_t size, bool *ret_truncated, const char *src, ...) { in strpcpyl_full() 105 size_t strnscpy_full(char *dest, size_t size, const char *src, size_t len, bool *ret_truncated) { in strnscpy_full() 115 size_t strscpy_full(char *dest, size_t size, const char *src, bool *ret_truncated) { in strscpy_full() 122 size_t strscpyl_full(char *dest, size_t size, bool *ret_truncated, const char *src, ...) { in strscpyl_full()
|
D | fileio.h | 51 FILE* open_memstream_unlocked(char **ptr, size_t *sizeloc); 52 FILE* fmemopen_unlocked(void *buf, size_t size, const char *mode); 66 …har *filename, uint64_t offset, size_t size, ReadFullFileFlags flags, const char *bind_name, char … 67 static inline int read_full_file(const char *filename, char **ret_contents, size_t *ret_size) { in read_full_file() 71 int read_virtual_file_fd(int fd, size_t max_size, char **ret_contents, size_t *ret_size); 72 …ead_virtual_file_at(int dir_fd, const char *filename, size_t max_size, char **ret_contents, size_t… 73 …ic inline int read_virtual_file(const char *filename, size_t max_size, char **ret_contents, size_t… in read_virtual_file() 76 static inline int read_full_virtual_file(const char *filename, char **ret_contents, size_t *ret_siz… in read_full_virtual_file() 80 … *f, const char *filename, uint64_t offset, size_t size, ReadFullFileFlags flags, char **ret_conte… 81 static inline int read_full_stream(FILE *f, char **ret_contents, size_t *ret_size) { in read_full_stream() [all …]
|
D | io-util.c | 51 ssize_t loop_read(int fd, void *buf, size_t nbytes, bool do_poll) { in loop_read() 61 if (nbytes > (size_t) SSIZE_MAX) in loop_read() 88 assert((size_t) k <= nbytes); in loop_read() 98 int loop_read_exact(int fd, void *buf, size_t nbytes, bool do_poll) { in loop_read_exact() 104 if ((size_t) n != nbytes) in loop_read_exact() 110 int loop_write(int fd, const void *buf, size_t nbytes, bool do_poll) { in loop_write() 116 if (_unlikely_(nbytes > (size_t) SSIZE_MAX)) in loop_write() 142 assert((size_t) k <= nbytes); in loop_write() 161 int ppoll_usec(struct pollfd *fds, size_t nfds, usec_t timeout) { in ppoll_usec() 175 for (size_t i = 0, n = r; i < nfds && n > 0; i++) { in ppoll_usec() [all …]
|
D | utf8.c | 64 static size_t utf8_encoded_expected_len(uint8_t c) { in utf8_encoded_expected_len() 84 size_t len; in utf8_encoded_to_unichar() 113 for (size_t i = 1; i < len; i++) { in utf8_encoded_to_unichar() 126 bool utf8_is_printable_newline(const char* str, size_t length, bool allow_newline) { in utf8_is_printable_newline() 136 assert(encoded_len > 0 && (size_t) encoded_len <= length); in utf8_is_printable_newline() 151 char *utf8_is_valid_n(const char *str, size_t len_bytes) { in utf8_is_valid_n() 157 … for (const char *p = str; len_bytes != SIZE_MAX ? (size_t) (p - str) < len_bytes : *p != '\0'; ) { in utf8_is_valid_n() 213 char *utf8_escape_non_printable_full(const char *str, size_t console_width, bool force_ellipsis) { in utf8_escape_non_printable_full() 215 size_t n = 0; /* estimated print width */ in utf8_escape_non_printable_full() 302 char *ascii_is_valid_n(const char *str, size_t len) { in ascii_is_valid_n() [all …]
|
D | string-util.c | 24 size_t sl, wl; in first_word() 57 char *strnappend(const char *s, const char *suffix, size_t b) { in strnappend() 58 size_t a; in strnappend() 90 size_t l = 1; in strjoin_real() 95 size_t n; in strjoin_real() 213 char *ascii_strlower_n(char *t, size_t n) { in ascii_strlower_n() 217 for (size_t i = 0; i < n; i++) in ascii_strlower_n() 223 int ascii_strcasecmp_n(const char *a, const char *b, size_t n) { in ascii_strcasecmp_n() 238 int ascii_strcasecmp_nn(const char *a, size_t n, const char *b, size_t m) { in ascii_strcasecmp_nn() 291 static char *ascii_ellipsize_mem(const char *s, size_t old_length, size_t new_length, unsigned perc… in ascii_ellipsize_mem() [all …]
|
D | compress.c | 46 static int zstd_ret_to_errno(size_t ret) { in zstd_ret_to_errno() 58 #define ALIGN_8(l) ALIGN_TO(l, sizeof(size_t)) 70 void *dst, size_t dst_alloc_size, size_t *dst_size) { in compress_blob_xz() 81 size_t out_pos = 0; in compress_blob_xz() 108 void *dst, size_t dst_alloc_size, size_t *dst_size) { in compress_blob_lz4() 139 void *dst, size_t dst_alloc_size, size_t *dst_size) { in compress_blob_zstd() 141 size_t k; in compress_blob_zstd() 164 size_t* dst_size, in decompress_blob_xz() 165 size_t dst_max) { in decompress_blob_xz() 170 size_t space; in decompress_blob_xz() [all …]
|
/systemd-251/src/shared/ |
D | libfido2-util.h | 20 extern int (*sym_fido_assert_allow_cred)(fido_assert_t *, const unsigned char *, size_t); 22 extern size_t (*sym_fido_assert_hmac_secret_len)(const fido_assert_t *, size_t); 23 extern const unsigned char* (*sym_fido_assert_hmac_secret_ptr)(const fido_assert_t *, size_t); 25 extern int (*sym_fido_assert_set_clientdata_hash)(fido_assert_t *, const unsigned char *, size_t); 27 extern int (*sym_fido_assert_set_hmac_salt)(fido_assert_t *, const unsigned char *, size_t); 31 extern size_t (*sym_fido_cbor_info_extensions_len)(const fido_cbor_info_t *); 35 extern size_t (*sym_fido_cbor_info_options_len)(const fido_cbor_info_t *); 39 extern size_t (*sym_fido_cred_id_len)(const fido_cred_t *); 42 extern int (*sym_fido_cred_set_clientdata_hash)(fido_cred_t *, const unsigned char *, size_t); 47 extern int (*sym_fido_cred_set_user)(fido_cred_t *, const unsigned char *, size_t, const char *, co… [all …]
|
D | format-table.h | 72 Table *table_new_raw(size_t n_columns); 77 …, TableCell **ret_cell, TableDataType type, const void *data, size_t minimum_width, size_t maximum… 83 int table_fill_empty(Table *t, size_t until_column); 87 int table_set_minimum_width(Table *t, TableCell *cell, size_t minimum_width); 88 int table_set_maximum_width(Table *t, TableCell *cell, size_t maximum_width); 103 void table_set_width(Table *t, size_t width); 104 void table_set_cell_height_max(Table *t, size_t height); 106 int table_set_display_internal(Table *t, size_t first_column, ...); 108 int table_set_sort_internal(Table *t, size_t first_column, ...); 110 int table_set_reverse(Table *t, size_t column, bool b); [all …]
|
D | format-table.c | 71 size_t minimum_width; /* minimum width for the column */ 72 size_t maximum_width; /* maximum width for the column */ 73 size_t formatted_for_width; /* the width we tried to format for */ 115 static size_t TABLE_CELL_TO_INDEX(TableCell *cell) { in TABLE_CELL_TO_INDEX() 116 size_t i; in TABLE_CELL_TO_INDEX() 126 static TableCell* TABLE_INDEX_TO_CELL(size_t index) { in TABLE_INDEX_TO_CELL() 132 size_t n_columns; 133 size_t n_cells; 136 … size_t width; /* If == 0 format this as wide as necessary. If SIZE_MAX format this to console 138 …size_t cell_height_max; /* Maximum number of lines per cell. (If there are more, ellipsis is shown… [all …]
|
D | install.h | 60 static inline bool unit_file_changes_have_modification(const UnitFileChange* changes, size_t n_chan… in unit_file_changes_have_modification() 61 for (size_t i = 0; i < n_changes; i++) in unit_file_changes_have_modification() 104 size_t *n_changes); 111 size_t *n_changes); 118 size_t *n_changes); 126 size_t *n_changes); 133 size_t *n_changes); 140 size_t *n_changes); 147 size_t *n_changes); 154 size_t *n_changes); [all …]
|
/systemd-251/src/resolve/ |
D | resolved-dns-packet.h | 64 size_t size, allocated, rindex, max_size, fragsize; 67 size_t opt_start, opt_size; 192 int dns_packet_new(DnsPacket **p, DnsProtocol protocol, size_t min_alloc_dsize, size_t max_size); 193 int dns_packet_new_query(DnsPacket **p, DnsProtocol protocol, size_t min_alloc_dsize, bool dnssec_c… 218 int dns_packet_append_blob(DnsPacket *p, const void *d, size_t sz, size_t *start); 219 int dns_packet_append_uint8(DnsPacket *p, uint8_t v, size_t *start); 220 int dns_packet_append_uint16(DnsPacket *p, uint16_t v, size_t *start); 221 int dns_packet_append_uint32(DnsPacket *p, uint32_t v, size_t *start); 222 int dns_packet_append_string(DnsPacket *p, const char *s, size_t *start); 223 int dns_packet_append_raw_string(DnsPacket *p, const void *s, size_t size, size_t *start); [all …]
|
/systemd-251/src/libsystemd/sd-bus/ |
D | bus-message.h | 23 size_t before, begin, end; 29 size_t *offsets, n_offsets, offset_index; 30 size_t item_size; 39 size_t size; 40 size_t mapped; 41 size_t allocated; 94 size_t header_accessible; 95 size_t footer_accessible; 97 size_t fields_size; 98 size_t body_size; [all …]
|
/systemd-251/src/libsystemd-network/ |
D | dhcp6-option.h | 18 size_t length; 75 int dhcp6_option_append(uint8_t **buf, size_t *buflen, uint16_t code, 76 size_t optlen, const void *optval); 77 int dhcp6_option_append_ia(uint8_t **buf, size_t *buflen, const DHCP6IA *ia); 78 int dhcp6_option_append_fqdn(uint8_t **buf, size_t *buflen, const char *fqdn); 79 int dhcp6_option_append_user_class(uint8_t **buf, size_t *buflen, char * const *user_class); 80 int dhcp6_option_append_vendor_class(uint8_t **buf, size_t *buflen, char * const *user_class); 81 int dhcp6_option_append_vendor_option(uint8_t **buf, size_t *buflen, OrderedSet *vendor_options); 85 size_t buflen, 86 size_t *offset, [all …]
|
D | dhcp-internal.h | 23 size_t length; 28 size_t size; 36 const uint8_t *mac_addr, size_t mac_addr_len, 37 const uint8_t *bcast_addr, size_t bcast_addr_len, 41 const void *packet, size_t len); 43 const void *packet, size_t len); 45 int dhcp_option_append(DHCPMessage *message, size_t size, size_t *offset, uint8_t overload, 46 uint8_t code, size_t optlen, const void *optval); 47 int dhcp_option_find_option(uint8_t *options, size_t length, uint8_t wanted_code, size_t *ret_offse… 48 int dhcp_option_remove_option(uint8_t *options, size_t buflen, uint8_t option_code); [all …]
|
D | dhcp6-lease-internal.h | 20 size_t clientid_len; 22 size_t serverid_len; 38 size_t dns_count; 41 size_t ntp_count; 44 size_t sntp_count; 49 int dhcp6_lease_set_clientid(sd_dhcp6_lease *lease, const uint8_t *id, size_t len); 50 int dhcp6_lease_get_clientid(sd_dhcp6_lease *lease, uint8_t **ret_id, size_t *ret_len); 51 int dhcp6_lease_set_serverid(sd_dhcp6_lease *lease, const uint8_t *id, size_t len); 52 int dhcp6_lease_get_serverid(sd_dhcp6_lease *lease, uint8_t **ret_id, size_t *ret_len); 58 int dhcp6_lease_add_dns(sd_dhcp6_lease *lease, const uint8_t *optval, size_t optlen); [all …]
|
D | dhcp-option.c | 18 …tatic int dhcp_option_append_tlv(uint8_t options[], size_t size, size_t *offset, uint8_t code, siz… in dhcp_option_append_tlv() 36 static int option_append(uint8_t options[], size_t size, size_t *offset, in option_append() 37 uint8_t code, size_t optlen, const void *optval) { in option_append() 60 size_t total = 0; in option_append() 66 size_t len = strlen(*s); in option_append() 82 size_t len = strlen(*s); in option_append() 106 size_t l = 0; in option_append() 127 size_t current_offset = *offset + 2; in option_append() 154 static int option_length(uint8_t *options, size_t length, size_t offset) { in option_length() 170 int dhcp_option_find_option(uint8_t *options, size_t length, uint8_t code, size_t *ret_offset) { in dhcp_option_find_option() [all …]
|
/systemd-251/src/cryptsetup/ |
D | cryptsetup-fido2.h | 19 size_t cid_size, 21 size_t key_file_size, 24 size_t key_data_size, 29 size_t *ret_decrypted_key_size, 36 size_t *ret_salt_size, 38 size_t *ret_cid_size, 50 size_t cid_size, in acquire_fido2_key() 52 size_t key_file_size, in acquire_fido2_key() 55 size_t key_data_size, in acquire_fido2_key() 60 size_t *ret_decrypted_key_size, in acquire_fido2_key() [all …]
|