/glibc-2.36/elf/ |
D | stringtable.c | 42 fnv1a (const char *string, size_t length) in fnv1a() argument 46 for (size_t i = 0; i < length; ++i) in fnv1a() 69 uint32_t hash = fnv1a (e->string, e->length); in stringtable_rehash() 88 size_t length = strlen (string); in stringtable_add() local 89 if (length > (1U << 30)) in stringtable_add() 91 uint32_t hash = fnv1a (string, length); in stringtable_add() 97 if (e->length == length && memcmp (e->string, string, length) == 0) in stringtable_add() 110 = xmalloc (offsetof (struct stringtable_entry, string) + length + 1); in stringtable_add() 114 e->length = length; in stringtable_add() 116 memcpy (e->string, string, length + 1); in stringtable_add() [all …]
|
D | dl-exception.c | 113 size_t length = len_objname + 1; in rtld_hidden_def() local 124 length += strlen (va_arg (ap, const char *)); in rtld_hidden_def() 133 length += LONG_WIDTH / 4; in rtld_hidden_def() 139 length += INT_WIDTH / 4; in rtld_hidden_def() 143 ++length; in rtld_hidden_def() 148 ++length; in rtld_hidden_def() 152 if (length > PTRDIFF_MAX) in rtld_hidden_def() 157 char *errstring = malloc (length); in rtld_hidden_def() 171 char *const end = errstring + length; in rtld_hidden_def()
|
D | gen-trusted-dirs.awk | 24 printf (" %d", length (s[0])); 25 m = length (s[0]); 28 printf (", %d", length(s[i])); 29 if (length(s[i]) > m) { 30 m = length(s[i]);
|
D | dl-hwcaps_split.c | 30 s->segment += s->length; in _dl_hwcaps_split() 43 s->length = strlen (s->segment); in _dl_hwcaps_split() 45 s->length = colon - s->segment; in _dl_hwcaps_split() 59 s->split.segment, s->split.length)) in _dl_hwcaps_split_masked() 73 if (split.length == name_length in _dl_hwcaps_contains()
|
D | tst-stringtable.c | 44 TEST_COMPARE (e->length, 0); in do_test() 61 TEST_COMPARE (e->length, 4); in do_test() 79 TEST_COMPARE (suffix->length, 6); in do_test() 85 TEST_COMPARE (prefix->length, strlen ("prefix-suffix")); in do_test() 109 TEST_COMPARE (entries[i]->length, strlen (strings[i])); in do_test() 113 TEST_COMPARE (entries[i + count]->length, strlen (strings[i + count])); in do_test() 122 TEST_COMPARE (entries[i]->length, strlen (strings[i])); in do_test()
|
/glibc-2.36/stdlib/ |
D | tst-getrandom.c | 33 test_length (char *buffer, size_t length, unsigned int flags) in test_length() argument 35 memset (buffer, 0, length); in test_length() 36 strcpy (buffer + length, "123"); in test_length() 37 ssize_t ret = getrandom (buffer, length, flags); in test_length() 46 printf ("error: getrandom (%zu, 0x%x): %m\n", length, flags); in test_length() 50 if (ret != length) in test_length() 54 if (ret == 0 || ret > length) in test_length() 57 length, flags, ret); in test_length() 64 length, flags, ret); in test_length() 68 if (length >= 7) in test_length() [all …]
|
/glibc-2.36/malloc/ |
D | tst-scratch_buffer.c | 30 size_t old_length = buf->length; in unchanged_array_size() 37 if (old_length != buf->length) in unchanged_array_size() 81 memset (buf.data, ' ', buf.length); in do_test() 87 memset (buf.data, ' ', buf.length); in do_test() 88 size_t old_length = buf.length; in do_test() 90 if (buf.length <= old_length) in do_test() 95 memset (buf.data, ' ', buf.length); in do_test() 101 memset (buf.data, '@', buf.length); in do_test() 103 size_t old_length = buf.length; in do_test() 105 if (buf.length <= old_length) in do_test() [all …]
|
D | obstack.h | 280 # define obstack_make_room(OBSTACK, length) \ argument 283 int __len = (length); \ 296 # define obstack_grow(OBSTACK, where, length) \ argument 299 int __len = (length); \ 306 # define obstack_grow0(OBSTACK, where, length) \ argument 309 int __len = (length); \ 359 # define obstack_blank(OBSTACK, length) \ argument 362 int __len = (length); \ 368 # define obstack_alloc(OBSTACK, length) \ argument 371 obstack_blank (__h, (length)); \ [all …]
|
D | tst-dynarray.c | 34 size_t length; member 80 TEST_VERIFY_EXIT (result.length == 0); in test_int() 163 TEST_VERIFY_EXIT (result.length == final_count); in test_int() 207 TEST_VERIFY_EXIT (result.length == 0); in test_str() 297 TEST_VERIFY_EXIT (result.length == final_count); in test_str() 305 TEST_VERIFY_EXIT (result.length in test_str() 414 TEST_VERIFY (result.length == 0); in test_long_init() 426 TEST_VERIFY (result.length == 1); in test_long_init() 444 TEST_VERIFY (result.length == count); in test_long_init() 523 size_t length = 1; in test_zstr() local [all …]
|
/glibc-2.36/misc/ |
D | tst-syscalls.c | 34 size_t length; member 62 if (b.length && munmap (b.ptr, b.length)) in deallocate() 71 do_mmap (void *addr, size_t length) in do_mmap() argument 73 return mmap (addr, length, PROT_READ | PROT_WRITE, in do_mmap() 84 if (b.length) in reallocate() 85 return do_mmap (b.ptr, b.length); in reallocate() 93 if (b.length) in protect() 98 if (mprotect (b.ptr, b.length, in protect() 114 if (b.length) in do_read() 115 return read (fd, ptr, b.length); in do_read() [all …]
|
D | truncate64.c | 24 truncate64 (const char *path, off64_t length) in truncate64() argument 26 if ((off_t) length != length) in truncate64() 31 return __truncate (path, (off_t) length); in truncate64()
|
D | ftruncate64.c | 24 __ftruncate64 (int fd, off64_t length) in __ftruncate64() argument 26 if ((off_t) length != length) in __ftruncate64() 31 return __ftruncate (fd, (off_t) length); in __ftruncate64()
|
/glibc-2.36/sysdeps/s390/ |
D | iso-8859-1_cp037_z900.c | 180 size_t length = (inend - inptr < outend - outptr \ 184 if (__builtin_expect (length >= 256, 0)) \ 186 size_t blocks = length / 256; \ 197 length = length % 256; \ 201 if (length >= 8) \ 203 size_t blocks = length / 8; \ 217 length = length % 8; \ 221 switch (length) \ 239 inptr += length; \ 240 outptr += length; \
|
/glibc-2.36/resolv/ |
D | tst-ns_name_compress.c | 28 test_exact_fit (const char *name, size_t length) in test_exact_fit() argument 30 unsigned char *buf = xmalloc (length + 1); in test_exact_fit() 31 memset (buf, '$', length + 1); in test_exact_fit() 34 int ret = ns_name_compress (name, buf, length, in test_exact_fit() 39 printf ("error: ns_name_compress for %s/%zu failed\n", name, length); in test_exact_fit() 42 if ((size_t) ret != length) in test_exact_fit() 46 name, length, ret); in test_exact_fit() 48 if (buf[length] != '$') in test_exact_fit() 52 name, length); in test_exact_fit()
|
D | tst-ns_name.c | 35 size_t length; member 46 result->length = 0; in base64_to_buffer() 56 result->length = ret; in base64_to_buffer() 129 if (result->input_offset > result->input.length) in parse_test_case() 132 path, lineno, result->input_offset, result->input.length); in parse_test_case() 185 unsigned char *end = p + buffer.length; in print_hex() 201 (t->input.data, t->input.data + t->input.length, in run_test_case() 216 t->unpack_output.length) != 0) in run_test_case() 223 (struct buffer) { unpacked, t->unpack_output.length }); in run_test_case() 255 if (t->unpack_output.length > NS_MAXCDNAME) in run_test_case() [all …]
|
/glibc-2.36/io/ |
D | tst-copy_file_range.c | 71 int length; in simple_file_copy() local 77 length = current_size - 3; in simple_file_copy() 83 length = current_size - 5; in simple_file_copy() 96 length = current_size - 6; in simple_file_copy() 99 if (length < 0) in simple_file_copy() 100 length = 0; in simple_file_copy() 103 length, 0), length); in simple_file_copy() 106 TEST_COMPARE (inoff, 2 + length); in simple_file_copy() 110 TEST_COMPARE (xlseek (infd, 0, SEEK_CUR), 3 + length); in simple_file_copy() 113 TEST_COMPARE (outoff, 5 + length); in simple_file_copy() [all …]
|
/glibc-2.36/stdio-common/ |
D | tst-vfprintf-mbs-prec.c | 57 make_random_string (char **mbs, wchar_t **wide, size_t **length) in make_random_string() argument 94 *length = len_finalize (&len, NULL); in make_random_string() 95 TEST_VERIFY_EXIT (*length != NULL); in make_random_string() 358 test_mbs_long (const char *mbs, const wchar_t *wide, const size_t *length) in test_mbs_long() argument 365 > length[WIDE_STRING_LENGTH] + strlen (suffix)); in test_mbs_long() 370 TEST_VERIFY (ret == length[WIDE_STRING_LENGTH] + strlen (suffix)); in test_mbs_long() 371 TEST_VERIFY (memcmp (buf, mbs, length[WIDE_STRING_LENGTH]) == 0); in test_mbs_long() 372 TEST_VERIFY (strcmp (buf + length[WIDE_STRING_LENGTH], suffix) == 0); in test_mbs_long() 377 TEST_VERIFY (memcmp (buf, mbs, length[WIDE_STRING_LENGTH]) == 0); in test_mbs_long() 378 for (size_t i = length[WIDE_STRING_LENGTH]; i < 3500; ++i) in test_mbs_long() [all …]
|
/glibc-2.36/sysdeps/mach/hurd/ |
D | errnos.awk | 47 e = substr($1, 8, length($1)-8) 48 if (length(e) > maxerrlen) 49 maxerrlen = length(e); 58 errno = substr($2, 1, length($2)-1) + 0; 73 etext = substr(etext, 2, length(etext)-2); 105 if (length(e) > maxerrlen) 106 maxerrlen = length(e); 132 if (length(e) > maxerrlen) 133 maxerrlen = length(e); 136 etexts[seq] = substr(etext, 2, length(etext)-1);
|
/glibc-2.36/support/ |
D | resolv_test.c | 51 unsigned char length; member 59 size_t length; in allocate_compressed_name() local 69 length = p - encoded; in allocate_compressed_name() 70 ++length; /* For the terminating NUL byte. */ in allocate_compressed_name() 72 TEST_VERIFY_EXIT (length <= 255); in allocate_compressed_name() 75 = xmalloc (offsetof (struct compressed_name, name) + length); in allocate_compressed_name() 77 result->length = length; in allocate_compressed_name() 78 memcpy (result->name, encoded, length); in allocate_compressed_name() 101 if (crleft->length != crright->length) in compare_compressed_name() 103 return crleft->length - crright->length; in compare_compressed_name() [all …]
|
D | support_test_compare_blob.c | 27 report_length (const char *what, unsigned long int length, const char *expr) in report_length() argument 29 printf (" %s %lu bytes (from %s)\n", what, length, expr); in report_length() 34 unsigned long int length, const char *expr) in report_blob() argument 36 if (blob == NULL && length > 0) in report_blob() 38 else if (length > 0) in report_blob() 41 char *quoted = support_quote_blob (blob, length); in report_blob() 46 for (unsigned long i = 0; i < length; ++i) in report_blob()
|
D | support_test_compare_string_main.c | 28 report_length (const char *what, const CHAR *str, size_t length) in report_length() argument 33 printf (" %s string: %zu %s\n", what, length, in report_length() 39 size_t length, const char *expr) in report_string() argument 41 if (length > 0) in report_string() 44 char *quoted = SUPPORT_QUOTE_BLOB (blob, length); in report_string() 49 for (size_t i = 0; i < length; ++i) in report_string()
|
D | support_copy_file_range.c | 31 size_t length, unsigned int flags) in support_copy_file_range() argument 64 if (length > SSIZE_MAX) in support_copy_file_range() 65 length = SSIZE_MAX; in support_copy_file_range() 72 while (length > 0) in support_copy_file_range() 74 size_t to_read = length; in support_copy_file_range() 140 length -= read_count; in support_copy_file_range()
|
/glibc-2.36/sysdeps/generic/ |
D | unwind-dw2-fde.h | 128 uword length; member 137 uword length; member 155 return (fde *) ((char *) f + f->length + sizeof (f->length)); in next_fde() 164 return (char *)f == obj->fde_end || f->length == 0; in last_fde() 166 return f->length == 0; in last_fde()
|
/glibc-2.36/timezone/ |
D | tst-tzset.c | 179 size_t length = 64 * 1024 * 1024; in do_test() local 180 char *value = malloc (length + 1); in do_test() 186 value[length] = '\0'; in do_test() 188 memset (value, ' ', length); in do_test() 199 memset (value, '0', length); in do_test() 201 value[length - 1] = '>'; in do_test()
|
/glibc-2.36/posix/ |
D | tst-mmap-offset.c | 60 const unsigned long length = 0x10000; in do_test_bz18877() local 62 const unsigned long size = offset + length; in do_test_bz18877() 68 addr = mmap (NULL, length, prot, flags, fd, offset); in do_test_bz18877() 91 const size_t length = 4096; in do_test_large_offset() local 93 void *addr = mmap64 (NULL, length, prot, flags, fd, offset); in do_test_large_offset()
|