/glibc-2.36/nscd/ |
D | servicescache.c | 69 ssize_t total; in cache_addserv() local 98 total = 0; in cache_addserv() 104 total = sizeof (notfound); in cache_addserv() 107 && TEMP_FAILURE_RETRY (send (fd, ¬found, total, in cache_addserv() 108 MSG_NOSIGNAL)) != total) in cache_addserv() 124 + req->key_len), total, in cache_addserv() 128 memcpy (&dataset->resp, ¬found, total); in cache_addserv() 171 total = 0; in cache_addserv() 175 total += s_aliases_len[cnt]; in cache_addserv() 178 total += (offsetof (struct dataset, strdata) in cache_addserv() [all …]
|
D | initgrcache.c | 169 ssize_t total; in addinitgroupsX() local 177 total = sizeof (notfound); in addinitgroupsX() 196 && TEMP_FAILURE_RETRY (send (fd, ¬found, total, in addinitgroupsX() 197 MSG_NOSIGNAL)) != total) in addinitgroupsX() 213 + req->key_len), total, in addinitgroupsX() 217 memcpy (&dataset->resp, ¬found, total); in addinitgroupsX() 246 total = offsetof (struct dataset, strdata) + start * sizeof (int32_t); in addinitgroupsX() 256 dataset = (struct dataset *) mempool_alloc (db, total + req->key_len, in addinitgroupsX() 264 dataset = (struct dataset *) alloca (total + req->key_len); in addinitgroupsX() 270 timeout = datahead_init_pos (&dataset->head, total + req->key_len, in addinitgroupsX() [all …]
|
D | aicache.c | 94 ssize_t total = 0; in addhstaiX() local 155 total = sizeof (*dataset) + naddrs + addrslen + canonlen; in addhstaiX() 160 dataset = (struct dataset *) mempool_alloc (db, total in addhstaiX() 168 dataset = (struct dataset *) alloca (total + req->key_len); in addhstaiX() 326 total = sizeof (*dataset) + naddrs + addrslen + canonlen; in addhstaiX() 332 dataset = (struct dataset *) mempool_alloc (db, total in addhstaiX() 340 dataset = (struct dataset *) alloca (total + req->key_len); in addhstaiX() 362 timeout = datahead_init_pos (&dataset->head, total + req->key_len, in addhstaiX() 363 total - offsetof (struct dataset, resp), in addhstaiX() 380 assert (cp == (char *) dataset + total); in addhstaiX() [all …]
|
D | grpcache.c | 75 ssize_t total; in cache_addgr() local 104 total = 0; in cache_addgr() 110 total = sizeof (notfound); in cache_addgr() 113 && TEMP_FAILURE_RETRY (send (fd, ¬found, total, in cache_addgr() 114 MSG_NOSIGNAL)) != total) in cache_addgr() 129 + req->key_len), total, in cache_addgr() 133 memcpy (&dataset->resp, ¬found, total); in cache_addgr() 191 total = (offsetof (struct dataset, strdata) in cache_addgr() 209 dataset = (struct dataset *) mempool_alloc (db, total + n, 1); in cache_addgr() 220 if (! __libc_use_alloca (alloca_used + total + n)) in cache_addgr() [all …]
|
D | hstcache.c | 130 ssize_t total = sizeof (notfound); in cache_addhst() local 137 && TEMP_FAILURE_RETRY (send (fd, resp, total, in cache_addhst() 138 MSG_NOSIGNAL)) != total) in cache_addhst() 154 + req->key_len), total, in cache_addhst() 159 memcpy (&dataset->resp, resp, total); in cache_addhst() 197 ssize_t total; in cache_addhst() local 205 total = 0; in cache_addhst() 209 total += h_aliases_len[cnt]; in cache_addhst() 221 total += (sizeof (struct dataset) in cache_addhst() 239 dataset = (struct dataset *) mempool_alloc (db, total + req->key_len, in cache_addhst() [all …]
|
D | pwdcache.c | 81 ssize_t total; in cache_addpw() local 110 total = 0; in cache_addpw() 116 total = sizeof (notfound); in cache_addpw() 119 && TEMP_FAILURE_RETRY (send (fd, ¬found, total, in cache_addpw() 120 MSG_NOSIGNAL)) != total) in cache_addpw() 136 + req->key_len), total, in cache_addpw() 140 memcpy (&dataset->resp, ¬found, total); in cache_addpw() 185 total = (offsetof (struct dataset, strdata) in cache_addpw() 202 dataset = (struct dataset *) mempool_alloc (db, total + n, 1); in cache_addpw() 213 dataset = (struct dataset *) alloca (total + n); in cache_addpw() [all …]
|
D | netgroupcache.c | 79 ssize_t total; in do_notfound() local 83 total = sizeof (notfound); in do_notfound() 87 TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL)); in do_notfound() 95 total, db->negtimeout); in do_notfound() 98 memcpy (&dataset->resp, ¬found, total); in do_notfound() 107 *totalp = total; in do_notfound() 130 ssize_t total; in addgetnetgrentX() local 148 cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout, in addgetnetgrentX() 349 cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout, in addgetnetgrentX() 354 total = buffilled; in addgetnetgrentX() [all …]
|
D | nscd_getpw_r.c | 164 ssize_t total = p - buffer; in nscd_getpw_r() local 165 if (__glibc_unlikely (pw_name + total > recend)) in nscd_getpw_r() 167 if (__glibc_unlikely (buflen < total)) in nscd_getpw_r() 177 ssize_t nbytes = __readall (sock, buffer, total); in nscd_getpw_r() 179 if (__glibc_unlikely (nbytes != total)) in nscd_getpw_r() 191 memcpy (resultbuf->pw_name, pw_name, total); in nscd_getpw_r()
|
/glibc-2.36/resolv/ |
D | getaddrinfo_a.c | 42 volatile unsigned int total = 0; in __getaddrinfo_a() local 70 ++total; in __getaddrinfo_a() 79 if (total == 0) in __getaddrinfo_a() 103 total = 0; in __getaddrinfo_a() 111 waitlist[cnt].counterp = &total; in __getaddrinfo_a() 115 ++total; in __getaddrinfo_a() 123 while (total > 0) in __getaddrinfo_a() 127 GAI_MISC_WAIT (not_used, total, NULL, 1); in __getaddrinfo_a() 156 total = 0; in __getaddrinfo_a() 169 ++total; in __getaddrinfo_a() [all …]
|
/glibc-2.36/malloc/ |
D | memusagestat.c | 129 uint64_t total; in main() local 188 total = st.st_size / sizeof (struct entry) - 2; in main() 354 snprintf (buf, sizeof (buf), "%llu", (unsigned long long) total); in main() 369 for (cnt = 1; cnt <= total; ++cnt) in main() 381 40 + ((cnt - 1) * (xsize - 80)) / total, in main() 383 39 + (cnt * (xsize - 80)) / total, in main() 394 gdImageLine (im_out, 40 + ((xsize - 80) * (cnt - 1)) / total, in main() 396 40 + ((xsize - 80) * cnt) / total, new3, in main() 406 gdImageLine (im_out, 40 + ((xsize - 80) * (cnt - 1)) / total, in main() 407 last_heap, 40 + ((xsize - 80) * cnt) / total, in main() [all …]
|
D | memusage.c | 78 static size_t total[idx_last]; variable 367 catomic_add (&total[idx_malloc], len); in malloc() 437 catomic_add (&total[idx_realloc], len - old_len); in realloc() 447 catomic_add (&total[idx_free], real->length); in realloc() 513 catomic_add (&total[idx_calloc], size); in calloc() 582 catomic_add (&total[idx_free], real->length); in free() 619 catomic_add (&total[idx], len); in mmap() 672 catomic_add (&total[idx], len); in mmap64() 729 catomic_add (&total[idx_mremap], len - old_len); in mremap() 791 catomic_add (&total[idx_munmap], len); in munmap() [all …]
|
/glibc-2.36/sysdeps/posix/ |
D | libc_fatal.c | 42 writev_for_fatal (int fd, const struct iovec *iov, size_t niov, size_t total) in writev_for_fatal() argument 44 return TEMP_FAILURE_RETRY (__writev (fd, iov, niov)) == total; in writev_for_fatal() 114 ssize_t total = 0; in __libc_message() local 120 total += list->len; in __libc_message() 124 WRITEV_FOR_FATAL (fd, iov, nlist, total); in __libc_message() 128 total = ((total + 1 + GLRO(dl_pagesize) - 1) in __libc_message() 130 struct abort_msg_s *buf = __mmap (NULL, total, in __libc_message() 135 buf->size = total; in __libc_message()
|
/glibc-2.36/rt/ |
D | lio_listio-common.c | 80 volatile unsigned int total = 0; in lio_listio_internal() local 106 ++total; in lio_listio_internal() 115 if (total == 0) in lio_listio_internal() 138 total = 0; in lio_listio_internal() 150 waitlist[cnt].counterp = &total; in lio_listio_internal() 153 ++total; in lio_listio_internal() 158 AIO_MISC_WAIT (result, total, NULL, 0); in lio_listio_internal() 165 while (total > 0) in lio_listio_internal() 199 total = 0; in lio_listio_internal() 216 ++total; in lio_listio_internal() [all …]
|
/glibc-2.36/inet/ |
D | inet6_rth.c | 131 int total = in_rthdr0->ip6r0_len * 8 / sizeof (struct in6_addr); in inet6_rth_reverse() local 132 for (int i = 0; i < total / 2; ++i) in inet6_rth_reverse() 136 out_rthdr0->ip6r0_addr[i] = in_rthdr0->ip6r0_addr[total - 1 - i]; in inet6_rth_reverse() 137 out_rthdr0->ip6r0_addr[total - 1 - i] = temp; in inet6_rth_reverse() 139 if (total % 2 != 0 && in != out) in inet6_rth_reverse() 140 out_rthdr0->ip6r0_addr[total / 2] = in_rthdr0->ip6r0_addr[total / 2]; in inet6_rth_reverse() 142 out_rthdr0->ip6r0_segleft = total; in inet6_rth_reverse()
|
/glibc-2.36/sysdeps/mach/hurd/ |
D | clock.c | 32 clock_t total; in clock() local 47 total = bi.user_time.seconds * 1000000 + bi.user_time.microseconds; in clock() 48 total += tti.user_time.seconds * 1000000 + tti.user_time.microseconds; in clock() 49 total += bi.system_time.seconds * 1000000 + bi.system_time.microseconds; in clock() 50 total += tti.system_time.seconds * 1000000 + tti.system_time.microseconds; in clock() 52 return total; in clock()
|
/glibc-2.36/locale/ |
D | gen-translit.py | 105 total = 0 variable 107 if total > 0: 114 write("{:4}".format(total)) 115 total += len(translit.codepoints.decoded) + 1 143 total = 0 variable 145 if total > 0: 152 write("{:4}".format(total)) 153 total += len(translit.replacement.decoded) + 2
|
/glibc-2.36/assert/ |
D | assert.c | 56 int total; in __assert_fail_base() local 61 assertion, &total) >= 0) in __assert_fail_base() 67 total = (total + 1 + GLRO(dl_pagesize) - 1) & ~(GLRO(dl_pagesize) - 1); in __assert_fail_base() 68 struct abort_msg_s *buf = __mmap (NULL, total, PROT_READ | PROT_WRITE, in __assert_fail_base() 72 buf->size = total; in __assert_fail_base()
|
/glibc-2.36/crypt/ |
D | md5.c | 77 ctx->total[0] = ctx->total[1] = 0; in md5_init_ctx() 110 ctx->total[0] += bytes; in md5_finish_ctx() 111 if (ctx->total[0] < bytes) in md5_finish_ctx() 112 ++ctx->total[1]; in md5_finish_ctx() 118 ctx->buffer32[(bytes + pad) / 4] = SWAP (ctx->total[0] << 3); in md5_finish_ctx() 119 ctx->buffer32[(bytes + pad + 4) / 4] = SWAP ((ctx->total[1] << 3) in md5_finish_ctx() 120 | (ctx->total[0] >> 29)); in md5_finish_ctx()
|
D | sha512.c | 120 ctx->total[0] = ctx->total[1] = 0; in __sha512_init_ctx() 141 ctx->total[TOTAL128_low] += bytes; in __sha512_finish_ctx() 142 if (ctx->total[TOTAL128_low] < bytes) in __sha512_finish_ctx() 143 ++ctx->total[TOTAL128_high]; in __sha512_finish_ctx() 150 ctx->buffer64[(bytes + pad + 8) / 8] = SWAP (ctx->total[TOTAL128_low] << 3); in __sha512_finish_ctx() 151 ctx->buffer64[(bytes + pad) / 8] = SWAP ((ctx->total[TOTAL128_high] << 3) in __sha512_finish_ctx() 152 | (ctx->total[TOTAL128_low] >> 61)); in __sha512_finish_ctx()
|
/glibc-2.36/support/ |
D | support-open-dev-null-range.c | 63 size_t total; member 71 r->total = 8; in range_init() 73 r->ranges = xmalloc (r->total * sizeof (struct range)); in range_init() 79 if (r->used == r->total) in range_add() 81 r->total *= 2; in range_add() 82 r->ranges = xrealloc (r->ranges, r->total * sizeof (struct range)); in range_add()
|
/glibc-2.36/debug/ |
D | backtracesyms.c | 41 size_t total = 0; in __backtrace_symbols() local 53 total += (strlen (info[cnt].dli_fname ?: "") in __backtrace_symbols() 64 total += 5 + WORD_WIDTH; in __backtrace_symbols() 68 result = (char **) malloc (size * sizeof (char *) + total); in __backtrace_symbols() 114 assert (last <= (char *) result + size * sizeof (char *) + total); in __backtrace_symbols()
|
/glibc-2.36/elf/ |
D | dl-hwcaps.c | 196 size_t total = (hwcaps_counts.count * (strlen (GLIBC_HWCAPS_PREFIX) + 1) in _dl_important_hwcaps() local 233 total += temp[0].len + 1; in _dl_important_hwcaps() 236 total += temp[0].len + temp[cnt - 1].len + 2; in _dl_important_hwcaps() 239 total <<= 1; in _dl_important_hwcaps() 241 total += temp[n].len + 1; in _dl_important_hwcaps() 244 || total + (sizeof (*result) << 3) in _dl_important_hwcaps() 249 total <<= cnt - 3; in _dl_important_hwcaps() 259 = malloc (*sz * sizeof (*result) + total); in _dl_important_hwcaps()
|
/glibc-2.36/grp/ |
D | initgroups.c | 156 int total = internal_getgrouplist (user, group, &size, &newgroups, -1); in getgrouplist() local 158 memcpy (groups, newgroups, MIN (*ngroups, total) * sizeof (gid_t)); in getgrouplist() 162 int retval = total > *ngroups ? -1 : total; in getgrouplist() 163 *ngroups = total; in getgrouplist()
|
/glibc-2.36/hurd/ |
D | xattr.c | 176 size_t total = 0; in _hurd_xattr_list() local 180 total += len; in _hurd_xattr_list() 181 if (bufp != NULL && total <= *size) in _hurd_xattr_list() 196 if (buffer != NULL && total > *size) in _hurd_xattr_list() 198 *size = total; in _hurd_xattr_list()
|
/glibc-2.36/nptl/ |
D | tst-signal3.c | 211 int total = 0; in do_test() local 217 total += received[i][j]; in do_test() 227 if (total != ROUNDS) in do_test() 230 total, ROUNDS); in do_test() 234 printf ("A total of %d signals sent and received\n", total); in do_test()
|