/external/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
open_memstream.cc | 30 size_t buf_len; local 31 fprintf(stderr, " &buf %p, &buf_len %p\n", &buf, &buf_len); 32 FILE *fp = open_memstream(&buf, &buf_len); 37 check_mem_is_good(&buf_len, sizeof(buf_len)); 38 check_mem_is_good(buf, buf_len); 50 fprintf(stderr, " %p addr %p, len %zu\n", &buf, buf, buf_len); 52 check_mem_is_good(&buf_len, sizeof(buf_len)); [all...] |
/external/libbrillo/brillo/ |
userdb_utils.cc | 20 ssize_t buf_len = sysconf(_SC_GETPW_R_SIZE_MAX); local 21 if (buf_len < 0) 22 buf_len = 16384; // 16K should be enough?... 25 std::vector<char> buf(buf_len); 26 if (getpwnam_r(user.c_str(), &pwd_buf, buf.data(), buf_len, &pwd) || !pwd) { 39 ssize_t buf_len = sysconf(_SC_GETGR_R_SIZE_MAX); local 40 if (buf_len < 0) 41 buf_len = 16384; // 16K should be enough?... 44 std::vector<char> buf(buf_len); 45 if (getgrnam_r(group.c_str(), &grp_buf, buf.data(), buf_len, &grp) || !grp) [all...] |
/external/wpa_supplicant_8/src/crypto/ |
aes-eax.c | 33 size_t buf_len; local 39 buf_len = nonce_len; 41 buf_len = data_len; 42 if (hdr_len > buf_len) 43 buf_len = hdr_len; 44 buf_len += 16; 46 buf = os_malloc(buf_len); 74 bin_clear_free(buf, buf_len); 97 size_t buf_len; local 103 buf_len = nonce_len [all...] |
sha256-prf.c | 24 * @buf_len: Number of bytes of key to generate 31 const u8 *data, size_t data_len, u8 *buf, size_t buf_len) 34 buf_len * 8); 46 * @buf_len: Number of bits of key to generate 50 * given key. If the requested buf_len is not divisible by eight, the least 64 size_t buf_len = (buf_len_bits + 7) / 8; local 77 while (pos < buf_len) { 78 plen = buf_len - pos;
|
sha384-prf.c | 24 * @buf_len: Number of bytes of key to generate 31 const u8 *data, size_t data_len, u8 *buf, size_t buf_len) 34 buf_len * 8); 46 * @buf_len: Number of bits of key to generate 50 * given key. If the requested buf_len is not divisible by eight, the least 64 size_t buf_len = (buf_len_bits + 7) / 8; local 77 while (pos < buf_len) { 78 plen = buf_len - pos;
|
sha512-prf.c | 24 * @buf_len: Number of bytes of key to generate 31 const u8 *data, size_t data_len, u8 *buf, size_t buf_len) 34 buf_len * 8); 46 * @buf_len: Number of bits of key to generate 50 * given key. If the requested buf_len is not divisible by eight, the least 64 size_t buf_len = (buf_len_bits + 7) / 8; local 77 while (pos < buf_len) { 78 plen = buf_len - pos;
|
/device/google/cuttlefish_common/host/libs/monitor/ |
kernel_log_server.cpp | 91 const size_t buf_len = 256; local 92 char buf[buf_len]; 93 ssize_t ret = client_fd_->Read(buf, buf_len);
|
/external/libopus/silk/fixed/ |
find_pitch_lags_FIX.c | 45 opus_int buf_len, i, scale; local 59 buf_len = psEnc->sCmn.la_pitch + psEnc->sCmn.frame_length + psEnc->sCmn.ltp_mem_length; 62 silk_assert( buf_len >= psEnc->sCmn.pitch_LPC_win_length ); 73 x_ptr = x + buf_len - psEnc->sCmn.pitch_LPC_win_length; 113 silk_LPC_analysis_filter( res, x, A_Q12, buf_len, psEnc->sCmn.pitchEstimationLPCOrder, psEnc->sCmn.arch );
|
/external/libopus/silk/float/ |
find_pitch_lags_FLP.c | 44 opus_int buf_len; local 56 buf_len = psEnc->sCmn.la_pitch + psEnc->sCmn.frame_length + psEnc->sCmn.ltp_mem_length; 59 silk_assert( buf_len >= psEnc->sCmn.pitch_LPC_win_length ); 70 x_buf_ptr = x_buf + buf_len - psEnc->sCmn.pitch_LPC_win_length; 105 silk_LPC_analysis_filter_FLP( res, A, x_buf, buf_len, psEnc->sCmn.pitchEstimationLPCOrder );
|
/external/pdfium/core/fpdfdoc/ |
cpdf_filespec_unittest.cpp | 199 size_t buf_len = strlen(streams[i]) + 1; local 200 std::unique_ptr<uint8_t, FxFreeDeleter> buf(FX_Alloc(uint8_t, buf_len)); 201 memcpy(buf.get(), streams[i], buf_len); 202 file_dict->SetNewFor<CPDF_Stream>(keys[i], std::move(buf), buf_len,
|
/external/vboot_reference/futility/ |
file_type.c | 75 uint32_t buf_len; local 95 err = futil_map_file(ifd, MAP_RO, &buf, &buf_len); 101 *type = futil_file_type_buf(buf, buf_len); 103 err = futil_unmap_file(ifd, MAP_RO, buf, buf_len);
|
/external/valgrind/coregrind/m_demangle/ |
demangle.c | 208 static SizeT buf_len = 0; local 216 if (buf_len < len) { 219 buf_len = len;
|
/external/wpa_supplicant_8/src/pae/ |
ieee802_1x_key.c | 40 int lab_len, ctx_len, ret_len, buf_len; local 46 buf_len = lab_len + ctx_len + 4; 54 buf = os_zalloc(buf_len); 60 WPA_PUT_BE16(&buf[buf_len - 2], ret_bits); 64 if (omac1_aes_128(kdk, buf, buf_len, ret)) {
|
/system/bt/bta/hf_client/ |
bta_hf_client_at.h | 36 uint16_t buf_len; member in struct:queued_at_cmd
|
/external/google-breakpad/src/third_party/libdisasm/ |
x86_disasm.c | 16 unsigned int x86_disasm( unsigned char *buf, unsigned int buf_len, 22 if ( ! buf || ! insn || ! buf_len ) { 36 if ( offset >= buf_len ) { 42 len = buf_len - offset; 77 unsigned int buf_len, size, count = 0, bytes = 0; local 79 /* buf_len is implied by the arguments */ 80 buf_len = len + offset; 83 size = x86_disasm( buf, buf_len, buf_rva, offset + bytes, 127 unsigned int x86_disasm_forward( unsigned char *buf, unsigned int buf_len, 137 while ( cont && bytes < buf_len ) { [all...] |
/external/selinux/libsemanage/src/ |
parse_utils.c | 86 size_t buf_len = 0; local 103 ((len = getline(&buffer, &buf_len, info->file_stream)) > 0)) {
|
/external/selinux/policycoreutils/run_init/ |
run_init.c | 303 int buf_len; local 318 buf_len = strlen(buf); 319 if (buf[buf_len - 1] == '\n') 320 buf[buf_len - 1] = 0;
|
/packages/apps/Gallery2/jni/filters/ |
edge.c | 42 int buf_len = 2 * row_stride; local 43 char buf[buf_len]; 47 memset(buf, 0, buf_len * sizeof(char)); 48 for (j = 3; j < buf_len; j+=4) { 107 buf_row_ring %= buf_len; 115 buf_row_ring %= buf_len;
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/ |
minigzip.c | 139 off_t buf_len; /* length of the input file */
local 144 buf_len = sb.st_size;
145 if (buf_len <= 0) return Z_ERRNO;
148 buf = mmap((caddr_t) 0, buf_len, PROT_READ, MAP_SHARED, ifd, (off_t)0);
152 len = gzwrite(out, (char *)buf, (unsigned)buf_len);
154 if (len != (int)buf_len) error(gzerror(out, &err));
156 munmap(buf, buf_len);
|
/external/boringssl/src/crypto/fipsmodule/ecdsa/ |
ecdsa_test.cc | 118 size_t buf_len = 2 * bn_len; local 119 std::vector<uint8_t> raw_buf(buf_len); 125 size_t offset = raw_buf[10] % buf_len;
|
/external/boringssl/src/decrepit/bio/ |
base64_bio.c | 79 int buf_len; member in struct:b64_struct 138 ctx->buf_len = 0; 145 if (ctx->buf_len > 0) { 146 assert(ctx->buf_len >= ctx->buf_off); 147 i = ctx->buf_len - ctx->buf_off; 157 if (ctx->buf_len == ctx->buf_off) { 158 ctx->buf_len = 0; 282 ctx->buf_len = 0; 284 ctx->buf_len = z; 289 &ctx->buf_len, (uint8_t *)ctx->tmp, i) [all...] |
/external/linux-kselftest/tools/testing/selftests/capabilities/ |
test_execve.c | 39 int buf_len; local 41 buf_len = vsnprintf(buf, sizeof(buf), fmt, ap); 42 if (buf_len < 0) 45 if (buf_len >= sizeof(buf)) 56 written = write(fd, buf, buf_len); 57 if (written != buf_len) {
|
/external/linux-kselftest/tools/testing/selftests/mount/ |
unprivileged-remount-test.c | 62 int buf_len; local 64 buf_len = vsnprintf(buf, sizeof(buf), fmt, ap); 65 if (buf_len < 0) { 69 if (buf_len >= sizeof(buf)) { 80 written = write(fd, buf, buf_len); 81 if (written != buf_len) {
|
/external/pdfium/core/fpdfapi/edit/ |
cpdf_pagecontentgenerator_unittest.cpp | 317 size_t buf_len = FX_ArraySize(content); local 318 std::unique_ptr<uint8_t, FxFreeDeleter> buf(FX_Alloc(uint8_t, buf_len)); 319 memcpy(buf.get(), content, buf_len); 320 auto pStream = pdfium::MakeUnique<CPDF_Stream>(std::move(buf), buf_len,
|
/external/pdfium/core/fpdfapi/font/ |
cpdf_tounicodemap.cpp | 26 uint32_t buf_len = m_MultiCharBuf.GetLength(); local 27 if (!buf || buf_len == 0) { 31 if (index >= buf_len) { 35 if (index + len < index || index + len >= buf_len) {
|