Searched refs:new_buf (Results 1 – 6 of 6) sorted by relevance
| /freebsd-13.1/contrib/libarchive/libarchive/test/ |
| H A D | test_short_writes.c | 57 char *new_buf = realloc(checker->shortbuf, new_len); in short_write_callback() local 58 assert(new_buf != NULL); in short_write_callback() 60 checker->shortbuf = new_buf; in short_write_callback() 75 char *new_buf = realloc(checker->fullbuf, new_len); in full_write_callback() local 76 assert(new_buf != NULL); in full_write_callback() 78 checker->fullbuf = new_buf; in full_write_callback()
|
| /freebsd-13.1/cddl/contrib/opensolaris/lib/libdtrace/common/ |
| H A D | dt_buf.c | 98 uchar_t *new_buf; in dt_buf_write() local 106 if ((new_buf = dt_zalloc(dtp, new_len)) == NULL) { in dt_buf_write() 111 bcopy(bp->dbu_buf, new_buf, off); in dt_buf_write() 114 bp->dbu_buf = new_buf; in dt_buf_write() 115 bp->dbu_ptr = new_buf + off; in dt_buf_write()
|
| /freebsd-13.1/contrib/less/ |
| H A D | line.c | 147 char *new_buf = (char *) realloc(linebuf.buf, new_size); in expand_linebuf() local 150 char *new_buf = (char *) calloc(new_size, sizeof(char)); in expand_linebuf() local 153 if (new_buf == NULL || new_attr == NULL) in expand_linebuf() 157 if (new_buf != NULL) in expand_linebuf() 158 free(new_buf); in expand_linebuf() 165 memcpy(new_buf, linebuf.buf, size_linebuf * sizeof(char)); in expand_linebuf() 170 linebuf.buf = new_buf; in expand_linebuf()
|
| /freebsd-13.1/sys/ofed/drivers/infiniband/core/ |
| H A D | ib_mad_rmpp.c | 429 struct ib_mad_recv_buf *new_buf) in update_seg_num() argument 433 while (new_buf && (get_seg_num(new_buf) == rmpp_recv->seg_num + 1)) { in update_seg_num() 434 rmpp_recv->cur_seg_buf = new_buf; in update_seg_num() 436 new_buf = get_next_seg(rmpp_list, new_buf); in update_seg_num()
|
| /freebsd-13.1/usr.sbin/camdd/ |
| H A D | camdd.c | 3078 struct camdd_buf *new_buf; local 3093 new_buf = camdd_get_buf(dev, CAMDD_BUF_DATA); 3094 if (new_buf == NULL) { 3099 new_buf->lba = lba; 3100 new_buf->len = len; 3114 indirect->len = min(len_to_go, new_buf->len); 3126 camdd_buf_add_child(new_buf, idb); 3128 new_data = &new_buf->buf_type_spec.data; 3130 if ((new_data->fill_len == new_buf->len) 3133 new_buf, links); [all …]
|
| /freebsd-13.1/contrib/elftoolchain/readelf/ |
| H A D | readelf.c | 7084 uint8_t *buf, *new_buf; in hex_dump() local 7090 new_buf = NULL; in hex_dump() 7114 &new_buf, &sz)) in hex_dump() 7115 buf = new_buf; in hex_dump() 7140 free(new_buf); in hex_dump() 7149 unsigned char *start, *end, *buf_end, *new_buf; in str_dump() local 7155 new_buf = NULL; in str_dump() 7179 &new_buf, &sz)) in str_dump() 7180 start = new_buf; in str_dump() 7203 free(new_buf); in str_dump()
|