Searched refs:str_size (Results 1 - 23 of 23) sorted by relevance

/netbsd-current/external/lgpl3/mpfr/dist/src/
H A Dinp_str.c35 size_t alloc_size, str_size; local
42 str_size = 0;
57 MPFR_ASSERTD (str_size < (size_t) -1);
58 if (str_size >= alloc_size)
65 MPFR_ASSERTD (str_size < alloc_size);
71 str[str_size++] = (unsigned char) c;
72 if (str_size == (size_t) -1)
82 if (MPFR_UNLIKELY (str_size == (size_t) -1 || str_size == 0 ||
90 /* number of characters read is nread + str_size
[all...]
/netbsd-current/external/lgpl3/gmp/dist/mpz/
H A Dout_str.c43 size_t str_size; local
82 DIGITS_IN_BASE_PER_LIMB (str_size, x_size, base);
83 str_size += 3;
84 str = (unsigned char *) TMP_ALLOC (str_size);
93 str_size = mpn_get_str (str, base, xp, x_size);
96 for (i = 0; i < str_size; i++)
98 str[str_size] = 0;
102 fwret = fwrite ((char *) str, 1, str_size, stream);
H A Dset_str.c46 size_t str_size; local
113 str_size = strlen (str - 1);
114 s = begs = (char *) TMP_ALLOC (str_size + 1);
118 for (i = 0; i < str_size; i++)
133 str_size = s - begs;
135 LIMBS_PER_DIGIT_IN_BASE (xsize, str_size, base);
139 xsize = mpn_set_str (PTR (x), (unsigned char *) begs, str_size, base);
H A Dinp_str.c71 size_t alloc_size, str_size; local
135 str_size = 0;
143 if (str_size >= alloc_size)
149 str[str_size++] = dig;
152 nread += str_size;
158 if (str_size == 0)
164 LIMBS_PER_DIGIT_IN_BASE (xsize, str_size, base);
168 xsize = mpn_set_str (PTR (x), (unsigned char *) str, str_size, base);
H A Dget_str.c46 size_t str_size; local
96 str_size = mpn_get_str ((unsigned char *) res_str, base, xp, x_size);
97 ASSERT (alloc_size == 0 || str_size <= alloc_size - (SIZ(x) < 0));
100 for (i = 0; i < str_size; i++)
102 res_str[str_size] = 0;
109 size_t actual_size = str_size + 1 + (res_str - return_str);
/netbsd-current/external/lgpl3/gmp/dist/mpf/
H A Dinp_str.c40 size_t alloc_size, str_size; local
50 str_size = 0;
63 if (str_size >= alloc_size)
71 str[str_size++] = c;
77 if (str_size >= alloc_size)
83 str[str_size] = 0;
91 return str_size + nread;
H A Dset_str.c124 size_t str_size; local
189 str_size = strlen (str);
190 for (i = str_size - 1; i > 0; i--)
196 str_size = i;
202 s = begs = (char *) TMP_ALLOC (str_size + 1);
209 for (i = 0; i < str_size; i++)
252 str_size = s - begs;
270 if (str_size > n_chars_needed)
271 str_size = n_chars_needed;
274 if (str_size
[all...]
/netbsd-current/external/bsd/libpcap/dist/missing/
H A Dasprintf.c18 size_t str_size; local
69 str_size = len + 1;
70 str = malloc(str_size);
75 ret = vsnprintf(str, str_size, format, args);
H A Dwin_asprintf.c11 size_t str_size; local
20 str_size = len + 1;
21 str = malloc(str_size);
26 ret = vsnprintf(str, str_size, format, args);
/netbsd-current/external/cddl/osnet/dist/tools/ctf/cvt/
H A Dstrtab.h54 size_t str_size; /* total size of strings in bytes */ member in struct:strtab
H A Dstrtab.c64 sp->str_size = 1;
187 hp->str_off = sp->str_size;
199 sp->str_size += len + 1;
207 return (sp->str_size);
228 if (total == 0 && sp->str_size != 0)
H A Dctf.c665 + buf->ctb_strtab.str_size);
/netbsd-current/external/cddl/osnet/dist/lib/libdtrace/common/
H A Ddt_strtab.h54 size_t str_size; /* total size of strings in bytes */ member in struct:dt_strtab
H A Ddt_strtab.c88 sp->str_size = 1;
251 hp->str_off = sp->str_size;
265 sp->str_size += len + 1;
274 return (sp->str_size);
294 if (total == 0 && sp->str_size != 0)
/netbsd-current/external/apache2/llvm/dist/libcxx/include/__support/ibm/
H A Dxlocale.h314 int str_size = vsnprintf(*strp, buff_size, fmt, ap_copy); local
317 if ((size_t) str_size >= buff_size) {
318 if ((*strp = (char *)realloc(*strp, str_size + 1)) == NULL) {
321 str_size = vsnprintf(*strp, str_size + 1, fmt, ap);
323 return str_size;
/netbsd-current/external/gpl3/gcc.old/dist/libbacktrace/
H A Dpecoff.c595 size_t str_size; local
704 str_size = 0;
721 str_size = coff_read4 (syms_view.data + syms_size);
725 if (str_size > 4)
729 if (!backtrace_get_view (state, descriptor, str_off, str_size,
784 str_view.data, str_size,
H A Dxcoff.c1094 int32_t str_size; local
1112 str_size = 0;
1196 memcpy (&str_size, syms_view.data + syms_size, 4);
1200 if (str_size > 4)
1205 str_size, error_callback, data, &str_view))
1217 str_view.data, str_size,
1331 str_view.data, str_size,
/netbsd-current/external/gpl3/gcc/dist/libbacktrace/
H A Dpecoff.c598 size_t str_size; local
712 str_size = 0;
729 str_size = coff_read4 (syms_view.data + syms_size);
733 if (str_size > 4)
737 if (!backtrace_get_view (state, descriptor, str_off, str_size,
792 str_view.data, str_size,
H A Dxcoff.c1093 int32_t str_size; local
1111 str_size = 0;
1203 memcpy (&str_size, syms_view.data + syms_size, 4);
1207 if (str_size > 4)
1212 str_size, error_callback, data, &str_view))
1224 str_view.data, str_size,
1332 str_view.data, str_size,
/netbsd-current/external/gpl3/gdb/dist/libbacktrace/
H A Dpecoff.c598 size_t str_size; local
712 str_size = 0;
729 str_size = coff_read4 (syms_view.data + syms_size);
733 if (str_size > 4)
737 if (!backtrace_get_view (state, descriptor, str_off, str_size,
792 str_view.data, str_size,
H A Dxcoff.c1093 int32_t str_size; local
1111 str_size = 0;
1203 memcpy (&str_size, syms_view.data + syms_size, 4);
1207 if (str_size > 4)
1212 str_size, error_callback, data, &str_view))
1224 str_view.data, str_size,
1332 str_view.data, str_size,
/netbsd-current/external/gpl2/texinfo/dist/makeinfo/
H A Dindex.c693 int str_size = output_line_number_len + strlen (_("(line )"))
695 char *out_line_no_str = (char *) xmalloc (str_size + 1);
687 int str_size = output_line_number_len + strlen (_("(line )")) local
/netbsd-current/usr.sbin/sysinst/
H A Dlabel.c2126 char str_start[40], str_end[40], str_size[40], str_tag[4]; local
2132 sprintf(str_size, "%" PRIu64, freespace[ndx].size / sizemult);
2133 const char *args[4] = { str_start, str_end, str_size,

Completed in 342 milliseconds