Home
last modified time | relevance | path

Searched refs:new_buf (Results 1 – 8 of 8) sorted by relevance

/freebsd-12-stable/contrib/libarchive/libarchive/test/
Dtest_short_writes.c57 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-12-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
Ddt_buf.c98 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-12-stable/contrib/less/
Dline.c149 char *new_buf = (char *) realloc(linebuf.buf, new_size); in expand_linebuf() local
152 char *new_buf = (char *) calloc(new_size, sizeof(char)); in expand_linebuf() local
155 if (new_buf == NULL || new_attr == NULL) in expand_linebuf()
159 if (new_buf != NULL) in expand_linebuf()
160 free(new_buf); in expand_linebuf()
167 memcpy(new_buf, linebuf.buf, size_linebuf * sizeof(char)); in expand_linebuf()
172 linebuf.buf = new_buf; in expand_linebuf()
/freebsd-12-stable/sys/ofed/drivers/infiniband/core/
Dib_mad_rmpp.c429 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-12-stable/usr.sbin/camdd/
Dcamdd.c2937 struct camdd_buf *new_buf; local
2952 new_buf = camdd_get_buf(dev, CAMDD_BUF_DATA);
2953 if (new_buf == NULL) {
2958 new_buf->lba = lba;
2959 new_buf->len = len;
2973 indirect->len = min(len_to_go, new_buf->len);
2985 camdd_buf_add_child(new_buf, idb);
2987 new_data = &new_buf->buf_type_spec.data;
2989 if ((new_data->fill_len == new_buf->len)
2992 new_buf, links);
[all …]
/freebsd-12-stable/contrib/binutils/gas/
Dread.c1004 char *new_buf; in read_a_source_file() local
1069 new_buf = (char *) xmalloc (new_length); in read_a_source_file()
1070 new_tmp = new_buf; in read_a_source_file()
1076 space = (new_buf + new_length) - new_tmp; in read_a_source_file()
1085 new_buf = xrealloc (new_buf, new_length + 100); in read_a_source_file()
1086 new_tmp = new_buf + new_length; in read_a_source_file()
1100 sb_add_string (&sbuf, new_buf); in read_a_source_file()
1104 free (new_buf); in read_a_source_file()
/freebsd-12-stable/contrib/gcc/
Dprotoize.c2775 char *new_buf = xrealloc (repl_text_base, new_size); in output_bytes() local
2777 repl_write_ptr = new_buf + (repl_write_ptr - repl_text_base); in output_bytes()
2778 repl_text_base = new_buf; in output_bytes()
2779 repl_text_limit = new_buf + new_size; in output_bytes()
/freebsd-12-stable/contrib/elftoolchain/readelf/
Dreadelf.c7009 uint8_t *buf, *new_buf; in hex_dump() local
7015 new_buf = NULL; in hex_dump()
7039 &new_buf, &sz)) in hex_dump()
7040 buf = new_buf; in hex_dump()
7065 free(new_buf); in hex_dump()
7074 unsigned char *start, *end, *buf_end, *new_buf; in str_dump() local
7080 new_buf = NULL; in str_dump()
7104 &new_buf, &sz)) in str_dump()
7105 start = new_buf; in str_dump()
7128 free(new_buf); in str_dump()