| /netbsd/src/usr.bin/crunch/crunchide/ |
| 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/ |
| 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 …]
|
| 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/ |
| 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 …]
|
| D | sysctlbyname.c | 57 const void *newp, size_t newlen) in __weak_alias() 65 rc = sysctl(&name[0], namelen, oldp, oldlenp, newp, newlen); in __weak_alias()
|
| /netbsd/src/external/bsd/openldap/dist/libraries/libldap/ |
| 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/ |
| 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/gpl3/gcc/dist/intl/ |
| 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 …]
|
| 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;
|
| D | plural.c | 109 struct expression *newp; local 117 newp = (struct expression *) malloc (sizeof (*newp)); 118 if (newp != NULL) 120 newp->nargs = nargs; 121 newp->operation = op; 123 newp->val.args[i] = args[i]; 124 return newp;
|
| /netbsd/src/crypto/external/bsd/netpgp/dist/src/libverify/ |
| 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/ |
| 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/gdb/dist/opcodes/ |
| 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/ |
| 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 …]
|
| /netbsd/src/external/gpl3/binutils/dist/cpu/ |
| 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 …]
|
| /netbsd/src/external/gpl3/binutils/dist/opcodes/ |
| 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/gpl2/xcvs/dist/lib/ |
| D | glob.c | 459 char *newp; local 479 newp = __alloca (dirlen + 1); 480 *((char *) mempcpy (newp, pattern, dirlen)) = '\0'; 481 dirname = newp; 603 char *newp; local 605 newp = __alloca (home_len + dirlen); 606 mempcpy (mempcpy (newp, home_dir, home_len), 608 dirname = newp; 622 char *newp; local 623 newp = __alloca (end_name - dirname); [all …]
|
| /netbsd/src/sys/kern/ |
| D | kern_sysctl.c | 429 if (newp == NULL) { in sysctl_dispatch() 437 if (newp == NULL) { in sysctl_dispatch() 462 newp, newlen, name, l, rnode); in sysctl_dispatch() 637 error = sysctl_cvt_in(l, &v, newp, newlen, &qnode); in sysctl_query() 775 if (newp == NULL) in _sysctl_create() 777 error = sysctl_cvt_in(l, &v, newp, newlen, &nnode); in _sysctl_create() 1234 if (newp == NULL) in sysctl_create() 1236 int error = sysctl_cvt_in(l, &v, newp, newlen, &nnode); in sysctl_create() 1317 if (newp == NULL) in sysctl_destroy() 1319 error = sysctl_cvt_in(l, &v, newp, newlen, &nnode); in sysctl_destroy() [all …]
|
| D | subr_iostat.c | 88 iostati_getnames(int disk_only, char *oldp, size_t *oldlenp, const void *newp, 331 return iostati_getnames(1, oldp, oldlenp, newp, namelen); in sysctl_hw_disknames() 338 return iostati_getnames(0, oldp, oldlenp, newp, namelen); in sysctl_hw_iostatnames() 342 iostati_getnames(int disk_only, char *oldp, size_t *oldlenp, const void *newp, in iostati_getnames() argument 351 if (newp != NULL) in iostati_getnames() 408 if (newp != NULL) in sysctl_hw_iostats()
|
| D | init_sysctl.c | 710 if (error || newp == NULL) in sysctl_kern_maxvnodes() 773 if (error || newp == NULL) in sysctl_kern_messages() 833 if (error || newp == NULL) in sysctl_kern_rtc_offset() 866 if (error || newp == NULL) in sysctl_kern_maxproc() 901 if (error || newp == NULL) in sysctl_kern_hostid() 926 if (error || newp == NULL) { in sysctl_kern_defcorename() 1044 if (error || newp == NULL) in sysctl_kern_maxptys() 1077 if (newp != NULL || namelen != 3) in sysctl_kern_lwp() 1226 if (error || newp == NULL) in sysctl_kern_forkfsleep() 1321 if (error || newp == NULL) in sysctl_security_setidcore() [all …]
|
| /netbsd/src/sys/dev/pci/ixgbe/ |
| D | if_bypass.c | 180 if ((error != 0) || (newp == NULL)) in ixgbe_bp_set_state() 243 if ((error) || (newp == NULL)) in ixgbe_bp_timeout() 287 if ((error) || (newp == NULL)) in ixgbe_bp_main_on() 331 if ((error) || (newp == NULL)) in ixgbe_bp_main_off() 375 if ((error) || (newp == NULL)) in ixgbe_bp_aux_on() 419 if ((error) || (newp == NULL)) in ixgbe_bp_aux_off() 475 if ((error) || (newp == NULL)) in ixgbe_bp_wd_set() 535 if ((error) || (newp == NULL)) in ixgbe_bp_wd_reset() 587 if ((error) || (newp == NULL)) in ixgbe_bp_log()
|
| /netbsd/src/sys/compat/netbsd32/ |
| D | netbsd32_sysctl.c | 206 void *newp, *oldp; in netbsd32___sysctl() local 213 newp = SCARG_P32(uap, newv); in netbsd32___sysctl() 239 sysctl_lock(newp != NULL); in netbsd32___sysctl() 245 newp, SCARG(uap, newlen), in netbsd32___sysctl()
|
| /netbsd/src/external/bsd/ppp/dist/pppd/ |
| D | main.c | 1417 struct callout *newp, *p, **pp; in ppp_timeout() local 1422 if ((newp = (struct callout *) malloc(sizeof(struct callout))) == NULL) in ppp_timeout() 1424 newp->c_arg = arg; in ppp_timeout() 1425 newp->c_func = func; in ppp_timeout() 1427 newp->c_time.tv_sec = timenow.tv_sec + secs; in ppp_timeout() 1428 newp->c_time.tv_usec = timenow.tv_usec + usecs; in ppp_timeout() 1429 if (newp->c_time.tv_usec >= 1000000) { in ppp_timeout() 1430 newp->c_time.tv_sec += newp->c_time.tv_usec / 1000000; in ppp_timeout() 1431 newp->c_time.tv_usec %= 1000000; in ppp_timeout() 1438 if (newp->c_time.tv_sec < p->c_time.tv_sec in ppp_timeout() [all …]
|
| /netbsd/src/lib/libc/time/ |
| D | zdump.c | 764 delta_nonneg(struct tm *newp, struct tm *oldp) argument 767 int cycles = (newp->tm_year - oldy) / YEARSPERREPEAT; 770 for ( ; tmy < newp->tm_year; ++tmy) 772 result += newp->tm_yday - oldp->tm_yday; 774 result += newp->tm_hour - oldp->tm_hour; 776 result += newp->tm_min - oldp->tm_min; 778 result += newp->tm_sec - oldp->tm_sec; 783 delta(struct tm *newp, struct tm *oldp) argument 785 return (newp->tm_year < oldp->tm_year 786 ? -delta_nonneg(oldp, newp) [all …]
|
| /netbsd/src/external/bsd/nvi/dist/cl/ |
| D | cl_funcs.c | 750 cl_split(SCR *origp, SCR *newp) in cl_split() argument 762 newp->cl_private = subwin(stdscr, newp->rows, newp->cols, in cl_split() 763 newp->roff, newp->coff); in cl_split()
|