/netbsd-current/external/bsd/flex/dist/tests/ |
H A D | yyextra.l | 96 struct Buffer *buf, *new_buf; 103 new_buf = malloc(sizeof(struct Buffer)); 104 new_buf->max_len = buf->max_len + buf->grow_len; 105 new_buf->grow_len = buf->grow_len; 106 new_buf->data = malloc((size_t) new_buf->max_len); 107 for( new_buf->curr_len = 0; 108 new_buf->curr_len < buf->curr_len; 109 new_buf->curr_len++ ) 111 new_buf [all...] |
/netbsd-current/lib/libform/ |
H A D | type_integer.c | 107 char *buf, *new_buf; local 149 if (asprintf(&new_buf, "%.*ld", precision, number) < 0) 153 set_field_buffer(field, 0, new_buf); 155 free(new_buf);
|
H A D | type_numeric.c | 108 char *buf, *new_buf; local 182 if (asprintf(&new_buf, "%.*f", precision, number) < 0) 186 set_field_buffer(field, 0, new_buf); 188 free(new_buf);
|
/netbsd-current/usr.bin/sort/ |
H A D | files.c | 180 u_char *new_buf; local 203 new_buf = realloc(buf, buf_size); 204 if (!new_buf) 208 end = new_buf + buf_size; 209 pos = new_buf + off; 210 buf = new_buf;
|
/netbsd-current/external/cddl/osnet/dist/lib/libdtrace/common/ |
H A D | dt_buf.c | 98 uchar_t *new_buf; local 106 if ((new_buf = dt_zalloc(dtp, new_len)) == NULL) { 111 bcopy(bp->dbu_buf, new_buf, off); 114 bp->dbu_buf = new_buf; 115 bp->dbu_ptr = new_buf + off;
|
/netbsd-current/external/bsd/libarchive/dist/libarchive/test/ |
H A D | test_short_writes.c | 57 char *new_buf = realloc(checker->shortbuf, new_len); local 58 assert(new_buf != NULL); 60 checker->shortbuf = new_buf; 75 char *new_buf = realloc(checker->fullbuf, new_len); local 76 assert(new_buf != NULL); 78 checker->fullbuf = new_buf;
|
/netbsd-current/external/ibm-public/postfix/dist/src/global/ |
H A D | mail_queue.c | 253 VSTRING *new_buf = vstring_alloc(100); local 261 mail_queue_path(new_buf, new_queue, queue_id)); 262 if (error != 0 && mail_queue_mkdirs(STR(new_buf)) == 0) 263 error = sane_rename(STR(old_buf), STR(new_buf)); 269 vstring_free(new_buf);
|
/netbsd-current/external/gpl2/lvm2/dist/daemons/clvmd/ |
H A D | clvmd-command.c | 105 char *new_buf; local 107 new_buf = realloc(*buf, buflen); 108 if (new_buf == NULL) { 112 *buf = new_buf;
|
/netbsd-current/external/bsd/less/dist/ |
H A D | line.c | 180 char *new_buf = (char *) calloc(new_size, sizeof(char)); local 182 if (new_buf == NULL || new_attr == NULL) 186 if (new_buf != NULL) 187 free(new_buf); 193 memcpy(new_buf, linebuf.buf, size_linebuf * sizeof(char)); 197 linebuf.buf = new_buf;
|
/netbsd-current/external/gpl3/gcc.old/dist/libbacktrace/ |
H A D | elf.c | 910 char *new_buf; local 913 new_buf = elf_readlink (state, filename, error_callback, data, &new_len); 914 if (new_buf == NULL) 917 if (new_buf[0] == '/') 918 filename = new_buf; 923 filename = new_buf; 930 clen = slash - filename + strlen (new_buf) + 1; 936 memcpy (c + (slash - filename), new_buf, strlen (new_buf)); 937 c[slash - filename + strlen (new_buf)] [all...] |
/netbsd-current/external/mit/isl/dist/ |
H A D | isl_printer.c | 55 char *new_buf; local 61 new_buf = isl_realloc_array(p->ctx, p->buf, char, new_size); 62 if (!new_buf) { 66 p->buf = new_buf;
|
/netbsd-current/external/gpl3/gcc.old/dist/gcc/c-family/ |
H A D | c-cppbuiltin.c | 393 char name[64], buf[256], *new_buf; local 426 new_buf = buf + 2; 429 sprintf (new_buf++, "%x", (1 << mod) - 1); 431 sprintf (new_buf++, "F"); 432 sprintf (new_buf, "P-%d%s", TYPE_FBIT (type), suffix);
|
/netbsd-current/external/gpl3/gcc/dist/gcc/c-family/ |
H A D | c-cppbuiltin.cc | 404 char name[64], buf[256], *new_buf; local 437 new_buf = buf + 2; 440 sprintf (new_buf++, "%x", (1 << mod) - 1); 442 sprintf (new_buf++, "F"); 443 sprintf (new_buf, "P-%d%s", TYPE_FBIT (type), suffix);
|
/netbsd-current/external/gpl3/gcc/dist/libbacktrace/ |
H A D | elf.c | 972 char *new_buf; local 975 new_buf = elf_readlink (state, filename, error_callback, data, &new_len); 976 if (new_buf == NULL) 979 if (new_buf[0] == '/') 980 filename = new_buf; 985 filename = new_buf; 992 clen = slash - filename + strlen (new_buf) + 1; 998 memcpy (c + (slash - filename), new_buf, strlen (new_buf)); 999 c[slash - filename + strlen (new_buf)] [all...] |
/netbsd-current/external/gpl3/gdb.old/dist/libbacktrace/ |
H A D | elf.c | 972 char *new_buf; local 975 new_buf = elf_readlink (state, filename, error_callback, data, &new_len); 976 if (new_buf == NULL) 979 if (new_buf[0] == '/') 980 filename = new_buf; 985 filename = new_buf; 992 clen = slash - filename + strlen (new_buf) + 1; 998 memcpy (c + (slash - filename), new_buf, strlen (new_buf)); 999 c[slash - filename + strlen (new_buf)] [all...] |
/netbsd-current/external/gpl3/gdb/dist/libbacktrace/ |
H A D | elf.c | 979 char *new_buf; local 982 new_buf = elf_readlink (state, filename, error_callback, data, &new_len); 983 if (new_buf == NULL) 986 if (new_buf[0] == '/') 987 filename = new_buf; 992 filename = new_buf; 999 clen = slash - filename + strlen (new_buf) + 1; 1005 memcpy (c + (slash - filename), new_buf, strlen (new_buf)); 1006 c[slash - filename + strlen (new_buf)] [all...] |
/netbsd-current/external/gpl3/gdb/dist/gdb/ |
H A D | arm-tdep.c | 5283 gdb_byte *new_buf; local 5286 new_buf = (gdb_byte *) xmalloc (new_len); 5287 memcpy (new_buf + bytes_to_read, buf, old_len); 5289 if (target_read_code (endaddr - new_len, new_buf, bytes_to_read) != 0) 5291 xfree (new_buf); 5294 return new_buf;
|
/netbsd-current/external/gpl3/gdb.old/dist/gdb/ |
H A D | arm-tdep.c | 5263 gdb_byte *new_buf; local 5266 new_buf = (gdb_byte *) xmalloc (new_len); 5267 memcpy (new_buf + bytes_to_read, buf, old_len); 5269 if (target_read_code (endaddr - new_len, new_buf, bytes_to_read) != 0) 5271 xfree (new_buf); 5274 return new_buf;
|