/glibc-2.36/sysdeps/unix/sysv/linux/ |
D | timer_create.c | 78 struct timer *newp = malloc (sizeof (struct timer)); in ___timer_create() local 79 if (newp == NULL) in ___timer_create() 83 newp->sival = evp->sigev_value; in ___timer_create() 84 newp->thrfunc = evp->sigev_notify_function; in ___timer_create() 89 __pthread_attr_init (&newp->attr); in ___timer_create() 95 nattr = (struct pthread_attr *) &newp->attr; in ___timer_create() 107 __pthread_attr_setdetachstate (&newp->attr, PTHREAD_CREATE_DETACHED); in ___timer_create() 111 { .sigev_value.sival_ptr = newp, in ___timer_create() 119 &newp->ktimerid); in ___timer_create() 122 free (newp); in ___timer_create() [all …]
|
/glibc-2.36/resolv/ |
D | gai_misc.c | 223 struct requestlist *newp; in __gai_enqueue_request() local 230 newp = get_elem (); in __gai_enqueue_request() 231 if (newp == NULL) in __gai_enqueue_request() 237 newp->running = 0; in __gai_enqueue_request() 238 newp->gaicbp = gaicbp; in __gai_enqueue_request() 239 newp->waiting = NULL; in __gai_enqueue_request() 240 newp->next = NULL; in __gai_enqueue_request() 244 requests = requests_tail = newp; in __gai_enqueue_request() 247 requests_tail->next = newp; in __gai_enqueue_request() 248 requests_tail = newp; in __gai_enqueue_request() [all …]
|
/glibc-2.36/rt/ |
D | aio_misc.c | 315 struct requestlist *last, *runp, *newp; in __aio_enqueue_request() local 352 newp = get_elem (); in __aio_enqueue_request() 353 if (newp == NULL) in __aio_enqueue_request() 359 newp->aiocbp = aiocbp; in __aio_enqueue_request() 360 newp->waiting = NULL; in __aio_enqueue_request() 389 newp->next_prio = runp->next_prio; in __aio_enqueue_request() 390 runp->next_prio = newp; in __aio_enqueue_request() 400 newp->last_fd = NULL; in __aio_enqueue_request() 401 newp->next_fd = requests; in __aio_enqueue_request() 403 requests->last_fd = newp; in __aio_enqueue_request() [all …]
|
/glibc-2.36/elf/ |
D | dl-deps.c | 247 struct list *newp; in _dl_map_object_deps() local 249 newp = alloca (sizeof (struct list)); in _dl_map_object_deps() 252 newp->map = dep; in _dl_map_object_deps() 253 newp->done = 0; in _dl_map_object_deps() 254 newp->next = NULL; in _dl_map_object_deps() 255 tail->next = newp; in _dl_map_object_deps() 256 tail = newp; in _dl_map_object_deps() 268 struct list *newp; in _dl_map_object_deps() local 311 newp = alloca (sizeof (struct list)); in _dl_map_object_deps() 317 memcpy (newp, orig, sizeof (*newp)); in _dl_map_object_deps() [all …]
|
D | dl-reloc.c | 270 struct textrels *newp; in _dl_relocate_object() local 272 newp = (struct textrels *) alloca (sizeof (*newp)); in _dl_relocate_object() 273 newp->len = ALIGN_UP (ph->p_vaddr + ph->p_memsz, GLRO(dl_pagesize)) in _dl_relocate_object() 275 newp->start = PTR_ALIGN_DOWN (ph->p_vaddr, GLRO(dl_pagesize)) in _dl_relocate_object() 278 newp->prot = 0; in _dl_relocate_object() 280 newp->prot |= PROT_READ; in _dl_relocate_object() 282 newp->prot |= PROT_WRITE; in _dl_relocate_object() 284 newp->prot |= PROT_EXEC; in _dl_relocate_object() 286 if (__mprotect (newp->start, newp->len, newp->prot|PROT_WRITE) < 0) in _dl_relocate_object() 293 newp->next = textrels; in _dl_relocate_object() [all …]
|
/glibc-2.36/iconv/ |
D | iconvconfig.c | 420 struct alias *newp; in new_alias() local 423 newp = (struct alias *) xmalloc (sizeof (struct alias) + fromlen + tolen); in new_alias() 425 newp->fromname = mempcpy (newp->toname, toname, tolen); in new_alias() 426 memcpy (newp->fromname, fromname, fromlen); in new_alias() 427 newp->module = NULL; in new_alias() 429 inserted = (void **) tsearch (newp, &aliases, alias_compare); in new_alias() 432 if (*inserted != newp) in new_alias() 434 free (newp); in new_alias() 437 newp->froment = strtabadd (strtab, newp->fromname, fromlen); in new_alias() 438 newp->toent = strtabadd (strtab, newp->toname, tolen); in new_alias() [all …]
|
D | gconv_conf.c | 184 insert_module (struct gconv_module *newp, int tobefreed) in insert_module() argument 193 cmpres = strcmp (newp->from_string, root->from_string); in insert_module() 198 while (strcmp (newp->from_string, root->from_string) != 0 in insert_module() 199 || strcmp (newp->to_string, root->to_string) != 0) in insert_module() 211 if (newp->cost_hi < root->cost_hi in insert_module() 212 || (newp->cost_hi == root->cost_hi in insert_module() 213 && newp->cost_lo < root->cost_lo)) in insert_module() 215 newp->left = root->left; in insert_module() 216 newp->right = root->right; in insert_module() 217 newp->same = root->same; in insert_module() [all …]
|
/glibc-2.36/sysdeps/pthread/ |
D | sem_routines.c | 102 struct inuse_sem *newp; in __sem_check_add_mapping() local 104 newp = (struct inuse_sem *) malloc (sizeof (*newp) + namelen); in __sem_check_add_mapping() 105 if (newp != NULL) in __sem_check_add_mapping() 113 newp->dev = st.st_dev; in __sem_check_add_mapping() 114 newp->ino = st.st_ino; in __sem_check_add_mapping() 115 newp->refcnt = 1; in __sem_check_add_mapping() 116 newp->sem = existing; in __sem_check_add_mapping() 117 memcpy (newp->name, name, namelen); in __sem_check_add_mapping() 121 && __tsearch (newp, &sem_mappings, sem_search) != NULL) in __sem_check_add_mapping() 127 free (newp); in __sem_check_add_mapping()
|
/glibc-2.36/locale/programs/ |
D | charmap.c | 946 struct charseq *newp; in charmap_new_char() local 952 newp = (struct charseq *) obstack_alloc (ob, sizeof (*newp) + nbytes); in charmap_new_char() 953 newp->nbytes = nbytes; in charmap_new_char() 954 memcpy (newp->bytes, bytes, nbytes); in charmap_new_char() 955 newp->name = from; in charmap_new_char() 957 newp->ucs4 = UNINITIALIZED_CHAR_VALUE; in charmap_new_char() 974 newp->ucs4 = strtoul (from + 1, &endp, 16); in charmap_new_char() 976 || (newp->ucs4 == ~((uint32_t) 0) && errno == ERANGE) in charmap_new_char() 977 || newp->ucs4 >= 0x80000000) in charmap_new_char() 980 newp->ucs4 = UNINITIALIZED_CHAR_VALUE; in charmap_new_char() [all …]
|
D | ld-collate.c | 319 struct section_list *newp; in make_seclist_elem() local 321 newp = (struct section_list *) obstack_alloc (&collate->mempool, in make_seclist_elem() 322 sizeof (*newp)); in make_seclist_elem() 323 newp->next = next; in make_seclist_elem() 324 newp->name = string; in make_seclist_elem() 325 newp->first = NULL; in make_seclist_elem() 326 newp->last = NULL; in make_seclist_elem() 328 return newp; in make_seclist_elem() 337 struct element_t *newp; in new_element() local 339 newp = (struct element_t *) obstack_alloc (&collate->mempool, in new_element() [all …]
|
/glibc-2.36/nscd/ |
D | cache.c | 156 struct hashentry *newp; in cache_add() local 158 newp = mempool_alloc (table, sizeof (struct hashentry), 0); in cache_add() 160 if (newp == NULL) in cache_add() 170 newp->type = type; in cache_add() 171 newp->first = first; in cache_add() 172 newp->len = len; in cache_add() 173 newp->key = (char *) key - table->data; in cache_add() 174 assert (newp->key + newp->len <= table->head->first_free); in cache_add() 175 newp->owner = owner; in cache_add() 176 newp->packet = (char *) packet - table->data; in cache_add() [all …]
|
D | nscd_helper.c | 366 struct mapped_database *newp = malloc (sizeof (*newp)); in __nscd_get_mapping() local 367 if (newp == NULL) in __nscd_get_mapping() 371 newp->head = mapping; in __nscd_get_mapping() 372 newp->data = ((char *) mapping + head->header_size in __nscd_get_mapping() 374 newp->mapsize = size; in __nscd_get_mapping() 375 newp->datasize = head->data_size; in __nscd_get_mapping() 377 newp->counter = 1; in __nscd_get_mapping() 379 result = newp; in __nscd_get_mapping()
|
/glibc-2.36/stdio-common/ |
D | reg-modifier.c | 77 struct printf_modifier_record *newp = malloc (sizeof (*newp) in __register_printf_modifier() local 80 if (newp == NULL) in __register_printf_modifier() 83 newp->next = __printf_modifier_table[(unsigned char) *str]; in __register_printf_modifier() 84 newp->bit = 1 << next_bit++; in __register_printf_modifier() 85 __wmemcpy (newp->str, str + 1, wc - str); in __register_printf_modifier() 87 __printf_modifier_table[(unsigned char) *str] = newp; in __register_printf_modifier() 89 result = newp->bit; in __register_printf_modifier()
|
/glibc-2.36/posix/ |
D | register-atfork.c | 44 struct fork_handler *newp = fork_handler_list_emplace (&fork_handlers); in __register_atfork() local 45 if (newp != NULL) in __register_atfork() 47 newp->prepare_handler = prepare; in __register_atfork() 48 newp->parent_handler = parent; in __register_atfork() 49 newp->child_handler = child; in __register_atfork() 50 newp->dso_handle = dso_handle; in __register_atfork() 57 newp->id = ++fork_handler_counter; in __register_atfork() 63 return newp == NULL ? ENOMEM : 0; in __register_atfork()
|
D | glob.c | 539 char *newp; in __glob() local 561 newp = alloca_account (dirlen + 1, alloca_used); in __glob() 564 newp = malloc (dirlen + 1); in __glob() 565 if (newp == NULL) in __glob() 569 *((char *) mempcpy (newp, pattern, dirlen)) = '\0'; in __glob() 570 dirname = newp; in __glob() 716 char *newp; in __glob() local 720 newp = alloca_account (home_len + dirlen, alloca_used); in __glob() 723 newp = malloc (home_len + dirlen); in __glob() 724 if (newp == NULL) in __glob() [all …]
|
/glibc-2.36/inet/ |
D | ruserpass.c | 161 char *newp; in ruserpass() local 162 newp = malloc((unsigned) strlen(tokval) + 1); in ruserpass() 163 if (newp == NULL) in ruserpass() 168 *aname = strcpy(newp, tokval); in ruserpass() 184 char *newp; in ruserpass() local 185 newp = malloc((unsigned) strlen(tokval) + 1); in ruserpass() 186 if (newp == NULL) in ruserpass() 191 *apass = strcpy(newp, tokval); in ruserpass()
|
/glibc-2.36/support/ |
D | temp_file.c | 57 struct temp_name_list *newp in add_temp_file_internal() local 58 = (struct temp_name_list *) xcalloc (sizeof (*newp), 1); in add_temp_file_internal() 62 newp->name = newname; in add_temp_file_internal() 63 newp->next = temp_name_list; in add_temp_file_internal() 64 newp->owner = getpid (); in add_temp_file_internal() 65 newp->toolong = toolong; in add_temp_file_internal() 66 temp_name_list = newp; in add_temp_file_internal() 69 free (newp); in add_temp_file_internal()
|
/glibc-2.36/catgets/ |
D | gencat.c | 684 struct message_list *newp; in read_input_file() local 774 newp = (struct message_list *) xmalloc (sizeof (*newp)); in read_input_file() 775 newp->number = message_number; in read_input_file() 776 newp->message = line + ident_len; in read_input_file() 778 newp->symbol = ident ? line : NULL; in read_input_file() 780 newp->fname = fname; in read_input_file() 781 newp->line = start_line; in read_input_file() 788 newp->next = current->current_set->messages; in read_input_file() 789 current->current_set->messages = newp; in read_input_file() 800 newp->next = runp->next; in read_input_file() [all …]
|
/glibc-2.36/intl/ |
D | plural.y | 72 struct expression *newp; 80 newp = (struct expression *) malloc (sizeof (*newp)); 81 if (newp != NULL) 83 newp->nargs = nargs; 84 newp->operation = op; 86 newp->val.args[i] = args[i]; 87 return newp;
|
D | dcigettext.c | 387 struct block_list *newp = (struct block_list *) malloc (sizeof (*newp)); \ 390 if (newp != NULL) { \ 391 newp->address = (addr); \ 392 newp->next = (list); \ 393 (list) = newp; \ 756 struct known_translation_t *newp; in gl_dcigettext() local 764 newp = (struct known_translation_t *) malloc (size); in gl_dcigettext() 765 if (newp != NULL) in gl_dcigettext() 773 (char *) mempcpy (newp->msgid.appended, msgid1, in gl_dcigettext() 780 newp->domainname = new_domainname; in gl_dcigettext() [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()
|
/glibc-2.36/sysdeps/posix/ |
D | libc_fatal.c | 103 struct str_list *newp = alloca (sizeof (struct str_list)); in __libc_message() local 104 newp->str = str; in __libc_message() 105 newp->len = len; in __libc_message() 106 newp->next = list; in __libc_message() 107 list = newp; in __libc_message()
|
/glibc-2.36/nss/ |
D | makedb.c | 332 struct db_option *newp; in parse_opt() local 349 newp = xmalloc (sizeof (*newp)); in parse_opt() 350 newp->dbid = arg[0]; in parse_opt() 351 newp->next = db_options; in parse_opt() 352 db_options = newp; in parse_opt() 542 struct dbentry *newp = xmalloc (sizeof (struct dbentry) + keylen); in process_input() local 543 newp->validx = nentry->idx; in process_input() 544 newp->hashval = __hash_string (key); in process_input() 545 memcpy (newp->str, key, keylen); in process_input() 547 struct dbentry **found = tsearch (newp, &last_database->entries, in process_input() [all …]
|
/glibc-2.36/localedata/ |
D | xfrm-test.c | 76 char saved, *word, *newp; in main() local 118 newp = malloc (needed + 1); in main() 119 if (newp == NULL) in main() 124 strxfrm (newp, word, needed + 1); in main() 125 strings[nstrings].xfrm = newp; in main()
|
/glibc-2.36/locale/ |
D | loadarchive.c | 347 struct archmapped *newp; in _nl_load_locale_from_archive() local 423 newp = (struct archmapped *) malloc (sizeof (struct archmapped)); in _nl_load_locale_from_archive() 424 if (newp == NULL) in _nl_load_locale_from_archive() 431 newp->ptr = addr; in _nl_load_locale_from_archive() 432 newp->from = from; in _nl_load_locale_from_archive() 433 newp->len = to - from; in _nl_load_locale_from_archive() 435 newp->next = mapped; in _nl_load_locale_from_archive() 436 last->next = newp; in _nl_load_locale_from_archive() 437 last = newp; in _nl_load_locale_from_archive()
|