/freebsd/usr.sbin/crunch/crunchide/ |
H A D | crunchide.c | 144 struct keep *newp, *prevp, *curp; in add_to_keep_list() local 155 newp = (struct keep *) malloc(sizeof(struct keep)); in add_to_keep_list() 156 if(newp) newp->sym = strdup(symbol); in add_to_keep_list() 157 if(newp == NULL || newp->sym == NULL) { in add_to_keep_list() 162 newp->next = curp; in add_to_keep_list() 163 if(prevp) prevp->next = newp; in add_to_keep_list() 164 else keep_list = newp; in add_to_keep_list()
|
/freebsd/contrib/ncurses/ncurses/tinfo/ |
H A D | doalloc.c | 48 void *newp; in _nc_doalloc() local 53 newp = NULL; in _nc_doalloc() 54 } else if ((newp = realloc(oldp, amount)) == 0) { in _nc_doalloc() 59 newp = malloc(amount); in _nc_doalloc() 61 return newp; in _nc_doalloc()
|
H A D | alloc_entry.c | 89 ENTRY *newp; in _nc_copy_entry() local 93 newp = typeCalloc(ENTRY, 1); in _nc_copy_entry() 94 if (newp != NULL) { in _nc_copy_entry() 95 *newp = *oldp; in _nc_copy_entry() 96 _nc_copy_termtype2(&(newp->tterm), &(oldp->tterm)); in _nc_copy_entry() 99 DEBUG(2, (T_RETURN("%p"), (void *) newp)); in _nc_copy_entry() 100 return (newp); in _nc_copy_entry()
|
H A D | comp_parse.c | 62 ENTRY *newp; in enqueue() local 66 newp = _nc_copy_entry(ep); in enqueue() 67 if (newp == 0) in enqueue() 70 newp->last = _nc_tail; in enqueue() 71 _nc_tail = newp; in enqueue() 73 newp->next = 0; in enqueue() 74 if (newp->last) in enqueue() 75 newp->last->next = newp; in enqueue()
|
/freebsd/contrib/jemalloc/src/ |
H A D | ctl.c | 51 void *oldp, size_t *oldlenp, void *newp, size_t newlen); 1293 void *newp, size_t newlen) { in ctl_byname() argument 1313 ret = node->ctl(tsd, mib, depth, oldp, oldlenp, newp, newlen); in ctl_byname() 1339 size_t *oldlenp, void *newp, size_t newlen) { in ctl_bymib() argument 1376 ret = node->ctl(tsd, mib, miblen, oldp, oldlenp, newp, newlen); in ctl_bymib() 1417 if (newp != NULL || newlen != 0) { \ 1431 if ((oldp != NULL && oldlenp != NULL) && (newp != NULL || \ 1452 if (newp != NULL) { \ 1457 (v) = *(t *)newp; \ 1476 size_t *oldlenp, void *newp, size_t newlen) { \ [all …]
|
/freebsd/contrib/jemalloc/include/jemalloc/internal/ |
H A D | ctl.h | 97 void *newp, size_t newlen); 101 size_t *oldlenp, void *newp, size_t newlen); 107 #define xmallctl(name, oldp, oldlenp, newp, newlen) do { \ argument 108 if (je_mallctl(name, oldp, oldlenp, newp, newlen) \ 125 #define xmallctlbymib(mib, miblen, oldp, oldlenp, newp, newlen) do { \ argument 126 if (je_mallctlbymib(mib, miblen, oldp, oldlenp, newp, \
|
/freebsd/lib/libc/gen/ |
H A D | sysctlbyname.c | 34 size_t *oldlenp, const void *newp, size_t newlen); 38 const void *newp, size_t newlen) in sysctlbyname() argument 45 return (__sysctlbyname(name, len, oldp, oldlenp, newp, in sysctlbyname() 51 return (sysctl(oid, (u_int)len, oldp, oldlenp, newp, in sysctlbyname()
|
H A D | sysctl.c | 43 size_t *oldlenp, const void *newp, size_t newlen); 66 const void *newp, size_t newlen) in sysctl() argument 72 retval = __sysctl(name, namelen, oldp, oldlenp, newp, newlen); in sysctl() 99 if (newp != NULL) { in sysctl()
|
H A D | fnmatch.c | 88 char *newp; in fnmatch1() local 167 switch (rangematch(pattern, sc, flags, &newp, in fnmatch1() 172 pattern = newp; in fnmatch1() 231 rangematch(const char *pattern, wchar_t test, int flags, char **newp, in rangematch() argument 304 *newp = (char *)pattern; in rangematch()
|
/freebsd/sys/libkern/ |
H A D | fnmatch.c | 57 char *newp; in fnmatch() local 121 switch (rangematch(pattern, *string, flags, &newp)) { in fnmatch() 125 pattern = newp; in fnmatch() 157 rangematch(const char *pattern, char test, int flags, char **newp) in rangematch() argument 211 *newp = (char *)(uintptr_t)pattern; in rangematch()
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pointers/ |
H A D | tst.VoidCast.d | 49 newp = (int *) p; 51 printf("array[0]: %d, newp: %d\n", array[0], *newp); 56 /234 != *newp/
|
/freebsd/sys/contrib/openzfs/cmd/zed/ |
H A D | zed_strings.c | 170 zed_strings_node_t *newp, *oldp; in zed_strings_add() local 179 newp = _zed_strings_node_create(key, s); in zed_strings_add() 180 if (!newp) in zed_strings_add() 183 oldp = avl_find(&zsp->tree, newp, NULL); in zed_strings_add() 188 avl_add(&zsp->tree, newp); in zed_strings_add()
|
/freebsd/libexec/rtld-elf/rtld-libc/ |
H A D | rtld_libc.c | 109 size_t *oldlenp, const void *newp, size_t newlen); 113 const void *newp, size_t newlen) in sysctl() argument 118 retval = __sys___sysctl(name, namelen, oldp, oldlenp, newp, newlen); in sysctl()
|
/freebsd/include/ |
H A D | malloc_np.h | 81 int mallctl(const char *name, void *oldp, size_t *oldlenp, void *newp, 85 size_t *oldlenp, void *newp, size_t newlen); 111 int __mallctl(const char *name, void *oldp, size_t *oldlenp, void *newp, 115 size_t *oldlenp, void *newp, size_t newlen);
|
/freebsd/tools/build/cross-build/ |
H A D | fake_sysctl.c | 46 const void *newp, size_t newlen) in __freebsd_sysctlbyname() argument 52 if (newp || newlen) in __freebsd_sysctlbyname()
|
/freebsd/sys/contrib/vchiq/interface/compat/ |
H A D | vchi_bsd.c | 480 VCHIQ_THREAD_T newp; in vchiq_thread_create() local 498 newp = NULL; in vchiq_thread_create() 499 if (kproc_create(kthread_wrapper, (void*)slot, &newp, 0, 0, in vchiq_thread_create() 502 newp = NULL; in vchiq_thread_create() 507 return newp; in vchiq_thread_create()
|
/freebsd/contrib/nvi/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()
|
/freebsd/contrib/tzcode/ |
H A D | zdump.c | 777 delta_nonneg(struct tm *newp, struct tm *oldp) in delta_nonneg() argument 780 int cycles = (newp->tm_year - oldy) / YEARSPERREPEAT; in delta_nonneg() 783 for ( ; tmy < newp->tm_year; ++tmy) in delta_nonneg() 785 result += newp->tm_yday - oldp->tm_yday; in delta_nonneg() 787 result += newp->tm_hour - oldp->tm_hour; in delta_nonneg() 789 result += newp->tm_min - oldp->tm_min; in delta_nonneg() 791 result += newp->tm_sec - oldp->tm_sec; in delta_nonneg() 796 delta(struct tm *newp, struct tm *oldp) in delta() argument 798 return (newp->tm_year < oldp->tm_year in delta() 799 ? -delta_nonneg(oldp, newp) in delta() [all...] |
/freebsd/sys/netinet/libalias/ |
H A D | alias_util.c | 152 DifferentialChecksum(u_short *cksum, void *newp, void *oldp, int n) in DifferentialChecksum() argument 156 u_short *new = newp; in DifferentialChecksum()
|
/freebsd/sys/dev/iicbus/sensor/ |
H A D | lm75.c | 553 int error, newp, pol; in lm75_pol_sysctl() local 570 newp = lm75_str_pol(buf); in lm75_pol_sysctl() 571 if (newp != -1 && pol != newp) { in lm75_pol_sysctl() 573 if (newp == 1) in lm75_pol_sysctl()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_netbsd.cpp | 308 uptr *oldlenp, const void *newp, uptr newlen) { in internal_sysctl() argument 310 return __sysctl(name, namelen, oldp, (size_t *)oldlenp, newp, (size_t)newlen); in internal_sysctl() 314 const void *newp, uptr newlen) { in internal_sysctlbyname() argument 317 return _REAL(sysctlbyname, sname, oldp, (size_t *)oldlenp, newp, in internal_sysctlbyname()
|
H A D | sanitizer_posix.h | 70 uptr *oldlenp, const void *newp, uptr newlen); 72 const void *newp, uptr newlen);
|
/freebsd/contrib/libxo/libxo/ |
H A D | libxo.c | 4869 xo_colors_update (xo_handle_t *xop UNUSED, xo_colors_t *newp UNUSED) in xo_colors_update() 4872 xo_color_t fg = newp->xoc_col_fg; in xo_colors_update() 4875 newp->xoc_col_fg = fg; in xo_colors_update() 4877 xo_color_t bg = newp->xoc_col_bg; in xo_colors_update() 4880 newp->xoc_col_bg = bg; in xo_colors_update() 4885 xo_colors_handle_text (xo_handle_t *xop, xo_colors_t *newp) in xo_colors_handle_text() argument 4908 if (oldp->xoc_effects != (newp->xoc_effects & oldp->xoc_effects)) { in xo_colors_handle_text() 4909 newp->xoc_effects |= XO_EFF_RESET; in xo_colors_handle_text() 4914 if ((newp->xoc_effects & bit) == (oldp->xoc_effects & bit)) in xo_colors_handle_text() 4930 xo_color_t fg = newp->xoc_col_fg; in xo_colors_handle_text() [all …]
|
/freebsd/contrib/nvi/common/ |
H A D | mem.h | 185 cast newp; \ 186 if ((newp = realloc(p, size)) == NULL) { \ 190 p = newp; \
|
/freebsd/usr.sbin/ctld/ |
H A D | ctld.c | 1608 portal_reuse_socket(struct portal *oldp, struct portal *newp) in portal_reuse_socket() argument 1612 if (strcmp(newp->p_listen, oldp->p_listen) != 0) in portal_reuse_socket() 1618 EV_SET(&kev, oldp->p_socket, EVFILT_READ, EV_ADD, 0, 0, newp); in portal_reuse_socket() 1622 newp->p_socket = oldp->p_socket; in portal_reuse_socket() 1733 struct portal *oldp, *newp; in conf_apply() local 1960 TAILQ_FOREACH(newp, &newpg->pg_portals, p_next) { in conf_apply() 1971 if (portal_reuse_socket(oldp, newp)) in conf_apply() 1976 if (newp->p_socket > 0) { in conf_apply() 1986 newp->p_id = newpg->pg_conf->conf_portal_id; in conf_apply() 1989 newp->p_listen, newpg->pg_name, newp->p_id); in conf_apply() [all …]
|