| /netbsd-src/usr.bin/crunch/crunchide/ |
| H A D | crunchide.c | 147 struct keep *newp, *prevp, *curp; in add_to_keep_list() local 159 newp = (struct keep *) malloc(sizeof(struct keep)); in add_to_keep_list() 160 if (newp) in add_to_keep_list() 161 newp->sym = strdup(symbol); in add_to_keep_list() 162 if (newp == NULL || newp->sym == NULL) { in add_to_keep_list() 167 newp->next = curp; in add_to_keep_list() 169 prevp->next = newp; in add_to_keep_list() 171 keep_list = newp; in add_to_keep_list()
|
| /netbsd-src/games/hunt/huntd/ |
| H A D | draw.c | 317 PLAYER *newp; in drawplayer() local 325 for (newp = Monitor; newp < End_monitor; newp++) in drawplayer() 326 check(newp, y, x); in drawplayer() 329 for (newp = Player; newp < End_player; newp++) { in drawplayer() 330 if (!draw || newp == pp) { in drawplayer() 331 check(newp, y, x); in drawplayer() 334 if (newp->p_scan == 0) { in drawplayer() 335 newp->p_scan--; in drawplayer() 336 showstat(newp); in drawplayer() 338 else if (newp->p_scan > 0) { in drawplayer() [all …]
|
| H A D | execute.c | 195 PLAYER *newp; in move_player() local 268 newp = play_at(y, x); in move_player() 269 checkdam(newp, pp, pp->p_ident, STABDAM, KNIFE); in move_player() 274 newp = play_at(y, x); in move_player() 275 message(newp, "Oooh, there's a short guy waving at you!"); in move_player() 286 for (newp = Boot; newp < &Boot[NBOOTS]; newp++) { in move_player() 287 if (newp->p_flying < 0) in move_player() 289 if (newp->p_y == y && newp->p_x == x) { in move_player() 290 newp->p_flying = -1; in move_player() 291 if (newp->p_undershot) in move_player() [all …]
|
| /netbsd-src/lib/libc/gen/ |
| H A D | sysctl.c | 75 const void *newp, size_t newlen) in sysctl() argument 82 newp, newlen)); in sysctl() 86 error = user_sysctl(name + 1, namelen - 1, oldp, &oldlen, newp, newlen); in sysctl() 107 const void *newp, size_t newlen) in user_sysctl() argument 255 node = newp; in user_sysctl() 280 node = newp; in user_sysctl() 323 if (newp != NULL || newlen != 0) in user_sysctl() 337 newp = &node->sysctl_idata; in user_sysctl() 340 newp = &node->sysctl_qdata; in user_sysctl() 347 newp = node->sysctl_data; in user_sysctl() [all …]
|
| /netbsd-src/external/gpl2/gettext/dist/gnulib-local/lib/ |
| H A D | fnmatch_loop.c.diff | 77 ! newp = (struct patternlist *) alloca (newpsize); \ 78 ! *((CHAR *) MEMPCPY (newp->str, startp, p - startp)) = L_('\0'); \ 79 newp->next = NULL; \ 80 *lastp = newp; \ 81 lastp = &newp->next 90 ! newp = (struct patternlist *) alloca (newpsize); \ 91 ! newp->malloced = 0; \ 95 ! newp = (struct patternlist *) malloc (newpsize); \ 96 ! if (!newp) \ 98 ! newp->malloced = 1; \ [all …]
|
| /netbsd-src/external/bsd/openldap/dist/libraries/libldap/ |
| H A D | fetch.c | 124 char *newp = ber_memrealloc( p, total + bytes + 1 ); in ldif_fetch_url() local 125 if( newp == NULL ) { in ldif_fetch_url() 130 p = newp; in ldif_fetch_url() 138 char *newp = ber_memrealloc( p, 1 ); in ldif_fetch_url() local 139 if( newp == NULL ) { in ldif_fetch_url() 143 p = newp; in ldif_fetch_url()
|
| /netbsd-src/sys/dev/ic/ |
| H A D | ath_netbsd.c | 124 if (error || newp == NULL) in ath_sysctl_slottime() 142 if (error || newp == NULL) in ath_sysctl_acktimeout() 160 if (error || newp == NULL) in ath_sysctl_ctstimeout() 178 if (error || newp == NULL) in ath_sysctl_softled() 207 if (error || newp == NULL) in ath_sysctl_rxantenna() 226 if (error || newp == NULL) in ath_sysctl_diversity() 248 if (error || newp == NULL) in ath_sysctl_diag() 266 if (error || newp == NULL) in ath_sysctl_tpscale() 286 if (error || newp == NULL) in ath_sysctl_tpc() 304 if (error || newp == NULL) in ath_sysctl_rfkill() [all …]
|
| /netbsd-src/external/gpl2/grep/dist/intl/ |
| H A D | dcigettext.c | 306 struct block_list *newp = (struct block_list *) malloc (sizeof (*newp)); \ 309 if (newp != NULL) { \ 310 newp->address = (addr); \ 311 newp->next = (list); \ 312 (list) = newp; \ 627 struct known_translation_t *newp; variable 629 newp = (struct known_translation_t *) 632 if (newp != NULL) 634 newp->domainname = 635 mempcpy (newp->msgid, msgid1, msgid_len); [all …]
|
| H A D | plural.y | 83 struct expression *newp; local 91 newp = (struct expression *) malloc (sizeof (*newp)); 92 if (newp != NULL) 94 newp->nargs = nargs; 95 newp->operation = op; 97 newp->val.args[i] = args[i]; 98 return newp;
|
| /netbsd-src/external/gpl2/gettext/dist/gettext-runtime/intl/ |
| H A D | plural.y | 68 struct expression *newp; in new_exp() local 76 newp = (struct expression *) malloc (sizeof (*newp)); in new_exp() 77 if (newp != NULL) in new_exp() 79 newp->nargs = nargs; in new_exp() 80 newp->operation = op; in new_exp() 82 newp->val.args[i] = args[i]; in new_exp() 83 return newp; in new_exp()
|
| H A D | dcigettext.c | 392 struct block_list *newp = (struct block_list *) malloc (sizeof (*newp)); \ 395 if (newp != NULL) { \ 396 newp->address = (addr); \ 397 newp->next = (list); \ 398 (list) = newp; \ 781 struct known_translation_t *newp; in gl_dcigettext() local 788 newp = (struct known_translation_t *) malloc (size); in gl_dcigettext() 789 if (newp != NULL) in gl_dcigettext() 796 new_domainname = mempcpy (newp->msgid, msgid1, msgid_len); in gl_dcigettext() 802 newp->domainname = new_domainname; in gl_dcigettext() [all …]
|
| /netbsd-src/external/gpl2/texinfo/dist/intl/ |
| H A D | plural.y | 68 struct expression *newp; in new_exp() local 76 newp = (struct expression *) malloc (sizeof (*newp)); in new_exp() 77 if (newp != NULL) in new_exp() 79 newp->nargs = nargs; in new_exp() 80 newp->operation = op; in new_exp() 82 newp->val.args[i] = args[i]; in new_exp() 83 return newp; in new_exp()
|
| H A D | dcigettext.c | 340 struct block_list *newp = (struct block_list *) malloc (sizeof (*newp)); \ 343 if (newp != NULL) { \ 344 newp->address = (addr); \ 345 newp->next = (list); \ 346 (list) = newp; \ 650 struct known_translation_t *newp; in DCIGETTEXT() local 652 newp = (struct known_translation_t *) in DCIGETTEXT() 655 if (newp != NULL) in DCIGETTEXT() 657 newp->domainname = in DCIGETTEXT() 658 mempcpy (newp->msgid, msgid1, msgid_len); in DCIGETTEXT() [all …]
|
| /netbsd-src/external/gpl2/gmake/dist/glob/ |
| H A D | glob.c | 550 char *newp; local 575 newp = (char *) __alloca (dirlen + 1); 577 *((char *) mempcpy (newp, pattern, dirlen)) = '\0'; 579 memcpy (newp, pattern, dirlen); 580 newp[dirlen] = '\0'; 582 dirname = newp; 701 char *newp; local 703 newp = (char *) __alloca (home_len + dirlen); 705 mempcpy (mempcpy (newp, home_dir, home_len), 708 memcpy (newp, home_dir, home_len); [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/intl/ |
| H A D | dcigettext.c | 338 struct block_list *newp = (struct block_list *) malloc (sizeof (*newp)); \ 341 if (newp != NULL) { \ 342 newp->address = (addr); \ 343 newp->next = (list); \ 344 (list) = newp; \ 653 struct known_translation_t *newp; variable 655 newp = (struct known_translation_t *) 658 if (newp != NULL) 660 newp->domainname = 661 mempcpy (newp->msgid, msgid1, msgid_len); [all …]
|
| H A D | plural.y | 91 struct expression *newp; local 99 newp = (struct expression *) malloc (sizeof (*newp)); 100 if (newp != NULL) 102 newp->nargs = nargs; 103 newp->operation = op; 105 newp->val.args[i] = args[i]; 106 return newp;
|
| /netbsd-src/external/gpl3/binutils.old/dist/intl/ |
| H A D | dcigettext.c | 338 struct block_list *newp = (struct block_list *) malloc (sizeof (*newp)); \ 341 if (newp != NULL) { \ 342 newp->address = (addr); \ 343 newp->next = (list); \ 344 (list) = newp; \ 653 struct known_translation_t *newp; variable 655 newp = (struct known_translation_t *) 658 if (newp != NULL) 660 newp->domainname = 661 mempcpy (newp->msgid, msgid1, msgid_len); [all …]
|
| H A D | plural.y | 91 struct expression *newp; local 99 newp = (struct expression *) malloc (sizeof (*newp)); 100 if (newp != NULL) 102 newp->nargs = nargs; 103 newp->operation = op; 105 newp->val.args[i] = args[i]; 106 return newp;
|
| /netbsd-src/external/gpl3/gcc/dist/intl/ |
| H A D | dcigettext.c | 338 struct block_list *newp = (struct block_list *) malloc (sizeof (*newp)); \ 341 if (newp != NULL) { \ 342 newp->address = (addr); \ 343 newp->next = (list); \ 344 (list) = newp; \ 653 struct known_translation_t *newp; variable 655 newp = (struct known_translation_t *) 658 if (newp != NULL) 660 newp->domainname = 661 mempcpy (newp->msgid, msgid1, msgid_len); [all …]
|
| H A D | plural.y | 91 struct expression *newp; local 99 newp = (struct expression *) malloc (sizeof (*newp)); 100 if (newp != NULL) 102 newp->nargs = nargs; 103 newp->operation = op; 105 newp->val.args[i] = args[i]; 106 return newp;
|
| /netbsd-src/external/gpl3/gdb.old/dist/intl/ |
| H A D | dcigettext.c | 338 struct block_list *newp = (struct block_list *) malloc (sizeof (*newp)); \ 341 if (newp != NULL) { \ 342 newp->address = (addr); \ 343 newp->next = (list); \ 344 (list) = newp; \ 653 struct known_translation_t *newp; variable 655 newp = (struct known_translation_t *) 658 if (newp != NULL) 660 newp->domainname = 661 mempcpy (newp->msgid, msgid1, msgid_len); [all …]
|
| /netbsd-src/crypto/external/bsd/netpgp/dist/src/libverify/ |
| H A D | pgpsum.c | 48 uint8_t *newp; in don_armor() local 55 for (newp = p ; doarmor == 'w' && newp > from ; --newp) { in don_armor() 56 if (*(newp - 1) != ' ' && *(newp - 1) != '\t') { in don_armor() 60 digest_update(hash, from, (size_t)(newp - from)); in don_armor()
|
| /netbsd-src/crypto/external/bsd/netpgp/dist/src/netpgpverify/ |
| H A D | pgpsum.c | 64 uint8_t *newp; in don_armor() local 71 for (newp = p ; doarmor == 'w' && newp > from ; --newp) { in don_armor() 72 if (*(newp - 1) != ' ' && *(newp - 1) != '\t') { in don_armor() 76 dash_escaped_update(hash, from, (size_t)(newp - from)); in don_armor()
|
| /netbsd-src/external/gpl3/binutils.old/dist/opcodes/ |
| H A D | m32c-asm.c | 582 const char *newp = *strp; in parse_unsigned_bitbase() local 586 errmsg = cgen_parse_unsigned_integer (cd, & newp, opindex, & bit); in parse_unsigned_bitbase() 590 if (*newp != ',') in parse_unsigned_bitbase() 593 ++newp; in parse_unsigned_bitbase() 595 if (strncmp (newp, "0x0", 3) == 0 in parse_unsigned_bitbase() 596 || (newp[0] == '0' && newp[1] != 'x')) in parse_unsigned_bitbase() 599 errmsg = cgen_parse_unsigned_integer (cd, & newp, opindex, & base); in parse_unsigned_bitbase() 617 if (strncmp (newp, "[sb]", 4) != 0) in parse_unsigned_bitbase() 624 *strp = newp; in parse_unsigned_bitbase() 636 const char *newp = *strp; in parse_signed_bitbase() local [all …]
|
| /netbsd-src/external/gpl3/gdb/dist/cpu/ |
| H A D | m32c.opc | 613 const char *newp = *strp; 617 errmsg = cgen_parse_unsigned_integer (cd, & newp, opindex, & bit); 621 if (*newp != ',') 624 ++newp; 626 if (strncmp (newp, "0x0", 3) == 0 627 || (newp[0] == '0' && newp[1] != 'x')) 630 errmsg = cgen_parse_unsigned_integer (cd, & newp, opindex, & base); 648 if (strncmp (newp, "[sb]", 4) != 0) 655 *strp = newp; 667 const char *newp = *strp; [all …]
|