Home
last modified time | relevance | path

Searched refs:str_bufs (Results 1 – 4 of 4) sorted by relevance

/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dstrtab.c45 sp->str_bufs = xrealloc(sp->str_bufs, sp->str_nbufs * sizeof (char *)); in strtab_grow()
47 sp->str_bufs[sp->str_nbufs - 1] = sp->str_ptr; in strtab_grow()
55 sp->str_bufs = NULL; in strtab_create()
80 free(sp->str_bufs[i]); in strtab_destroy()
83 free(sp->str_bufs); in strtab_destroy()
115 if (buf == sp->str_bufs[b] + sp->str_bufsz) in strtab_compare()
116 buf = sp->str_bufs[++b]; in strtab_compare()
118 resid = sp->str_bufs[b] + sp->str_bufsz - buf; in strtab_compare()
139 if (sp->str_ptr == sp->str_bufs[b] + sp->str_bufsz) { in strtab_copyin()
144 resid = sp->str_bufs[b] + sp->str_bufsz - sp->str_ptr; in strtab_copyin()
[all …]
H A Dstrtab.h49 char **str_bufs; /* array of buffer pointers */ member
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_strtab.c50 bufs = realloc(sp->str_bufs, (sp->str_nbufs + 1) * sizeof (char *)); in dt_strtab_grow()
58 sp->str_bufs = bufs; in dt_strtab_grow()
60 sp->str_bufs[sp->str_nbufs - 1] = sp->str_ptr; in dt_strtab_grow()
83 sp->str_bufs = NULL; in dt_strtab_create()
115 free(sp->str_bufs[i]); in dt_strtab_destroy()
119 if (sp->str_bufs != NULL) in dt_strtab_destroy()
120 free(sp->str_bufs); in dt_strtab_destroy()
157 if (buf == sp->str_bufs[b] + sp->str_bufsz) in dt_strtab_compare()
158 buf = sp->str_bufs[++b]; in dt_strtab_compare()
160 resid = sp->str_bufs[b] + sp->str_bufsz - buf; in dt_strtab_compare()
[all …]
H A Ddt_strtab.h49 char **str_bufs; /* array of buffer pointers */ member