Home
last modified time | relevance | path

Searched refs:bufsz (Results 1 – 25 of 41) sorted by relevance

12

/external/ltp/testcases/kernel/syscalls/cma/
Dprocess_vm_writev02.c48 static long bufsz; variable
113 char buf[bufsz]; in child_init_and_verify()
116 foo = SAFE_MALLOC(tst_exit, bufsz); in child_init_and_verify()
117 for (i = 0; i < bufsz; i++) in child_init_and_verify()
123 snprintf(buf, bufsz, "%p", foo); in child_init_and_verify()
131 for (i = 0; i < bufsz; i++) { in child_init_and_verify()
150 char buf[bufsz]; in child_write()
156 SAFE_READ(tst_exit, 0, pipe_fd[0], buf, bufsz); in child_write()
161 lp = SAFE_MALLOC(tst_exit, bufsz + PADDING_SIZE * 2); in child_write()
163 for (i = 0; i < bufsz + PADDING_SIZE * 2; i++) in child_write()
[all …]
Dprocess_vm_readv03.c51 static long bufsz; variable
123 bufsz_left = bufsz; in gen_random_arr()
219 if (TEST_RETURN != bufsz) in child_invoke()
255 bufsz = sflag ? SAFE_STRTOL(NULL, sz_opt, NUM_LOCAL_VECS, LONG_MAX) in setup()
/external/toybox/toys/pending/
Dfold.c34 int bufsz, len = 0, maxlen; local
40 while ((bufsz = read(fd, toybuf, sizeof(toybuf))) > 0) {
44 while (pos < bufsz) {
51 bufsz -= pos + 1;
83 bufsz -= split + 1;
89 xwrite(1, buf, bufsz);
/external/python/cpython2/PC/os2emx/
Dgetpathp.c263 size_t bufsz; in calculate_path() local
310 bufsz = 1; in calculate_path()
313 bufsz++; /* number of DELIM plus one */ in calculate_path()
315 bufsz *= strlen(pythonhome); in calculate_path()
318 bufsz = 0; in calculate_path()
319 bufsz += strlen(PYTHONPATH) + 1; in calculate_path()
320 bufsz += strlen(argv0_path) + 1; in calculate_path()
321 bufsz += strlen(zip_path) + 1; in calculate_path()
323 bufsz += strlen(envpath) + 1; in calculate_path()
325 module_search_path = buf = malloc(bufsz); in calculate_path()
/external/python/cpython2/PC/os2vacpp/
Dgetpathp.c301 int bufsz; in calculate_path() local
357 bufsz = 1; in calculate_path()
360 bufsz++; /* number of DELIM plus one */ in calculate_path()
362 bufsz *= strlen(pythonhome); in calculate_path()
365 bufsz = 0; in calculate_path()
366 bufsz += strlen(PYTHONPATH) + 1; in calculate_path()
368 bufsz += strlen(envpath) + 1; in calculate_path()
369 bufsz += strlen(argv0_path) + 1; in calculate_path()
372 bufsz += strlen(machinepath) + 1; in calculate_path()
374 bufsz += strlen(userpath) + 1; in calculate_path()
[all …]
/external/python/cpython2/Modules/
Dgetpath.c383 size_t bufsz; in calculate_path() local
529 bufsz = strlen(zip_path); /* Replace "00" with version */ in calculate_path()
530 zip_path[bufsz - 6] = VERSION[0]; in calculate_path()
531 zip_path[bufsz - 5] = VERSION[2]; in calculate_path()
548 bufsz = 0; in calculate_path()
551 bufsz += strlen(rtpypath) + 1; in calculate_path()
560 bufsz += prefixsz; in calculate_path()
563 bufsz += delim - defpath + 1; in calculate_path()
565 bufsz += strlen(defpath) + 1; in calculate_path()
572 bufsz += strlen(zip_path) + 1; in calculate_path()
[all …]
/external/strace/tests-mx32/
Dkexec_load.c49 size_t bufsz; member
115 segms[0].bufsz, segms[0].memsz); in main()
118 segms[i].buf, segms[i].bufsz, in main()
130 segms[i].buf, segms[i].bufsz, in main()
145 segms[i].buf, segms[i].bufsz, in main()
157 segms[i].buf, segms[i].bufsz, in main()
/external/strace/tests-m32/
Dkexec_load.c49 size_t bufsz; member
115 segms[0].bufsz, segms[0].memsz); in main()
118 segms[i].buf, segms[i].bufsz, in main()
130 segms[i].buf, segms[i].bufsz, in main()
145 segms[i].buf, segms[i].bufsz, in main()
157 segms[i].buf, segms[i].bufsz, in main()
/external/strace/tests/
Dkexec_load.c49 size_t bufsz; member
115 segms[0].bufsz, segms[0].memsz); in main()
118 segms[i].buf, segms[i].bufsz, in main()
130 segms[i].buf, segms[i].bufsz, in main()
145 segms[i].buf, segms[i].bufsz, in main()
157 segms[i].buf, segms[i].bufsz, in main()
/external/selinux/libselinux/src/
Dvalidatetrans.c20 int size, bufsz; in security_validatetrans_raw() local
41 bufsz = snprintf(buf, size, "%s %s %hu %s", scon, tcon, unmap_class(tclass), newcon); in security_validatetrans_raw()
42 if (bufsz >= size || bufsz < 0) { in security_validatetrans_raw()
/external/python/cpython2/PC/
Dgetpathp.c467 size_t bufsz; in calculate_path() local
540 bufsz = 1; in calculate_path()
543 bufsz++; /* number of DELIM plus one */ in calculate_path()
545 bufsz *= strlen(pythonhome); in calculate_path()
548 bufsz = 0; in calculate_path()
549 bufsz += strlen(PYTHONPATH) + 1; in calculate_path()
550 bufsz += strlen(argv0_path) + 1; in calculate_path()
553 bufsz += strlen(userpath) + 1; in calculate_path()
555 bufsz += strlen(machinepath) + 1; in calculate_path()
556 bufsz += strlen(zip_path) + 1; in calculate_path()
[all …]
/external/python/cpython3/PC/
Dgetpathp.c810 size_t bufsz = 0; in calculate_module_search_path() local
813 bufsz = 1; in calculate_module_search_path()
816 bufsz++; /* number of DELIM plus one */ in calculate_module_search_path()
819 bufsz *= wcslen(calculate->home); in calculate_module_search_path()
821 bufsz += wcslen(PYTHONPATH) + 1; in calculate_module_search_path()
822 bufsz += wcslen(argv0_path) + 1; in calculate_module_search_path()
824 bufsz += wcslen(calculate->user_path) + 1; in calculate_module_search_path()
827 bufsz += wcslen(calculate->machine_path) + 1; in calculate_module_search_path()
829 bufsz += wcslen(zip_path) + 1; in calculate_module_search_path()
831 bufsz += wcslen(calculate->pythonpath_env) + 1; in calculate_module_search_path()
[all …]
/external/icu/icu4c/source/extra/uconv/
Duconv.cpp538 bufsz(0), signature(0) {} in ConvertFile()
542 bufsz = bufferSize; in setBufferSize()
544 buf = new char[2 * bufsz]; in setBufferSize()
545 outbuf = buf + bufsz; in setBufferSize()
548 fromoffsets = new int32_t[bufsz + 1]; in setBufferSize()
573 size_t bufsz; member in ConvertFile
741 rd = fread(buf, 1, bufsz, infile); in convertFile()
761 flush = (UBool)(rd != bufsz); in convertFile()
768 unibuf = unibufp = u.getBuffer((int32_t)bufsz); in convertFile()
772 ucnv_toUnicode(convfrom, &unibufp, unibuf + bufsz, &cbufp, in convertFile()
[all …]
/external/kmod/libkmod/
Dlibkmod-builtin.c53 size_t bufsz; member
98 iter->bufsz = 0; in kmod_builtin_iter_new()
143 if (iter->bufsz < linesz + partsz) { in get_string()
144 iter->bufsz = linesz + partsz; in get_string()
145 iter->buf = realloc(iter->buf, iter->bufsz); in get_string()
/external/one-true-awk/
Drun.c475 int bufsz = recsize; in makearraystring() local
478 if ((buf = (char *) malloc(bufsz)) == NULL) { in makearraystring()
493 if (!adjbuf(&buf, &bufsz, tlen + 1, recsize, 0, func)) { in makearraystring()
984 int bufsz=3*recsize; in awksprintf() local
986 if ((buf = (char *) malloc(bufsz)) == NULL) in awksprintf()
990 if (format(&buf, &bufsz, getsval(x), y) == -1) in awksprintf()
1007 int bufsz=3*recsize; in awkprintf() local
1009 if ((buf = (char *) malloc(bufsz)) == NULL) in awkprintf()
1013 if ((len = format(&buf, &bufsz, getsval(x), y)) == -1) in awkprintf()
1936 int bufsz = recsize; in sub() local
[all …]
Dlex.c376 static int bufsz = 500; in string() local
378 if (buf == NULL && (buf = (char *) malloc(bufsz)) == NULL) in string()
381 if (!adjbuf(&buf, &bufsz, bp-buf+2, 500, &bp, "string")) in string()
524 static int bufsz = 500; in regexpr() local
527 if (buf == NULL && (buf = (char *) malloc(bufsz)) == NULL) in regexpr()
531 if (!adjbuf(&buf, &bufsz, bp-buf+3, 500, &bp, "regexpr")) in regexpr()
Db.c367 static int bufsz = 100; in cclenter() local
370 if (buf == NULL && (buf = (uschar *) malloc(bufsz)) == NULL) in cclenter()
388 if (!adjbuf((char **) &buf, &bufsz, bp-buf+2, 100, (char **) &bp, "cclenter1")) in cclenter()
396 if (!adjbuf((char **) &buf, &bufsz, bp-buf+2, 100, (char **) &bp, "cclenter2")) in cclenter()
1030 static int bufsz = 100; in relex() local
1070 if (buf == NULL && (buf = (uschar *) malloc(bufsz)) == NULL) in relex()
1080 if (!adjbuf((char **) &buf, &bufsz, n, n, (char **) &bp, "relex1")) in relex()
1107 if (!adjbuf((char **) &buf, &bufsz, bp-buf+1, 100, (char **) &bp, "relex2")) in relex()
/external/elfutils/tests/
Daddsections.c153 size_t bufsz; in add_sections() local
157 bufsz = strlen ("extra") + 1; in add_sections()
168 bufsz = sec_size; in add_sections()
191 data->d_size = bufsz; in add_sections()
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_sanity.c532 if (sz * sizeof(int) > cmdbuf->bufsz) { in radeon_emit_packets()
554 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_packets()
582 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_scalars()
614 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_scalars2()
654 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_vectors()
793 cmdsz * 4 > cmdbuf->bufsz || in radeon_emit_packet3()
937 cmdbuf->bufsz -= cmdsz * 4; in radeon_emit_packet3()
987 cmdbuf.bufsz = rmesa->store.cmd_used; in radeonSanityCmdBuffer()
991 while ( cmdbuf.bufsz >= sizeof(header) ) { in radeonSanityCmdBuffer()
995 cmdbuf.bufsz -= sizeof(header); in radeonSanityCmdBuffer()
/external/curl/lib/
Dversion.c70 static size_t brotli_version(char *buf, size_t bufsz) in brotli_version() argument
77 return msnprintf(buf, bufsz, "%u.%u.%u", major, minor, patch); in brotli_version()
82 static size_t zstd_version(char *buf, size_t bufsz) in zstd_version() argument
91 return msnprintf(buf, bufsz, "%u.%u.%u", major, minor, patch); in zstd_version()
/external/mesa3d/src/mesa/drivers/dri/r200/
Dr200_sanity.c810 if (sz * sizeof(int) > cmdbuf->bufsz) { in radeon_emit_packets()
832 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_packets()
860 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_scalars()
892 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_scalars2()
932 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_vectors()
988 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_veclinear()
1142 cmdsz * 4 > cmdbuf->bufsz || in radeon_emit_packet3()
1304 cmdbuf->bufsz -= cmdsz * 4; in radeon_emit_packet3()
1354 cmdbuf.bufsz = rmesa->store.cmd_used; in r200SanityCmdBuffer()
1358 while ( cmdbuf.bufsz >= sizeof(header) ) { in r200SanityCmdBuffer()
[all …]
/external/python/cpython3/Modules/
Dgetpath.c1345 size_t bufsz = 0; in calculate_module_search_path() local
1347 bufsz += wcslen(calculate->pythonpath_env) + 1; in calculate_module_search_path()
1357 bufsz += prefixsz; in calculate_module_search_path()
1361 bufsz += delim - defpath + 1; in calculate_module_search_path()
1364 bufsz += wcslen(defpath) + 1; in calculate_module_search_path()
1370 bufsz += wcslen(calculate->zip_path) + 1; in calculate_module_search_path()
1371 bufsz += wcslen(calculate->exec_prefix) + 1; in calculate_module_search_path()
1374 wchar_t *buf = PyMem_RawMalloc(bufsz * sizeof(wchar_t)); in calculate_module_search_path()
/external/kernel-headers/original/uapi/linux/
Dkexec.h56 size_t bufsz; member
/external/igt-gpu-tools/tests/
Dprime_self_import.c382 int bufsz = 4096 << i; in test_llseek_size() local
384 handle = gem_create(fd, bufsz); in test_llseek_size()
389 igt_assert(prime_get_size(dma_buf_fd) == bufsz); in test_llseek_size()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_curbe.c203 const GLuint bufsz = sz * 16 * sizeof(GLfloat); in brw_upload_constant_buffer() local
218 buf = brw_upload_space(&brw->upload, bufsz, 64, in brw_upload_constant_buffer()

12