/dports/net/librdkafka/librdkafka-1.8.2/src/ |
H A D | rdkafka_error.c | 53 ssize_t strsz = 0; in rd_kafka_error_new_v() local 58 strsz = rd_vsnprintf(NULL, 0, fmt, ap2) + 1; in rd_kafka_error_new_v() 62 error = rd_malloc(sizeof(*error) + strsz); in rd_kafka_error_new_v() 68 if (strsz > 0) { in rd_kafka_error_new_v() 70 rd_vsnprintf(error->errstr, strsz, fmt, ap); in rd_kafka_error_new_v() 80 ssize_t strsz = 0; in rd_kafka_error_copy() local 83 strsz = strlen(src->errstr); in rd_kafka_error_copy() 86 error = rd_malloc(sizeof(*error) + strsz); in rd_kafka_error_copy() 92 if (strsz > 0) { in rd_kafka_error_copy() 94 rd_strlcpy(error->errstr, src->errstr, strsz); in rd_kafka_error_copy()
|
/dports/sysutils/fluent-bit/fluent-bit-1.8.11/plugins/out_kafka/librdkafka-1.7.0/src/ |
H A D | rdkafka_error.c | 53 ssize_t strsz = 0; in rd_kafka_error_new_v() local 58 strsz = rd_vsnprintf(NULL, 0, fmt, ap2) + 1; in rd_kafka_error_new_v() 62 error = rd_malloc(sizeof(*error) + strsz); in rd_kafka_error_new_v() 68 if (strsz > 0) { in rd_kafka_error_new_v() 70 rd_vsnprintf(error->errstr, strsz, fmt, ap); in rd_kafka_error_new_v() 80 ssize_t strsz = 0; in rd_kafka_error_copy() local 83 strsz = strlen(src->errstr); in rd_kafka_error_copy() 86 error = rd_malloc(sizeof(*error) + strsz); in rd_kafka_error_copy() 92 if (strsz > 0) { in rd_kafka_error_copy() 94 rd_strlcpy(error->errstr, src->errstr, strsz); in rd_kafka_error_copy()
|
/dports/net-mgmt/statsite/statsite-0.8.0/deps/check-0.9.8/src/ |
H A D | check_pack.c | 145 int strsz; in pack_str() local 148 strsz = 0; in pack_str() 150 strsz = strlen (val); in pack_str() 152 pack_int (buf, strsz); in pack_str() 154 if (strsz > 0) { in pack_str() 156 *buf += strsz; in pack_str() 163 int strsz; in upack_str() local 165 strsz = upack_int (buf); in upack_str() 167 if (strsz > 0) { in upack_str() 170 val[strsz] = 0; in upack_str() [all …]
|
/dports/biology/py-python-libsbml/python-libsbml-5.19.0/libsbml_dependencies/check/src/ |
H A D | check_pack.c | 152 int strsz; in pack_str() local 155 strsz = 0; in pack_str() 157 strsz = strlen (val); in pack_str() 159 pack_int (buf, strsz); in pack_str() 161 if (strsz > 0) { in pack_str() 163 *buf += strsz; in pack_str() 170 int strsz; in upack_str() local 172 strsz = upack_int (buf); in upack_str() 174 if (strsz > 0) { in upack_str() 177 val[strsz] = 0; in upack_str() [all …]
|
/dports/multimedia/gstreamer1/gstreamer-1.16.2/libs/gst/check/libcheck/ |
H A D | check_pack.c | 162 int strsz; in pack_str() local 165 strsz = 0; in pack_str() 167 strsz = strlen (val); in pack_str() 169 pack_int (buf, strsz); in pack_str() 171 if (strsz > 0) { in pack_str() 173 *buf += strsz; in pack_str() 181 int strsz; in upack_str() local 183 strsz = upack_int (buf); in upack_str() 185 if (strsz > 0) { in upack_str() 188 val[strsz] = 0; in upack_str() [all …]
|
/dports/devel/check/check-0.15.2/src/ |
H A D | check_pack.c | 199 size_t strsz; in pack_str() local 202 strsz = 0; in pack_str() 204 strsz = strlen(val); in pack_str() 205 if(strsz > CK_UINT32_MAX) in pack_str() 211 if(strsz > 0) in pack_str() 213 memcpy(*buf, val, strsz); in pack_str() 214 *buf += strsz; in pack_str() 221 size_t strsz; in upack_str() local 225 if(strsz > 0) in upack_str() 229 val[strsz] = 0; in upack_str() [all …]
|
/dports/textproc/flex/flex-2.6.4/src/ |
H A D | buf.c | 171 size_t strsz; in buf_m4_define() local 174 strsz = strlen(fmt) + strlen(def) + strlen(val) + 2; in buf_m4_define() 175 str = malloc(strsz); in buf_m4_define() 179 snprintf(str, strsz, fmt, def, val); in buf_m4_define() 193 size_t strsz; in buf_m4_undefine() local 195 strsz = strlen(fmt) + strlen(def) + 2; in buf_m4_undefine() 196 str = malloc(strsz); in buf_m4_undefine() 200 snprintf(str, strsz, fmt, def); in buf_m4_undefine()
|
/dports/emulators/qemu60/qemu-6.0.0/roms/edk2/EmbeddedPkg/Include/ |
H A D | libfdt_env.h | 75 static inline size_t strnlen (const char* str, size_t strsz ) { in strnlen() argument 76 return AsciiStrnLenS (str, strsz); in strnlen() 79 static inline size_t strncmp (const char* str1, const char* str2, size_t strsz ) { in strncmp() argument 80 return AsciiStrnCmp (str1, str2, strsz); in strncmp()
|
/dports/emulators/qemu/qemu-6.2.0/roms/edk2/EmbeddedPkg/Include/ |
H A D | libfdt_env.h | 75 static inline size_t strnlen (const char* str, size_t strsz ) { in strnlen() argument 76 return AsciiStrnLenS (str, strsz); in strnlen() 79 static inline size_t strncmp (const char* str1, const char* str2, size_t strsz ) { in strncmp() argument 80 return AsciiStrnCmp (str1, str2, strsz); in strncmp()
|
/dports/emulators/qemu5/qemu-5.2.0/roms/edk2/EmbeddedPkg/Include/ |
H A D | libfdt_env.h | 75 static inline size_t strnlen (const char* str, size_t strsz ) { in strnlen() argument 76 return AsciiStrnLenS (str, strsz); in strnlen() 79 static inline size_t strncmp (const char* str1, const char* str2, size_t strsz ) { in strncmp() argument 80 return AsciiStrnCmp (str1, str2, strsz); in strncmp()
|
/dports/sysutils/hfsutils/hfsutils-3.2.6/ |
H A D | dlist.c | 90 size_t strsz; in dl_append() local 93 strsz = (list->mem + list->memsz) - list->strs; in dl_append() 101 newlist.strs = newlist.mem + newlist.memsz - strsz; in dl_append() 103 memcpy(newlist.strs, list->strs, strsz); in dl_append()
|
/dports/sysutils/uefi-edk2-bhyve/edk2-edk2-stable202102/EmbeddedPkg/Include/ |
H A D | libfdt_env.h | 75 static inline size_t strnlen (const char* str, size_t strsz ) { in strnlen() argument 76 return AsciiStrnLenS (str, strsz); in strnlen() 79 static inline size_t strncmp (const char* str1, const char* str2, size_t strsz ) { in strncmp() argument 80 return AsciiStrnCmp (str1, str2, strsz); in strncmp()
|
/dports/sysutils/edk2/edk2-edk2-stable202102/EmbeddedPkg/Include/ |
H A D | libfdt_env.h | 75 static inline size_t strnlen (const char* str, size_t strsz ) { 76 return AsciiStrnLenS (str, strsz); 79 static inline size_t strncmp (const char* str1, const char* str2, size_t strsz ) { 80 return AsciiStrnCmp (str1, str2, strsz);
|
/dports/sysutils/vector/vector-0.10.0/cargo-crates/rdkafka-sys-2.0.0+1.4.2/librdkafka/src/ |
H A D | rdkafka_error.c | 52 ssize_t strsz = 0; in rd_kafka_error_new_v() local 57 strsz = rd_vsnprintf(NULL, 0, fmt, ap2) + 1; in rd_kafka_error_new_v() 61 error = rd_malloc(sizeof(*error) + strsz); in rd_kafka_error_new_v() 67 if (strsz > 0) { in rd_kafka_error_new_v() 69 rd_vsnprintf(error->errstr, strsz, fmt, ap); in rd_kafka_error_new_v()
|
/dports/misc/rump/buildrump.sh-b914579/src/external/bsd/flex/dist/src/ |
H A D | buf.c | 176 size_t strsz; in buf_m4_define() local 179 str = (char*)flex_alloc(strsz = strlen(fmt) + strlen(def) + strlen(val) + 2); in buf_m4_define() 183 snprintf(str, strsz, fmt, def, val); in buf_m4_define() 197 size_t strsz; in buf_m4_undefine() local 199 str = (char*)flex_alloc(strsz = strlen(fmt) + strlen(def) + 2); in buf_m4_undefine() 203 snprintf(str, strsz, fmt, def); in buf_m4_undefine()
|
/dports/net/kamailio/kamailio-5.4.5/src/modules/xmpp/ |
H A D | sha.c | 211 int strsz; in shahash() local 219 strsz = strlen(str); in shahash() 221 if(strsz == 0) in shahash() 228 while (strsz>0) in shahash() 234 strsz-=c; in shahash() 235 if (strsz<=0) in shahash()
|
/dports/devel/radare2/radare2-5.1.1/libr/util/ |
H A D | w32-sys.c | 164 int strsz = BUFSIZE+1; in ReadFromPipe() local 169 str = malloc (strsz); in ReadFromPipe() 178 if (strl+dwRead>strsz) { in ReadFromPipe() 180 strsz += 4096; in ReadFromPipe() 181 str = realloc (str, strsz); in ReadFromPipe()
|
/dports/security/clamav-lts/clamav-0.103.5/libclamav/ |
H A D | mpool.c | 789 size_t strsz; local 796 strsz = strlen(s) + 1; 797 alloc = mpool_malloc(mp, strsz); 799 … cli_errmsg("cli_mpool_strdup(): Can't allocate memory (%lu bytes).\n", (unsigned long)strsz); 801 memcpy(alloc, s, strsz); 808 size_t strsz; local 815 strsz = CLI_STRNLEN(s, n) + 1; 816 alloc = mpool_malloc(mp, strsz); 818 … cli_errmsg("cli_mpool_strndup(): Can't allocate memory (%lu bytes).\n", (unsigned long)strsz); 820 memcpy(alloc, s, strsz - 1); [all …]
|
/dports/security/clamav/clamav-0.104.2/libclamav/ |
H A D | mpool.c | 789 size_t strsz; local 796 strsz = strlen(s) + 1; 797 alloc = mpool_malloc(mp, strsz); 799 … cli_errmsg("cli_mpool_strdup(): Can't allocate memory (%lu bytes).\n", (unsigned long)strsz); 801 memcpy(alloc, s, strsz); 808 size_t strsz; local 815 strsz = CLI_STRNLEN(s, n) + 1; 816 alloc = mpool_malloc(mp, strsz); 818 … cli_errmsg("cli_mpool_strndup(): Can't allocate memory (%lu bytes).\n", (unsigned long)strsz); 820 memcpy(alloc, s, strsz - 1); [all …]
|
/dports/lang/gnatdroid-binutils-x86/binutils-2.27/gas/config/ |
H A D | obj-som.c | 269 int strsz, nsyms; in adjust_stab_sections() local 276 strsz = bfd_section_size (abfd, strsec); in adjust_stab_sections() 278 strsz = 0; in adjust_stab_sections() 285 bfd_h_put_32 (abfd, (bfd_vma) strsz, (bfd_byte *) p + 8); in adjust_stab_sections()
|
/dports/devel/arm-elf-binutils/binutils-2.37/gas/config/ |
H A D | obj-som.c | 273 int strsz, nsyms; in adjust_stab_sections() local 280 strsz = bfd_section_size (strsec); in adjust_stab_sections() 282 strsz = 0; in adjust_stab_sections() 289 bfd_h_put_32 (abfd, (bfd_vma) strsz, (bfd_byte *) p + 8); in adjust_stab_sections()
|
/dports/devel/gnulibiberty/binutils-2.37/gas/config/ |
H A D | obj-som.c | 273 int strsz, nsyms; in adjust_stab_sections() local 280 strsz = bfd_section_size (strsec); in adjust_stab_sections() 282 strsz = 0; in adjust_stab_sections() 289 bfd_h_put_32 (abfd, (bfd_vma) strsz, (bfd_byte *) p + 8); in adjust_stab_sections()
|
/dports/devel/zpu-gcc/zpu-toolchain-1.0/toolchain/binutils/gas/config/ |
H A D | obj-som.c | 290 int strsz, nsyms; local 297 strsz = bfd_section_size (abfd, strsec); 299 strsz = 0; 306 bfd_h_put_32 (abfd, (bfd_vma) strsz, (bfd_byte *) p + 8);
|
/dports/lang/gnatdroid-binutils/binutils-2.27/gas/config/ |
H A D | obj-som.c | 269 int strsz, nsyms; in adjust_stab_sections() local 276 strsz = bfd_section_size (abfd, strsec); in adjust_stab_sections() 278 strsz = 0; in adjust_stab_sections() 285 bfd_h_put_32 (abfd, (bfd_vma) strsz, (bfd_byte *) p + 8); in adjust_stab_sections()
|
/dports/devel/tigcc/tigcc-0.96.b8_10/gnu/binutils-2.16.1/gas/config/ |
H A D | obj-som.c | 292 int strsz, nsyms; local 299 strsz = bfd_section_size (abfd, strsec); 301 strsz = 0; 308 bfd_h_put_32 (abfd, (bfd_vma) strsz, (bfd_byte *) p + 8);
|