Home
last modified time | relevance | path

Searched refs:str_len (Results 1 – 25 of 64) sorted by relevance

123

/freebsd/contrib/unbound/sldns/
H A Dwire2str.h128 size_t str_len);
150 size_t* str_len);
165 size_t* str_len, uint8_t* pkt, size_t pktlen, int* comprloop);
180 size_t* str_len, uint8_t* pkt, size_t pktlen, int* comprloop);
195 size_t* str_len, uint8_t* pkt, size_t pktlen, int* comprloop);
209 int sldns_wire2str_rr_comment_print(char** str, size_t* str_len, uint8_t* rr,
222 size_t* str_len);
240 size_t* str_len, uint16_t rrtype, uint8_t* pkt, size_t pktlen,
253 char** str, size_t* str_len);
274 size_t* str_len, uint8_t* pkt, size_t pktlen, int* comprloop);
[all …]
H A Dwire2str.c335 size_t str_len, uint16_t rrtype) in sldns_wire2str_rdata_buf() argument
338 return sldns_wire2str_rdata_scan(&rdata, &rdata_len, &str, &str_len, in sldns_wire2str_rdata_buf()
1136 /* alpn is list of length byte (str_len) followed by a string of that size */ in sldns_wire2str_svcparam_alpn2str()
1137 uint8_t i, str_len = *dp++; in sldns_wire2str_svcparam_alpn2str() local
1139 if (str_len > --data_len) in sldns_wire2str_svcparam_alpn2str()
1142 for (i = 0; i < str_len; i++) { in sldns_wire2str_svcparam_alpn2str()
1155 dp += str_len; in sldns_wire2str_svcparam_alpn2str()
1156 if ((data_len -= str_len)) in sldns_wire2str_svcparam_alpn2str()
2452 size_t* str_len, uint8_t* pkt, size_t pktlen) in sldns_wire2str_edns_scan()
2457 w += sldns_str_print(str, str_len, "; EDN in sldns_wire2str_edns_scan()
2404 sldns_wire2str_edns_scan(uint8_t ** data,size_t * data_len,char ** str,size_t * str_len,uint8_t * pkt,size_t pktlen) sldns_wire2str_edns_scan() argument
[all...]
/freebsd/crypto/krb5/src/lib/rpc/
H A Dsvc_auth_unix.c69 u_int auth_len, str_len, gid_len, i; in gssrpc__svcauth_unix() local
84 str_len = IXDR_GET_U_LONG(buf); in gssrpc__svcauth_unix()
85 if (str_len > MAX_MACHINE_NAME) { in gssrpc__svcauth_unix()
89 memmove(aup->aup_machname, buf, str_len); in gssrpc__svcauth_unix()
90 aup->aup_machname[str_len] = 0; in gssrpc__svcauth_unix()
91 str_len = RNDUP(str_len); in gssrpc__svcauth_unix()
92 buf += str_len / BYTES_PER_XDR_UNIT; in gssrpc__svcauth_unix()
108 if ((5 + gid_len) * BYTES_PER_XDR_UNIT + str_len > auth_len) { in gssrpc__svcauth_unix()
110 gid_len, str_len, auth_len); in gssrpc__svcauth_unix()
/freebsd/lib/libc/rpc/
H A Dsvc_auth_unix.c66 size_t str_len, gid_len; in _svcauth_unix() local
81 str_len = (size_t)IXDR_GET_U_INT32(buf); in _svcauth_unix()
82 if (str_len > MAX_MACHINE_NAME) { in _svcauth_unix()
86 memmove(aup->aup_machname, buf, str_len); in _svcauth_unix()
87 aup->aup_machname[str_len] = 0; in _svcauth_unix()
88 str_len = RNDUP(str_len); in _svcauth_unix()
89 buf += str_len / sizeof (int32_t); in _svcauth_unix()
105 if ((5 + gid_len) * BYTES_PER_XDR_UNIT + str_len > auth_len) { in _svcauth_unix()
107 (long)gid_len, (long)str_len, auth_len); in _svcauth_unix()
/freebsd/sys/rpc/
H A Dsvc_auth_unix.c70 uint32_t str_len, supp_ngroups; in _svcauth_unix() local
75 str_len = IXDR_GET_UINT32(buf); in _svcauth_unix()
76 if (str_len > AUTH_SYS_MAX_HOSTNAME) in _svcauth_unix()
78 str_len = RNDUP(str_len); in _svcauth_unix()
84 if (auth_len < min_len + str_len) in _svcauth_unix()
86 buf += str_len / sizeof (int32_t); in _svcauth_unix()
102 if (auth_len < min_len + str_len + in _svcauth_unix()
/freebsd/contrib/wpa/src/wps/
H A Dwps_dev_attr.c261 size_t str_len) in wps_process_manufacturer() argument
268 wpa_hexdump_ascii(MSG_DEBUG, "WPS: Manufacturer", str, str_len); in wps_process_manufacturer()
271 dev->manufacturer = dup_binstr(str, str_len); in wps_process_manufacturer()
280 size_t str_len) in wps_process_model_name() argument
287 wpa_hexdump_ascii(MSG_DEBUG, "WPS: Model Name", str, str_len); in wps_process_model_name()
290 dev->model_name = dup_binstr(str, str_len); in wps_process_model_name()
299 size_t str_len) in wps_process_model_number() argument
306 wpa_hexdump_ascii(MSG_DEBUG, "WPS: Model Number", str, str_len); in wps_process_model_number()
309 dev->model_number = dup_binstr(str, str_len); in wps_process_model_number()
318 const u8 *str, size_t str_len) in wps_process_serial_number() argument
[all …]
/freebsd/sys/cam/
H A Dcam.c210 cam_strmatch(const uint8_t *str, const uint8_t *pattern, int str_len) in cam_strmatch() argument
213 while (*pattern != '\0' && str_len > 0) { in cam_strmatch()
219 if (cam_strmatch(str, pattern, str_len) == 0) in cam_strmatch()
222 str_len--; in cam_strmatch()
223 } while (str_len > 0); in cam_strmatch()
232 str_len--; in cam_strmatch()
258 str_len--; in cam_strmatch()
264 str_len--; in cam_strmatch()
278 while (str_len > 0 && *str == ' ') { in cam_strmatch()
280 str_len--; in cam_strmatch()
[all …]
H A Dcam.h411 int cam_strmatch(const uint8_t *str, const uint8_t *pattern, int str_len);
415 char * cam_error_string(union ccb *ccb, char *str, int str_len,
424 int str_len, cam_error_string_flags flags,
/freebsd/crypto/openssl/test/
H A Dcmactest.c155 size_t str_len = strlen((char *)test[case_idx].data); in test_cmac_run() local
156 size_t fill_len = test[case_idx].data_len - str_len; in test_cmac_run()
157 size_t fill_idx = str_len; in test_cmac_run()
159 if (fill_len > str_len) { in test_cmac_run()
160 memcpy(&test[case_idx].data[fill_idx], test[case_idx].data, str_len); in test_cmac_run()
161 fill_len -= str_len; in test_cmac_run()
162 fill_idx += str_len; in test_cmac_run()
/freebsd/contrib/bmake/
H A Dstr.c123 size_t str_len; in Substring_Words() local
137 str_len = strlen(str); in Substring_Words()
138 words_buf = bmake_malloc(str_len + 1); in Substring_Words()
140 words_cap = str_len / 5 > 50 ? str_len / 5 : 50; in Substring_Words()
/freebsd/contrib/ofed/infiniband-diags/src/
H A Ddump_fts.c228 int dump_lid(char *str, int str_len, int lid, int valid, in dump_lid() argument
250 return snprintf(str, str_len, in dump_lid()
254 return snprintf(str, str_len, in dump_lid()
259 return snprintf(str, str_len, in dump_lid()
269 return snprintf(str, str_len, ": (illegal port)"); in dump_lid()
275 return snprintf(str, str_len, ": (node info not available fabric scan)"); in dump_lid()
294 rc = snprintf(str, str_len, ": (%s portguid %s: '%s')", in dump_lid()
/freebsd/crypto/heimdal/appl/login/
H A Dlogin_access.c232 int str_len; in from_match() local
248 if ((str_len = strlen(string)) > (tok_len = strlen(tok)) in from_match()
249 && strcasecmp(tok, string + str_len - tok_len) == 0) in from_match()
/freebsd/crypto/heimdal/appl/rsh/
H A Dlogin_access.c232 int str_len; in from_match() local
248 if ((str_len = strlen(string)) > (tok_len = strlen(tok)) in from_match()
249 && strcasecmp(tok, string + str_len - tok_len) == 0) in from_match()
/freebsd/crypto/openssl/ssl/quic/
H A Djson_enc.c607 json_write_qstring_inner(OSSL_JSON_ENC *json, const char *str, size_t str_len, in json_write_qstring_inner() argument
620 for (j = nul_term ? strlen(str) : str_len; j > 0; str++, j--) { in json_write_qstring_inner()
707 json_write_qstring_len(OSSL_JSON_ENC *json, const char *str, size_t str_len) in json_write_qstring_len() argument
709 json_write_qstring_inner(json, str, str_len, 0); in json_write_qstring_len()
721 void ossl_json_str_len(OSSL_JSON_ENC *json, const char *str, size_t str_len) in ossl_json_str_len() argument
726 json_write_qstring_len(json, str, str_len); in ossl_json_str_len()
/freebsd/lib/libpam/modules/pam_login_access/
H A Dlogin_access.c248 int str_len; in from_match() local
264 if ((str_len = strlen(string)) > (tok_len = strlen(tok)) in from_match()
265 && strcasecmp(tok, string + str_len - tok_len) == 0) in from_match()
/freebsd/contrib/libucl/src/
H A Ducl_parser.c1742 ssize_t str_len; in ucl_parse_value() local
1775 str_len = chunk->pos - c - 2; in ucl_parse_value()
1777 if ((str_len = ucl_copy_or_store_ptr (parser, c + 1, in ucl_parse_value()
1779 &obj->value.sv, str_len, need_unescape, false, in ucl_parse_value()
1784 obj->len = str_len; in ucl_parse_value()
1801 str_len = chunk->pos - c - 2; in ucl_parse_value()
1805 if ((str_len = ucl_copy_or_store_ptr (parser, c + 1, in ucl_parse_value()
1807 &obj->value.sv, str_len, need_unescape, false, in ucl_parse_value()
1812 obj->len = str_len; in ucl_parse_value()
1905 if ((str_len = ucl_parse_multiline_string (parser, chunk, c, in ucl_parse_value()
[all …]
/freebsd/sys/cam/ctl/
H A Dctl_scsi_all.c152 int str_len) in ctl_scsi_sense_string() argument
156 sbuf_new(&sb, str, str_len, 0); in ctl_scsi_sense_string()
H A Dctl_util.h108 char *ctl_io_string(union ctl_io *io, char *str, int str_len);
111 int str_len);
H A Dctl_scsi_all.h49 int str_len);
/freebsd/crypto/heimdal/lib/kafs/
H A Dafssys.c140 size_t str_len = strlen (str); in map_syscall_name_to_number() local
149 if (strncmp (str, buf, str_len) == 0) { in map_syscall_name_to_number()
150 char *begptr = buf + str_len; in map_syscall_name_to_number()
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_printf.cpp342 uptr str_len = internal_strlen(str); in Append() local
343 buffer_.resize(prev_len + str_len + 1); in Append()
344 internal_memcpy(buffer_.data() + prev_len, str, str_len + 1); in Append()
/freebsd/sys/compat/lindebugfs/
H A Dlindebugfs.c645 size_t str_len, str_with_newline_len; in fops_str_read() local
651 str_len = strlen(str); in fops_str_read()
657 str_with_newline_len = str_len + 1; in fops_str_read()
662 strncpy(str_with_newline, str, str_len); in fops_str_read()
663 str_with_newline[str_len] = '\n'; in fops_str_read()
/freebsd/tools/build/cross-build/include/linux/
H A Dstring.h55 char *strnstr(const char *str, const char *find, size_t str_len);
/freebsd/contrib/opencsd/decoder/include/opencsd/c_api/
H A Docsd_c_api_types.h95 … void (* FnDefLoggerPrintStrCB)(const void *p_context, const char *psz_msg_str, const int str_len);
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dstrtab.h42 size_t str_len; /* length in bytes of this string */ member

123