Home
last modified time | relevance | path

Searched refs:str_size (Results 1 – 16 of 16) sorted by relevance

/external/selinux/libsepol/cil/test/unit/
Dtest_cil_lexer.c39 uint32_t str_size = strlen(test_str); in test_cil_lexer_setup() local
40 char *buffer = malloc(str_size + 2); in test_cil_lexer_setup()
42 memset(buffer+str_size, 0, 2); in test_cil_lexer_setup()
43 strncpy(buffer, test_str, str_size); in test_cil_lexer_setup()
45 int rc = cil_lexer_setup(buffer, str_size + 2); in test_cil_lexer_setup()
53 uint32_t str_size = strlen(test_str); in test_cil_lexer_next() local
54 char *buffer = malloc(str_size + 2); in test_cil_lexer_next()
56 memset(buffer+str_size, 0, 2); in test_cil_lexer_next()
59 cil_lexer_setup(buffer, str_size + 2); in test_cil_lexer_next()
/external/libpcap/missing/
Dwin_snprintf.c5 pcap_vsnprintf(char *str, size_t str_size, const char *format, va_list args) in pcap_vsnprintf() argument
9 ret = _vsnprintf_s(str, str_size, _TRUNCATE, format, args); in pcap_vsnprintf()
17 str[str_size - 1] = '\0'; in pcap_vsnprintf()
22 pcap_snprintf(char *str, size_t str_size, const char *format, ...) in pcap_snprintf() argument
28 ret = pcap_vsnprintf(str, str_size, format, args); in pcap_snprintf()
/external/ltp/testcases/kernel/device-drivers/uaccess/
Dltp_uaccess.c65 char *str, ch, buffer[str_size]; in sys_tcase()
73 if (copy_from_user(buffer, str, str_size)) in sys_tcase()
75 test_result = strncmp(test_str, buffer, str_size) ? 1 : 0; in sys_tcase()
81 if (copy_to_user(str + 1, test_str + 1, str_size - 1)) { in sys_tcase()
Duaccess.c78 char buf[str_size]; in tc_write_userspace()
79 memset(buf, 0, str_size); in tc_write_userspace()
88 res = strncmp(buf, test_str, str_size) ? TFAIL : TPASS; in tc_write_userspace()
Dltp_uaccess.h25 static const int str_size = sizeof(test_str); variable
/external/libcxx/include/support/ibm/
Dxlocale.h251 int str_size; in vasprintf() local
256 if ((str_size = vsnprintf(*strp, buff_size, fmt, ap)) >= buff_size) in vasprintf()
258 if ((*strp = (char *)realloc(*strp, str_size + 1)) == NULL) in vasprintf()
262 str_size = vsnprintf(*strp, str_size + 1, fmt, ap); in vasprintf()
264 return str_size; in vasprintf()
/external/avb/libavb/
Davb_util.c255 size_t str_size) { in avb_strv_find_str() argument
258 if (avb_strlen(strings[n]) == str_size && in avb_strv_find_str()
259 avb_memcmp(strings[n], str, str_size) == 0) { in avb_strv_find_str()
Davb_util.h254 size_t str_size);
/external/autotest/client/common_lib/cros/bluetooth/
Dbluetooth_sdp_socket.py428 str_size = self._unpack_int(data, int_size)
430 res = data[int_size : int_size + str_size]
431 scanned += int_size + str_size
/external/strace/tests-m32/
Dprocess_vm_readv_writev.c59 uint8_t str_size[MAX_SEGM_COUNT]; member
116 if (segm_offs >= arg->str_size[num_segm]) { in print_iov()
/external/strace/tests-mx32/
Dprocess_vm_readv_writev.c59 uint8_t str_size[MAX_SEGM_COUNT]; member
116 if (segm_offs >= arg->str_size[num_segm]) { in print_iov()
/external/strace/tests/
Dprocess_vm_readv_writev.c59 uint8_t str_size[MAX_SEGM_COUNT]; member
116 if (segm_offs >= arg->str_size[num_segm]) { in print_iov()
/external/libmicrohttpd/src/testcurl/
Dtest_get.c540 const size_t str_size = strlen (excess_found); in curlExcessFound() local
543 && size >= str_size in curlExcessFound()
544 && 0 == strncmp(excess_found, data, str_size)) in curlExcessFound()
/external/fmtlib/fmt/
Dformat.h2740 std::size_t str_size = s.size;
2741 if (str_size == 0) {
2747 if (spec.precision_ >= 0 && precision < str_size)
2748 str_size = precision;
2749 write_str(str_value, str_size, spec);
/external/python/cpython2/Modules/
DcPickle.c709 Py_ssize_t str_size; in readline_other() local
715 if ((str_size = PyString_Size(str)) < 0) in readline_other()
723 return str_size; in readline_other()
/external/valgrind/VEX/priv/
Dhost_ppc_defs.c1961 const HChar* str_size; in ppPPCInstr() local
1967 str_size = sz==1 ? "eb" : sz==2 ? "eh" : sz==4 ? "ew" : ""; in ppPPCInstr()
1969 vex_printf("lv%sx ", str_size); in ppPPCInstr()
1971 vex_printf("stv%sx ", str_size); in ppPPCInstr()