Home
last modified time | relevance | path

Searched refs:newptr (Results 1 – 16 of 16) sorted by relevance

/titanic_41/usr/src/cmd/sendmail/libsm/
H A Dheap.c149 void *newptr; local
152 newptr = realloc(ptr, MALLOC_SIZE(size));
154 return newptr;
176 void *newptr; local
179 newptr = realloc(ptr, MALLOC_SIZE(size));
181 if (newptr == NULL)
183 return newptr;
529 void *newptr; local
535 newptr = realloc(ptr, MALLOC_SIZE(size));
537 return newptr;
[all …]
/titanic_41/usr/src/lib/libmapmalloc/common/
H A Dtextmem.c161 void *newptr; in realloc() local
165 newptr = malloc_unlocked(size); in realloc()
167 return (newptr); in realloc()
187 newptr = malloc_unlocked(size); in realloc()
188 (void) memcpy(newptr, ptr, osize); in realloc()
192 return (newptr); in realloc()
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/profile/
H A Dprof_parse.c467 char *newptr; in add_data_to_buffer() local
470 newptr = realloc(b->base, newsize); in add_data_to_buffer()
471 if (newptr == NULL) { in add_data_to_buffer()
475 b->base = newptr; in add_data_to_buffer()
499 char *newptr = realloc(prof_buf.base, prof_buf.cur); in profile_write_tree_to_buffer() local
500 if (newptr) in profile_write_tree_to_buffer()
501 prof_buf.base = newptr; in profile_write_tree_to_buffer()
/titanic_41/usr/src/cmd/sgs/rtld/common/
H A Dmalloc.c235 void * newptr; in realloc() local
263 if ((newptr = malloc(size)) == NULL) in realloc()
265 (void) memcpy(newptr, ptr, osize); in realloc()
281 return (newptr); in realloc()
/titanic_41/usr/src/cmd/audio/utilities/
H A DAudioList.cc43 newptr(obj); in AudioListEntry()
50 newptr(0); in ~AudioListEntry()
61 newptr( in newptr() function in AudioList::AudioListEntry
99 newptr(e1); in split()
/titanic_41/usr/src/lib/libmalloc/common/
H A Dmalloc.c741 char *newptr; /* pointer to user's new block */ in realloc_unlocked() local
762 newptr = malloc_unlocked(size, 0); in realloc_unlocked()
763 if (newptr == NULL) in realloc_unlocked()
766 if ((char *)ptr != newptr) { in realloc_unlocked()
772 (void) memcpy(newptr, ptr, cpysize); in realloc_unlocked()
824 newptr = ptr; in realloc_unlocked()
828 newptr = malloc_unlocked(size, 0); in realloc_unlocked()
829 if (newptr == NULL) in realloc_unlocked()
831 (void) memcpy(newptr, ptr, cpysize); in realloc_unlocked()
835 return (newptr); in realloc_unlocked()
/titanic_41/usr/src/cmd/sendmail/src/
H A Dmci.c1134 char *newptr; variable
1166 newptr = newpath + strlen(newpath);
1167 *newptr++ = '/';
1168 len = sizeof(newpath) - (newptr - newpath);
1185 if (sm_strlcpy(newptr, e->d_name, len) >= len)
1190 *newptr = '\0';
1227 *--newptr = '\0';
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DmDNS.c2942 mDNSu8 *newptr; in SendDelayedUnicastResponse() local
2951 newptr = PutResourceRecord(&m->omsg, responseptr, &m->omsg.h.numAnswers, &rr->resrec); in SendDelayedUnicastResponse()
2953 if (!newptr && m->omsg.h.numAnswers) break; // If packet full, send it now in SendDelayedUnicastResponse()
2954 if (newptr) responseptr = newptr; in SendDelayedUnicastResponse()
2968 newptr = PutResourceRecord(&m->omsg, responseptr, &m->omsg.h.numAdditionals, &rr->resrec); in SendDelayedUnicastResponse()
2971 if (newptr) responseptr = newptr; in SendDelayedUnicastResponse()
2972 if (newptr && m->omsg.h.numAnswers) rr->RequireGoodbye = mDNStrue; in SendDelayedUnicastResponse()
3165 mDNSu8 *newptr; in SendResponses() local
3181 newptr = PutResourceRecordTTL(&m->omsg, responseptr, &m->omsg.h.numAnswers, &rr->resrec, 0); in SendResponses()
3182 if (!newptr && m->omsg.h.numAnswers) break; in SendResponses()
[all …]
/titanic_41/usr/src/lib/libprtdiag_psr/sparc/schumacher/common/
H A Dschumacher.c979 append_to_bank_list(bank_list_t *newptr) in append_to_bank_list() argument
984 mem_banks = newptr; in append_to_bank_list()
991 ptr->next = newptr; in append_to_bank_list()
1049 bank_list_t *newptr; in membank_callback() local
1069 newptr = malloc(sizeof (*newptr)); in membank_callback()
1070 if (newptr == NULL) in membank_callback()
1073 newptr->nodeh = bankh; in membank_callback()
1074 newptr->iway_count = 0; in membank_callback()
1075 newptr->next = NULL; in membank_callback()
1076 append_to_bank_list(newptr); in membank_callback()
[all …]
/titanic_41/usr/src/cmd/audio/include/
H A DAudioList.h55 void newptr(Audio* newa); // Reset extent
/titanic_41/usr/src/lib/libprtdiag_psr/sparc/desktop/common/
H A Dpicldiag.c1071 append_to_bank_list(bank_list_t *newptr) in append_to_bank_list() argument
1076 mem_banks = newptr; in append_to_bank_list()
1083 ptr->next = newptr; in append_to_bank_list()
1141 bank_list_t *newptr; in membank_callback() local
1161 newptr = malloc(sizeof (*newptr)); in membank_callback()
1162 if (newptr == NULL) in membank_callback()
1165 newptr->nodeh = bankh; in membank_callback()
1166 newptr->iway_count = 0; in membank_callback()
1167 newptr->next = NULL; in membank_callback()
1168 append_to_bank_list(newptr); in membank_callback()
[all …]
/titanic_41/usr/src/lib/libprtdiag_psr/sparc/lw8/common/
H A Dlw8.c1101 append_to_bank_list(bank_list_t *newptr) in append_to_bank_list() argument
1106 mem_banks = newptr; in append_to_bank_list()
1113 ptr->next = newptr; in append_to_bank_list()
1171 bank_list_t *newptr; in membank_callback() local
1191 newptr = malloc(sizeof (*newptr)); in membank_callback()
1192 if (newptr == NULL) in membank_callback()
1195 newptr->nodeh = bankh; in membank_callback()
1196 newptr->iway_count = 0; in membank_callback()
1197 newptr->next = NULL; in membank_callback()
1198 append_to_bank_list(newptr); in membank_callback()
[all …]
/titanic_41/usr/src/common/bignum/
H A Dbignumimpl.c418 BIG_CHUNK_TYPE *newptr; in big_copy() local
428 newptr = (BIG_CHUNK_TYPE *)big_realloc(dest->value, in big_copy()
432 newptr = (BIG_CHUNK_TYPE *) in big_copy()
434 if (newptr != NULL) { in big_copy()
438 if (newptr == NULL) { in big_copy()
441 dest->value = newptr; in big_copy()
462 BIG_CHUNK_TYPE *newptr; in big_extend() local
472 newptr = big_malloc(BIGNUM_WORDSIZE * size); in big_extend()
473 if (newptr != NULL) { in big_extend()
475 newptr[i] = number->value[i]; in big_extend()
[all …]
/titanic_41/usr/src/lib/krb5/kdb/
H A Dkdb_convert.c743 void *newptr; in ulog_conv_2dbentry() local
746 newptr = realloc(kp->key_data_contents[cnt], in ulog_conv_2dbentry()
748 if (newptr == NULL) in ulog_conv_2dbentry()
750 kp->key_data_contents[cnt] = newptr; in ulog_conv_2dbentry()
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dlocaladdr.c251 void *newptr; in grow_or_free() local
252 newptr = realloc (ptr, newsize); in grow_or_free()
253 if (newptr == NULL && newsize != 0) { in grow_or_free()
257 return newptr; in grow_or_free()
/titanic_41/usr/src/uts/common/io/
H A Dbscv.c3407 bscv_event_validate(bscv_soft_state_t *ssp, uint32_t newptr, uint8_t unread) in bscv_event_validate() argument
3418 if ((newptr < ssp->eventlog_start) || in bscv_event_validate()
3419 (newptr >= (ssp->eventlog_start + ssp->eventlog_size))) { in bscv_event_validate()
3429 if (newptr < oldptr) { in bscv_event_validate()
3435 newptr += ssp->eventlog_size; in bscv_event_validate()
3440 } else if ((unread == 0) && (newptr == oldptr)) { in bscv_event_validate()
3443 } else if (oldptr + (unread * sizeof (lom_event_t)) == newptr) { in bscv_event_validate()
3446 } else if (oldptr + (unread * sizeof (lom_event_t)) > newptr) { in bscv_event_validate()
3457 count = (newptr - oldptr) / sizeof (lom_event_t); in bscv_event_validate()
3465 count = (newptr - oldptr) / sizeof (lom_event_t); in bscv_event_validate()