/glibc-2.36/misc/sys/ |
D | queue.h | 89 #define LIST_HEAD_INITIALIZER(head) \ argument 101 #define LIST_INIT(head) do { \ argument 102 (head)->lh_first = NULL; \ 120 #define LIST_INSERT_HEAD(head, elm, field) do { \ argument 121 if (((elm)->field.le_next = (head)->lh_first) != NULL) \ 122 (head)->lh_first->field.le_prev = &(elm)->field.le_next;\ 123 (head)->lh_first = (elm); \ 124 (elm)->field.le_prev = &(head)->lh_first; \ 134 #define LIST_FOREACH(var, head, field) \ argument 135 for ((var) = ((head)->lh_first); \ [all …]
|
/glibc-2.36/nscd/ |
D | mem.c | 119 assert (db->head->first_free % BLOCK_ALIGN == 0); in gc() 125 size_t stack_used = sizeof (bool) * db->head->module; in gc() 128 size_t nmark = (db->head->first_free / BLOCK_ALIGN + BITS - 1) / BITS; in gc() 144 memory_needed = 2 * db->head->nentries * sizeof (struct hashentry *); in gc() 158 he_data = &he[db->head->nentries]; in gc() 161 for (size_t idx = 0; idx < db->head->module; ++idx) in gc() 163 ref_t *prevp = &db->head->array[idx]; in gc() 168 assert (cnt < db->head->nentries); in gc() 191 assert (cnt == db->head->nentries); in gc() 215 db->head->first_free = 0; in gc() [all …]
|
D | cache.c | 76 unsigned long int hash = __nss_hash (key, len) % table->head->module; in cache_search() 81 ref_t work = table->head->array[hash]; in cache_search() 103 ++table->head->neghit; in cache_search() 106 ++table->head->poshit; in cache_search() 120 if (nsearched > table->head->maxnsearched) in cache_search() 121 table->head->maxnsearched = nsearched; in cache_search() 155 unsigned long int hash = __nss_hash (key, len) % table->head->module; in cache_add() 174 assert (newp->key + newp->len <= table->head->first_free); in cache_add() 181 newp->next = atomic_load_relaxed (&table->head->array[hash]); in cache_add() 182 while (!atomic_compare_exchange_weak_release (&table->head->array[hash], in cache_add() [all …]
|
D | connections.c | 360 struct database_pers_head *head = mem; in verify_persistent_db() local 361 struct database_pers_head head_copy = *head; in verify_persistent_db() 364 if (memcmp (head, readhead, sizeof (*head)) != 0) in verify_persistent_db() 368 if (head->version != DB_VERSION in verify_persistent_db() 369 || head->header_size != sizeof (*head) in verify_persistent_db() 372 || head->timestamp > now + 60 * 60 + 60 in verify_persistent_db() 373 || (head->gc_cycle & 1) in verify_persistent_db() 374 || head->module == 0 in verify_persistent_db() 375 || (size_t) head->module > INT32_MAX / sizeof (ref_t) in verify_persistent_db() 376 || (size_t) head->data_size > INT32_MAX - head->module * sizeof (ref_t) in verify_persistent_db() [all …]
|
D | nscd-client.h | 241 datahead_init_common (struct datahead *head, nscd_ssize_t allocsize, in datahead_init_common() argument 246 memset (head, 0, sizeof (*head)); in datahead_init_common() 248 head->allocsize = allocsize; in datahead_init_common() 249 head->recsize = recsize; in datahead_init_common() 250 head->usable = true; in datahead_init_common() 252 head->ttl = ttl; in datahead_init_common() 255 return head->timeout = time (NULL) + ttl; in datahead_init_common() 259 datahead_init_pos (struct datahead *head, nscd_ssize_t allocsize, in datahead_init_pos() argument 262 time_t ret = datahead_init_common (head, allocsize, recsize, ttl); in datahead_init_pos() 264 head->notfound = false; in datahead_init_pos() [all …]
|
D | nscd_helper.c | 249 __munmap ((void *) mapped->head, mapped->mapsize); in __nscd_unmap() 340 struct database_pers_head *head = mapping; in __nscd_get_mapping() local 342 if (__builtin_expect (head->version != DB_VERSION, 0) in __nscd_get_mapping() 343 || __builtin_expect (head->header_size != sizeof (*head), 0) in __nscd_get_mapping() 346 || __builtin_expect (head->module == 0, 0) in __nscd_get_mapping() 349 || __builtin_expect (! head->nscd_certainly_running in __nscd_get_mapping() 350 && (head->timestamp + MAPPING_TIMEOUT in __nscd_get_mapping() 358 size_t size = (sizeof (*head) + roundup (head->module * sizeof (ref_t), in __nscd_get_mapping() 360 + head->data_size); in __nscd_get_mapping() 371 newp->head = mapping; in __nscd_get_mapping() [all …]
|
D | nscd_stat.c | 133 if (dbs[cnt].head != NULL) in send_stats() 135 data.dbs[cnt].module = dbs[cnt].head->module; in send_stats() 136 data.dbs[cnt].poshit = dbs[cnt].head->poshit; in send_stats() 137 data.dbs[cnt].neghit = dbs[cnt].head->neghit; in send_stats() 138 data.dbs[cnt].posmiss = dbs[cnt].head->posmiss; in send_stats() 139 data.dbs[cnt].negmiss = dbs[cnt].head->negmiss; in send_stats() 140 data.dbs[cnt].nentries = dbs[cnt].head->nentries; in send_stats() 141 data.dbs[cnt].maxnentries = dbs[cnt].head->maxnentries; in send_stats() 142 data.dbs[cnt].datasize = dbs[cnt].head->data_size; in send_stats() 143 data.dbs[cnt].dataused = dbs[cnt].head->first_free; in send_stats() [all …]
|
D | netgroupcache.c | 63 struct datahead head; member 93 timeout = datahead_init_neg (&dataset->head, in do_notfound() 358 timeout = datahead_init_pos (&dataset->head, total + req->key_len, in addgetnetgrentX() 378 if (dataset->head.allocsize == dh->allocsize in addgetnetgrentX() 379 && dataset->head.recsize == dh->recsize in addgetnetgrentX() 386 dh->timeout = dataset->head.timeout; in addgetnetgrentX() 387 dh->ttl = dataset->head.ttl; in addgetnetgrentX() 418 writeall (fd, &dataset->resp, dataset->head.recsize); in addgetnetgrentX() 433 (void) cache_add (req->type, key_copy, req->key_len, &dataset->head, in addgetnetgrentX() 483 timeout = result->head.timeout; in addinnetgrX() [all …]
|
D | pwdcache.c | 88 struct datahead head; in cache_addpw() member 134 timeout = datahead_init_neg (&dataset->head, in cache_addpw() 156 &dataset->head, true, db, owner, he == NULL); in cache_addpw() 219 timeout = datahead_init_pos (&dataset->head, total + n, in cache_addpw() 257 if (dataset->head.allocsize == dh->allocsize in cache_addpw() 258 && dataset->head.recsize == dh->recsize in cache_addpw() 265 dh->timeout = dataset->head.timeout; in cache_addpw() 295 if (writeall (fd, &dataset->resp, dataset->head.recsize) in cache_addpw() 296 != dataset->head.recsize) in cache_addpw() 324 if (cache_add (GETPWBYUID, cp, key_offset, &dataset->head, true, in cache_addpw() [all …]
|
/glibc-2.36/include/ |
D | list.h | 41 list_add (list_t *newp, list_t *head) in list_add() argument 43 newp->next = head->next; in list_add() 44 newp->prev = head; in list_add() 45 head->next->prev = newp; in list_add() 47 head->next = newp; in list_add() 62 list_splice (list_t *add, list_t *head) in list_splice() argument 67 add->next->prev = head; in list_splice() 68 add->prev->next = head->next; in list_splice() 69 head->next->prev = add->prev; in list_splice() 70 head->next = add->next; in list_splice() [all …]
|
/glibc-2.36/locale/programs/ |
D | locarchive.c | 124 struct locarhead head; in create_archive() local 135 SET (head.magic, AR_MAGIC); in create_archive() 136 SET (head.serial, 0); in create_archive() 137 SET (head.namehash_offset, sizeof (struct locarhead)); in create_archive() 138 SET (head.namehash_used, 0); in create_archive() 139 SET (head.namehash_size, next_prime (INITIAL_NUM_NAMES)); in create_archive() 141 SET (head.string_offset, in create_archive() 142 (GET (head.namehash_offset) in create_archive() 143 + GET (head.namehash_size) * sizeof (struct namehashent))); in create_archive() 144 SET (head.string_used, 0); in create_archive() [all …]
|
D | locale.c | 641 struct locarhead *head; in write_archive_locales() local 651 if (fstat64 (fd, &st) < 0 || st.st_size < sizeof (*head)) in write_archive_locales() 659 head = (struct locarhead *) addr; in write_archive_locales() 660 if (head->namehash_offset + head->namehash_size > len in write_archive_locales() 661 || head->string_offset + head->string_size > len in write_archive_locales() 662 || head->locrectab_offset + head->locrectab_size > len in write_archive_locales() 663 || head->sumhash_offset + head->sumhash_size > len) in write_archive_locales() 666 namehashtab = (struct namehashent *) (addr + head->namehash_offset); in write_archive_locales() 669 for (cnt = 0; cnt < head->namehash_size; ++cnt) in write_archive_locales() 681 names = (struct nameent *) xmalloc (head->namehash_used in write_archive_locales() [all …]
|
/glibc-2.36/misc/ |
D | mntent_r.c | 120 char *head; in get_mnt_entry() local 147 head = buffer + strspn (buffer, " \t"); in get_mnt_entry() 150 while (head[0] == '\0' || head[0] == '#'); in get_mnt_entry() 152 cp = __strsep (&head, " \t"); in get_mnt_entry() 154 if (head) in get_mnt_entry() 155 head += strspn (head, " \t"); in get_mnt_entry() 156 cp = __strsep (&head, " \t"); in get_mnt_entry() 158 if (head) in get_mnt_entry() 159 head += strspn (head, " \t"); in get_mnt_entry() 160 cp = __strsep (&head, " \t"); in get_mnt_entry() [all …]
|
/glibc-2.36/malloc/ |
D | tst-malloc_info.c | 52 struct list *head = NULL; in allocation_thread_function() local 58 new_head->next = head; in allocation_thread_function() 59 head = new_head; in allocation_thread_function() 68 while (head != NULL) in allocation_thread_function() 70 struct list *next_head = head->next; in allocation_thread_function() 71 free (head); in allocation_thread_function() 72 head = next_head; in allocation_thread_function()
|
D | tst-dynarray-fail.c | 44 struct heap_filler *head = NULL; in fill_heap() local 59 new_head->next = head; in fill_heap() 60 head = new_head; in fill_heap() 62 return head; in fill_heap() 68 free_fill_heap (struct heap_filler *head) in free_fill_heap() argument 70 while (head != NULL) in free_fill_heap() 72 struct heap_filler *next = head->next; in free_fill_heap() 73 free (head); in free_fill_heap() 74 head = next; in free_fill_heap()
|
/glibc-2.36/localedata/unicode-gen/ |
D | gen_translit_circle.py | 42 head = tail = '' 45 head = head + line 54 return (head, tail) 56 def output_head(translit_file, unicode_version, head=''): argument 60 if ARGS.input_file and head: 61 translit_file.write(head) 149 output_head(TRANSLIT_FILE, ARGS.unicode_version, head=HEAD)
|
D | gen_translit_font.py | 42 head = tail = '' 45 head = head + line 54 return (head, tail) 56 def output_head(translit_file, unicode_version, head=''): argument 60 if ARGS.input_file and head: 61 translit_file.write(head) 155 output_head(TRANSLIT_FILE, ARGS.unicode_version, head=HEAD)
|
D | gen_translit_fraction.py | 42 head = tail = '' 45 head = head + line 54 return (head, tail) 56 def output_head(translit_file, unicode_version, head=''): argument 60 if ARGS.input_file and head: 61 translit_file.write(head) 196 output_head(TRANSLIT_FILE, ARGS.unicode_version, head=HEAD)
|
D | gen_translit_cjk_compat.py | 43 head = tail = '' 46 head = head + line 55 return (head, tail) 57 def output_head(translit_file, unicode_version, head=''): argument 61 if ARGS.input_file and head: 62 translit_file.write(head) 219 output_head(TRANSLIT_FILE, ARGS.unicode_version, head=HEAD)
|
D | gen_translit_combining.py | 42 head = tail = '' 45 head = head + line 54 return (head, tail) 56 def output_head(translit_file, unicode_version, head=''): argument 60 if ARGS.input_file and head: 61 translit_file.write(head) 443 output_head(TRANSLIT_FILE, ARGS.unicode_version, head=HEAD)
|
D | gen_translit_compat.py | 42 head = tail = '' 45 head = head + line 54 return (head, tail) 56 def output_head(translit_file, unicode_version, head=''): argument 60 if ARGS.input_file and head: 61 translit_file.write(head) 325 output_head(TRANSLIT_FILE, ARGS.unicode_version, head=HEAD)
|
D | gen_unicode_ctype.py | 135 head = tail = '' 144 head = head + line 153 return (head, tail) 155 def output_head(i18n_file, unicode_version, head=''): argument 159 if ARGS.input_file and head: 160 i18n_file.write(head) 321 output_head(I18N_FILE, ARGS.unicode_version, head=HEAD)
|
/glibc-2.36/hurd/ |
D | hurdmalloc.c | 130 header_t head; /* head of free list for this size */ member 159 malloc_free_list[i].head = NULL; in malloc_init() 189 HEADER_NEXT (h) = fl->head; in more_memory() 193 fl->head = h; in more_memory() 222 h = fl->head; in malloc() 229 h = fl->head; in malloc() 241 fl->head = HEADER_NEXT (h); in malloc() 300 HEADER_NEXT (h) = fl->head; in free() 304 fl->head = h; in free() 388 if (fl->in_use != 0 || fl->head != 0) { in print_malloc_free_list() [all …]
|
D | hurdselect.c | 387 mach_msg_header_t head; in _hurd_select() member 391 mach_msg_header_t head; in _hurd_select() member 397 mach_msg_header_t head; in _hurd_select() member 406 mach_msg_header_t head; in _hurd_select() member 412 mach_msg_header_t head; in _hurd_select() member 437 while ((msgerr = __mach_msg (&msg.head, in _hurd_select() 452 if (sigport != MACH_PORT_NULL && sigport == msg.head.msgh_local_port) in _hurd_select() 461 if (msg.head.msgh_id == reply_msgid in _hurd_select() 462 && msg.head.msgh_size >= sizeof msg.error in _hurd_select() 463 && !(msg.head.msgh_bits & MACH_MSGH_BITS_COMPLEX) in _hurd_select() [all …]
|
/glibc-2.36/io/ |
D | fts.c | 612 FTSENTRY *p, *head; in fts_build() local 722 for (head = tail = NULL, nitems = 0; dirp && (dp = __readdir(dirp));) { in fts_build() 738 fts_lfree(head); in fts_build() 762 fts_lfree(head); in fts_build() 811 if (head == NULL) in fts_build() 812 head = tail = p; in fts_build() 827 fts_padjust(sp, head); in fts_build() 852 fts_lfree(head); in fts_build() 860 fts_lfree(head); in fts_build() 866 head = fts_sort(sp, head, nitems); in fts_build() [all …]
|