/dragonfly/games/hunt/huntd/ |
H A D | draw.c | 278 PLAYER *newp; in drawplayer() local 288 for (newp = Monitor; newp < End_monitor; newp++) in drawplayer() 289 check(newp, y, x); in drawplayer() 292 for (newp = Player; newp < End_player; newp++) { in drawplayer() 295 check(newp, y, x); in drawplayer() 298 if (newp == pp) { in drawplayer() 300 check(newp, y, x); in drawplayer() 306 newp->p_scan--; in drawplayer() 307 showstat(newp); in drawplayer() 312 check(newp, y, x); in drawplayer() [all …]
|
H A D | execute.c | 199 PLAYER *newp; in move_player() local 280 newp = play_at(y, x); in move_player() 281 checkdam(newp, pp, pp->p_ident, conf_stabdam, KNIFE); in move_player() 286 newp = play_at(y, x); in move_player() 287 message(newp, "Oooh, there's a short guy waving at you!"); in move_player() 296 for (newp = Boot; newp < &Boot[NBOOTS]; newp++) { in move_player() 297 if (newp->p_flying < 0) in move_player() 299 if (newp->p_y == y && newp->p_x == x) { in move_player() 300 newp->p_flying = -1; in move_player() 301 if (newp->p_undershot) in move_player() [all …]
|
/dragonfly/usr.bin/calendar/ |
H A D | utils.c | 156 struct node *newp; in list_newnode() local 158 newp = xcalloc(1, sizeof(*newp)); in list_newnode() 159 newp->name = name; in list_newnode() 160 newp->data = data; in list_newnode() 162 return newp; in list_newnode() 169 list_addfront(struct node *listp, struct node *newp) in list_addfront() argument 171 newp->next = listp; in list_addfront() 172 return newp; in list_addfront()
|
H A D | utils.h | 264 struct node * list_addfront(struct node *listp, struct node *newp);
|
/dragonfly/usr.bin/crunch/crunchide/ |
H A D | crunchide.c | 140 struct keep *newp, *prevp, *curp; in add_to_keep_list() local 151 newp = (struct keep *) malloc(sizeof(struct keep)); in add_to_keep_list() 152 if(newp) newp->sym = strdup(symbol); in add_to_keep_list() 153 if(newp == NULL || newp->sym == NULL) { in add_to_keep_list() 158 newp->next = curp; in add_to_keep_list() 159 if(prevp) prevp->next = newp; in add_to_keep_list() 160 else keep_list = newp; in add_to_keep_list()
|
/dragonfly/contrib/ncurses/ncurses/tinfo/ |
H A D | doalloc.c | 48 void *newp; in NCURSES_EXPORT() local 51 if ((newp = realloc(oldp, amount)) == 0) { in NCURSES_EXPORT() 56 newp = malloc(amount); in NCURSES_EXPORT() 58 return newp; in NCURSES_EXPORT()
|
H A D | alloc_entry.c | 85 ENTRY *newp = typeCalloc(ENTRY, 1); in _nc_copy_entry() local 87 if (newp != 0) { in _nc_copy_entry() 88 *newp = *oldp; in _nc_copy_entry() 89 _nc_copy_termtype2(&(newp->tterm), &(oldp->tterm)); in _nc_copy_entry() 91 return newp; in _nc_copy_entry()
|
H A D | comp_parse.c | 62 ENTRY *newp = _nc_copy_entry(ep); in enqueue() local 64 if (newp == 0) in enqueue() 67 newp->last = _nc_tail; in enqueue() 68 _nc_tail = newp; in enqueue() 70 newp->next = 0; in enqueue() 71 if (newp->last) in enqueue() 72 newp->last->next = newp; in enqueue()
|
/dragonfly/sys/libkern/ |
H A D | fnmatch.c | 59 char *newp; in _kfnmatch() local 129 switch (rangematch(pattern, *string, flags, &newp)) { in _kfnmatch() 133 pattern = newp; in _kfnmatch() 167 rangematch(const char *pattern, char test, int flags, char **newp) in rangematch() argument 222 *newp = (char *)(uintptr_t)pattern; in rangematch()
|
/dragonfly/lib/libc/gen/ |
H A D | sysctl.c | 44 size_t *oldlenp, const void *newp, size_t newlen); 48 const void *newp, size_t newlen) in sysctl() argument 54 retval = __sysctl(name, namelen, oldp, oldlenp, newp, newlen); in sysctl() 68 if (newp != NULL) { in sysctl()
|
H A D | fnmatch.c | 88 char *newp; in fnmatch1() local 173 switch (rangematch(pattern, sc, flags, &newp, in fnmatch1() 178 pattern = newp; in fnmatch1() 211 rangematch(const char *pattern, wchar_t test, int flags, char **newp, in rangematch() argument 284 *newp = (char *)pattern; in rangematch()
|
H A D | sysctlbyname.c | 17 const void *newp, size_t newlen) in sysctlbyname() argument 25 return (sysctl(real_oid, oidlen, oldp, oldlenp, newp, newlen)); in sysctlbyname()
|
/dragonfly/contrib/cvs-1.12/lib/ |
H A D | glob.c | 456 char *newp; local 476 newp = __alloca (dirlen + 1); 478 dirname = newp; 600 char *newp; local 602 newp = __alloca (home_len + dirlen); 605 dirname = newp; 619 char *newp; local 620 newp = __alloca (end_name - dirname); 623 user_name = newp; 669 char *newp; local [all …]
|
/dragonfly/contrib/binutils-2.34/libctf/ |
H A D | ctf-util.c | 30 ctf_list_append (ctf_list_t *lp, void *newp) in ctf_list_append() argument 33 ctf_list_t *q = newp; /* q = new list element. */ in ctf_list_append() 49 ctf_list_prepend (ctf_list_t * lp, void *newp) in ctf_list_prepend() argument 51 ctf_list_t *p = newp; /* p = new list element. */ in ctf_list_prepend()
|
/dragonfly/usr.sbin/zic/ |
H A D | zdump.c | 135 static intmax_t delta(struct tm * newp, struct tm * oldp) __pure; 482 delta(struct tm *newp, struct tm *oldp) in delta() argument 487 if (newp->tm_year < oldp->tm_year) in delta() 488 return -delta(oldp, newp); in delta() 490 for (tmy = oldp->tm_year; tmy < newp->tm_year; ++tmy) in delta() 492 result += newp->tm_yday - oldp->tm_yday; in delta() 494 result += newp->tm_hour - oldp->tm_hour; in delta() 496 result += newp->tm_min - oldp->tm_min; in delta() 498 result += newp->tm_sec - oldp->tm_sec; in delta()
|
/dragonfly/contrib/dhcpcd/src/ |
H A D | privsep-bsd.c | 193 void *newp; in ps_root_dosysctl() local 230 newp = newlen ? p : NULL; in ps_root_dosysctl() 248 err = sysctl(name, namelen, oldp, oldlenp, newp, newlen); in ps_root_dosysctl() 372 void *oldp, size_t *oldlenp, const void *newp, size_t newlen) in ps_root_sysctl() argument 399 memcpy(p, newp, newlen); in ps_root_sysctl()
|
/dragonfly/contrib/nvi2/cl/ |
H A D | cl_funcs.c | 673 cl_split(SCR *origp, SCR *newp) in cl_split() argument 685 newp->cl_private = subwin(stdscr, newp->rows, newp->cols, in cl_split() 686 newp->roff, newp->coff); in cl_split()
|
/dragonfly/contrib/nvi2/common/ |
H A D | mem.h | 185 cast newp; \ 186 if ((newp = realloc(p, size)) == NULL) { \ 190 p = newp; \
|
/dragonfly/contrib/gdb-7/gdb/gnulib/import/ |
H A D | fnmatch_loop.c | 1077 struct patternlist *newp; \ in EXT() 1091 newp = (struct patternlist *) alloca (newpsize); \ in EXT() 1092 *((CHAR *) MEMPCPY (newp->str, startp, p - startp)) = L_('\0'); \ in EXT() 1093 newp->next = NULL; \ in EXT() 1094 *lastp = newp; \ in EXT() 1095 lastp = &newp->next in EXT()
|
/dragonfly/sbin/fsck_hammer2/ |
H A D | test.c | 1063 struct blockref_msg *newp, *p; in __add_pfs_blockref() local 1065 newp = calloc(1, sizeof(*newp)); in __add_pfs_blockref() 1066 newp->bref = *bref; in __add_pfs_blockref() 1067 newp->msg = calloc(1, sizeof(*ipdata)); in __add_pfs_blockref() 1068 memcpy(newp->msg, ipdata, sizeof(*ipdata)); in __add_pfs_blockref() 1072 char *f1 = get_inode_filename(newp->msg); in __add_pfs_blockref() 1075 TAILQ_INSERT_BEFORE(p, newp, entry); in __add_pfs_blockref() 1085 TAILQ_INSERT_TAIL(blist, newp, entry); in __add_pfs_blockref()
|
/dragonfly/contrib/diffutils/lib/ |
H A D | fnmatch_loop.c | 1077 struct patternlist *newp; \ in EXT() 1091 newp = (struct patternlist *) alloca (newpsize); \ in EXT() 1092 *((CHAR *) MEMPCPY (newp->str, startp, p - startp)) = L_('\0'); \ in EXT() 1093 newp->next = NULL; \ in EXT() 1094 *lastp = newp; \ in EXT() 1095 lastp = &newp->next in EXT()
|
/dragonfly/lib/libc/db/hash/ |
H A D | page.h | 85 BUFHEAD *newp; member
|
/dragonfly/contrib/binutils-2.34/ld/ |
H A D | ldelf.c | 753 char *newp = NULL; in ldelf_parse_ld_so_conf_include() local 763 newp = xmalloc (p - filename + 1 + patlen); in ldelf_parse_ld_so_conf_include() 764 memcpy (newp, filename, p - filename + 1); in ldelf_parse_ld_so_conf_include() 765 memcpy (newp + (p - filename + 1), pattern, patlen); in ldelf_parse_ld_so_conf_include() 766 pattern = newp; in ldelf_parse_ld_so_conf_include() 783 if (newp) in ldelf_parse_ld_so_conf_include() 784 free (newp); in ldelf_parse_ld_so_conf_include()
|
/dragonfly/sys/netproto/smb/ |
H A D | smb_iod.c | 689 struct proc *newp = NULL; in smb_iod_create() local 704 error = kthread_create_compat(smb_iod_thread, iod, &newp, in smb_iod_create() 712 iod->iod_td = ONLY_LWP_IN_PROC(newp)->lwp_thread; in smb_iod_create()
|
/dragonfly/contrib/gdb-7/bfd/ |
H A D | archive.c | 1422 char *newp; in adjust_relative_path() local 1498 newp = pathbuf; in adjust_relative_path() 1502 strcpy (newp, "../"); in adjust_relative_path() 1503 newp += 3; in adjust_relative_path() 1507 sprintf (newp, "%s/%s", down, pathp); in adjust_relative_path() 1509 strcpy (newp, pathp); in adjust_relative_path()
|