/coreutils/src/blake2/ |
D | blake2.h | 57 size_t buflen; 58 size_t outlen; 68 size_t buflen; 69 size_t outlen; 78 size_t buflen; 79 size_t outlen; 87 size_t buflen; 88 size_t outlen; 147 int blake2s_init( blake2s_state *S, size_t outlen ); 148 int blake2s_init_key( blake2s_state *S, size_t outlen, const void *key, size_t keylen ); [all …]
|
D | b2sum.c | 33 int blake2s_stream( FILE *stream, void *resstream, size_t outbytes ) 36 size_t sum, n; 38 static const size_t buffer_length = 32768; 84 int blake2b_stream( FILE *stream, void *resstream, size_t outbytes ) in blake2b_stream() 87 size_t sum, n; in blake2b_stream() 89 static const size_t buffer_length = 32768; in blake2b_stream() 136 int blake2sp_stream( FILE *stream, void *resstream, size_t outbytes ) 139 size_t sum, n; 141 static const size_t buffer_length = 16 * ( 1UL << 20 ); 187 int blake2bp_stream( FILE *stream, void *resstream, size_t outbytes ) [all …]
|
D | blake2b-ref.c | 78 size_t i; in blake2b_init0() 88 size_t i; in blake2b_init_param() 102 int blake2b_init( blake2b_state *S, size_t outlen ) in blake2b_init() 124 int blake2b_init_key( blake2b_state *S, size_t outlen, const void *key, size_t keylen ) in blake2b_init_key() 185 size_t i; in blake2b_compress() 225 int blake2b_update( blake2b_state *S, const void *pin, size_t inlen ) in blake2b_update() 230 size_t left = S->buflen; in blake2b_update() 231 size_t fill = BLAKE2B_BLOCKBYTES - left; in blake2b_update() 252 int blake2b_final( blake2b_state *S, void *out, size_t outlen ) in blake2b_final() 255 size_t i; in blake2b_final() [all …]
|
/coreutils/gl/lib/ |
D | randperm.c | 36 floor_lg (size_t n) in floor_lg() 51 size_t 52 randperm_bound (size_t h, size_t n) in randperm_bound() 62 size_t bound = (ar + CHAR_BIT - 1) / CHAR_BIT; in randperm_bound() 70 swap (size_t *v, size_t i, size_t j) in swap() 72 size_t t = v[i]; in swap() 84 size_t index; 85 size_t val; 88 static size_t 89 sparse_hash_ (void const *x, size_t table_size) in sparse_hash_() [all …]
|
D | heap.c | 28 static size_t heapify_down (void **, size_t, size_t, 30 static void heapify_up (void **, size_t, 36 size_t capacity; /* Array size */ 37 size_t count; /* Used as index to last element. Also is num of items. */ 44 heap_alloc (int (*compare) (void const *, void const *), size_t n_reserve) in heap_alloc() 110 static size_t 111 heapify_down (void **array, size_t count, size_t initial, in heapify_down() 116 size_t parent = initial; in heapify_down() 119 size_t child = 2 * parent; in heapify_down() 138 heapify_up (void **array, size_t count, in heapify_up() [all …]
|
D | randperm.h | 4 size_t randperm_bound (size_t, size_t) _GL_ATTRIBUTE_CONST; 5 size_t *randperm_new (struct randint_source *, size_t, size_t)
|
D | buffer-lcm.c | 27 size_t 28 buffer_lcm (size_t a, size_t b, size_t lcm_max) in buffer_lcm() 30 size_t size; in buffer_lcm() 42 size_t lcm, m, n, q, r; in buffer_lcm()
|
D | buffer-lcm.h | 2 size_t buffer_lcm (size_t, size_t, size_t) _GL_ATTRIBUTE_CONST;
|
D | randread.c | 51 # define ALIGNED_POINTER(ptr, type) ((size_t) (ptr) % alignof (type) == 0) 86 size_t buffered; 130 get_nonce (void *buffer, size_t bufsize) in get_nonce() 140 size_t max_bytes = MIN (buflim - buf, MAX_GETRANDOM); in get_nonce() 173 randread_new (char const *name, size_t bytes_bound) in randread_new() 233 readsource (struct randread_source *s, unsigned char *p, size_t size) in readsource() 237 size_t inbytes = fread (p, sizeof *p, size, s->source); in readsource() 253 readisaac (struct isaac *isaac, void *p, size_t size) in readisaac() 255 size_t inbytes = isaac->buffered; in readisaac() 301 randread (struct randread_source *s, void *buf, size_t size) in randread()
|
/coreutils/src/ |
D | shuf.c | 116 size_t size = n_operands; in input_from_argv() 171 static size_t 172 read_input_reservoir_sampling (FILE *in, char eolbyte, size_t k, in read_input_reservoir_sampling() 177 size_t n_alloc_lines = MIN (k, RESERVOIR_LINES_INCREMENT); in read_input_reservoir_sampling() 237 write_permuted_output_reservoir (size_t n_lines, struct linebuffer *lines, in write_permuted_output_reservoir() 238 size_t const *permutation) in write_permuted_output_reservoir() 240 for (size_t i = 0; i < n_lines; i++) in write_permuted_output_reservoir() 256 static size_t 261 size_t used; in read_input() 264 size_t n_lines; in read_input() [all …]
|
D | fold.c | 91 static size_t 92 adjust_column (size_t column, char c) in adjust_column() 118 fold_file (char const *filename, size_t width) in fold_file() 122 size_t column = 0; /* Screen column where next char will go. */ in fold_file() 123 size_t offset_out = 0; /* Index in 'line_out' for next char. */ in fold_file() 125 static size_t allocated_out = 0; in fold_file() 168 size_t logical_end = offset_out; in fold_file() 183 size_t i; in fold_file() 187 fwrite (line_out, sizeof (char), (size_t) logical_end, in fold_file() 208 fwrite (line_out, sizeof (char), (size_t) offset_out, stdout); in fold_file() [all …]
|
D | sort.c | 57 struct rlimit { size_t rlim_cur; }; 178 size_t length; /* Length including final newline. */ 191 size_t used; /* Number of bytes used for input data. */ 192 size_t nlines; /* Number of lines in the line array. */ 193 size_t alloc; /* Number of bytes allocated. */ 194 size_t left; /* Number of bytes left from previous reads. */ 195 size_t line_bytes; /* Number of bytes to reserve for each line. */ 202 size_t sword; /* Zero-origin 'word' to start at. */ 203 size_t schar; /* Additional characters to skip. */ 204 size_t eword; /* Zero-origin last 'word' of key. */ [all …]
|
D | yes.c | 79 size_t bufalloc = 0; in main() 84 size_t operand_len = strlen (*operandp); in main() 102 size_t bufused = 0; in main() 106 size_t operand_len = strlen (*operandp); in main() 117 size_t copysize = bufused; in main() 118 for (size_t copies = bufalloc / copysize; --copies; ) in main()
|
D | tac.c | 79 static size_t sentinel_length; 84 static size_t match_length; 90 static size_t read_size; 95 static size_t G_buffer_size; 149 static size_t bytes_in_buffer = 0; in output() 150 size_t bytes_to_add = past_end - start; in output() 151 size_t bytes_available = WRITESIZE - bytes_in_buffer; in output() 191 size_t saved_record_size; in tac_seekable() 198 size_t match_length1 = match_length - 1; /* Speed optimization, non-regexp. */ in tac_seekable() 205 size_t remainder = file_pos % read_size; in tac_seekable() [all …]
|
D | head.c | 179 xwrite_stdout (char const *buffer, size_t n_bytes) in xwrite_stdout() 197 const size_t buf_size = sizeof (buf); in copy_fd() 202 size_t n_to_read = MIN (buf_size, n_bytes); in copy_fd() 203 size_t n_read = safe_read (src_fd, buf, n_to_read); in copy_fd() 251 size_t n_elide = n_elide_0; in elide_tail_bytes_pipe() 294 size_t n_to_read = READ_BUFSIZE + n_elide; in elide_tail_bytes_pipe() 302 size_t n_read = full_read (fd, b[i], n_to_read); in elide_tail_bytes_pipe() 303 size_t delta = 0; in elide_tail_bytes_pipe() 354 size_t n_read; in elide_tail_bytes_pipe() 356 size_t i, i_next; in elide_tail_bytes_pipe() [all …]
|
D | sum.c | 43 size_t sum, n; in bsd_sum_stream() 46 static const size_t buffer_length = 32768; in bsd_sum_stream() 77 for (size_t i = 0; i < sum; i++) in bsd_sum_stream() 93 for (size_t i = 0; i < sum; i++) in bsd_sum_stream() 121 size_t sum, n; in sysv_sum_stream() 123 static const size_t buffer_length = 32768; in sysv_sum_stream() 157 for (size_t i = 0; i < sum; i++) in sysv_sum_stream() 169 for (size_t i = 0; i < sum; i++) in sysv_sum_stream()
|
D | tr.c | 158 size_t n_indefinite_repeats; 186 size_t len; 192 es_match (struct E_string const *es, size_t i, char c) in es_match() 433 size_t len = strlen (s); in unquote() 543 look_up_char_class (char const *class_str, size_t len) in look_up_char_class() 582 make_printable_str (char const *s, size_t len) in make_printable_str() 589 for (size_t i = 0; i < len; i++) in make_printable_str() 688 char const *char_class_str, size_t len) in append_char_class() 728 char const *equiv_class_str, size_t len) in append_equiv_class() 749 find_closing_delim (const struct E_string *es, size_t start_idx, in find_closing_delim() [all …]
|
D | mktemp.c | 104 static size_t 105 count_consecutive_X_s (char const *s, size_t len) in count_consecutive_X_s() 107 size_t n = 0; in count_consecutive_X_s() 114 mkstemp_len (char *tmpl, size_t suff_len, size_t x_len, bool dry_run) in mkstemp_len() 121 mkdtemp_len (char *tmpl, size_t suff_len, size_t x_len, bool dry_run) in mkdtemp_len() 157 size_t x_count; in main() 158 size_t suffix_len; in main() 224 size_t len = strlen (template); in main()
|
D | seq.c | 127 size_t width; 139 size_t prefix_len; 140 size_t suffix_len; 180 size_t fraction_len = 0; in scan_arg() 236 size_t i; in long_double_format() 237 size_t prefix_len = 0; in long_double_format() 238 size_t suffix_len = 0; in long_double_format() 239 size_t length_modifier_offset; in long_double_format() 276 size_t format_size = i + 1; in long_double_format() 374 size_t first_width = first.width + (prec - first.precision); in get_default_format() [all …]
|
D | uniq.c | 52 static size_t skip_fields; 55 static size_t skip_chars; 58 static size_t check_chars; 232 static size_t 257 size_t count; in find_field() 259 size_t size = line->length - 1; in find_field() 260 size_t i = 0; in find_field() 281 different (char *old, char *new, size_t oldlen, size_t newlen) in different() 357 size_t prevlen; in check_file() 363 size_t thislen; in check_file() [all …]
|
D | set-fields.c | 29 size_t n_frp; 32 static size_t n_frp_allocated; 72 size_t n = n_frp; in complement_rp() 81 for (size_t i = 1; i < n; ++i) in complement_rp() 253 size_t len = strspn (num_start, "0123456789"); in set_fields() 283 for (size_t i = 0; i < n_frp; ++i) in set_fields() 285 for (size_t j = i + 1; j < n_frp; ++j) in set_fields()
|
D | pwd.c | 35 size_t n_alloc; 99 file_name_prepend (struct file_name *p, char const *s, size_t s_len) in file_name_prepend() 101 size_t n_free = p->start - p->buf; in file_name_prepend() 104 size_t half = p->n_alloc + 1 + s_len; in file_name_prepend() 110 size_t n_used = p->n_alloc - n_free; in file_name_prepend() 125 nth_parent (size_t n) in nth_parent() 130 for (size_t i = 0; i < n; i++) in nth_parent() 152 size_t parent_height) in find_dir_entry() 268 size_t height = 1; in robust_getcwd()
|
D | ls.c | 233 size_t width; 244 size_t len; /* Number of bytes */ 252 static size_t quote_name (char const *name, 258 static size_t quote_name_buf (char **inbuf, size_t bufsize, char *name, 260 int needs_general_quoting, size_t *width, 278 static void indent (size_t from, size_t to); 279 static size_t calculate_columns (bool by_columns); 283 static size_t print_file_name_and_frills (const struct fileinfo *f, 284 size_t start_col); 290 static size_t print_name_with_quoting (const struct fileinfo *f, [all …]
|
D | od.c | 108 void (*print_function) (size_t fields, size_t blank, void const *data, 190 static size_t string_min; 233 static size_t n_specs; 236 static size_t n_specs_allocated; 242 static size_t bytes_per_block; 432 N (size_t fields, size_t blank, void const *block, \ 445 size_t j; \ 488 dump_hexl_mode_trailer (size_t n_bytes, char const *block) in PRINT_TYPE() 491 for (size_t i = n_bytes; i > 0; i--) in PRINT_TYPE() 501 print_named_ascii (size_t fields, size_t blank, void const *block, in print_named_ascii() [all …]
|
/coreutils/tests/csplit/ |
D | csplit-io-err.sh | 39 size_t 40 fwrite (const void *ptr, size_t size, size_t nitems, FILE *stream) 46 size_t count = size * nitems; 47 size_t i; 61 size_t 62 fwrite_unlocked (const void *ptr, size_t size, size_t nitems, FILE *stream)
|