/third_party/ltp/testcases/network/nfs/nfslock01/ |
H A D | nfs_flock.c | 25 int i, fd, mac, nchars, nlines; in main() local 30 fprintf(stderr, "Usage: %s <mac num> <file name> <nchars> <nlines>\n", in main() 42 nchars = atoi(argv[3]); in main() 45 if (nchars > BUFSIZ) { in main() 50 if (nchars < 1) { in main() 62 * else with 0's. Number of charcters in any line are nchars-1, in main() 65 for (i = 0; i < nchars - 1; i++) { in main() 71 buf[nchars - 1] = '\n'; in main() 79 offset += 2 * nchars; in main() 85 offset = nchars; in main() [all...] |
H A D | nfs_flock_dgen.c | 20 int i, j, k, nlines, nchars, ctype; in main() local 31 nchars = atoi(argv[2]); in main() 35 if (nchars > BUFSIZ) { in main() 40 if (nchars < 1) { in main() 57 for (j = 0; j < nchars - 1; j++) in main()
|
H A D | nfslock01.sh | 22 local nchars="$2" 25 local exp_size="$((nchars*nlines))" 28 ROD nfs_flock_dgen $file $nchars $nlines $val
|
/third_party/curl/lib/ |
H A D | memdebug.c | 440 int nchars; in curl_dbg_log() local 451 nchars = mvsnprintf(buf, LOGLINE_BUFSIZE, format, ap); in curl_dbg_log() 454 if(nchars > LOGLINE_BUFSIZE - 1) in curl_dbg_log() 455 nchars = LOGLINE_BUFSIZE - 1; in curl_dbg_log() 457 if(nchars > 0) in curl_dbg_log() 458 fwrite(buf, 1, (size_t)nchars, curl_dbg_logfile); in curl_dbg_log()
|
/third_party/node/src/ |
H A D | string_bytes.cc | 274 size_t nchars; in WriteUCS2() local 276 nchars = str->Write(isolate, dst, 0, max_chars, flags); in WriteUCS2() 277 return nchars * sizeof(*dst); in WriteUCS2() 287 nchars = str->Write(isolate, aligned_dst, 0, max_chars - 1, flags); in WriteUCS2() 288 CHECK_EQ(nchars, max_chars - 1); in WriteUCS2() 291 memmove(dst, aligned_dst, nchars * sizeof(*dst)); in WriteUCS2() 295 CHECK_EQ(str->Write(isolate, &last, nchars, 1, flags), 1); in WriteUCS2() 296 memcpy(buf + nchars * sizeof(*dst), &last, sizeof(last)); in WriteUCS2() 297 nchars++; in WriteUCS2() 299 return nchars * sizeo in WriteUCS2() [all...] |
H A D | node_buffer.cc | 1215 int nchars; in EncodeInto() local 1220 &nchars, in EncodeInto() 1222 results[0] = nchars; in EncodeInto()
|
/third_party/python/Modules/_decimal/libmpdec/ |
H A D | io.c | 919 mpd_ssize_t nchars; /* length in chars */ member 936 dest->nchars += (n > 0 ? 1 : 0); in _mbstr_copy_char() 948 dest->nchars += n; in _mbstr_copy_ascii() 960 dest->nchars += n; in _mbstr_copy_pad() 978 * of UTF-8 characters is stored in dest->nchars. 1003 dest->nbytes = dest->nchars = 0; in _mpd_add_sep_dot() 1031 dest->nchars + n_sign < spec->min_width) { in _mpd_add_sep_dot() 1034 n_src = spec->min_width - (dest->nchars + n_sign); in _mpd_add_sep_dot() 1086 * result->nchars := strlen(result->data) 1090 * result->nchars [all...] |
/third_party/musl/Benchmark/musl/ |
H A D | util.cpp | 59 wchar_t* GetAlignedPtr(std::vector<wchar_t>* buf, size_t alignment, size_t nchars) in GetAlignedPtr() argument 61 buf->resize(nchars + ceil((2 * alignment) / sizeof(wchar_t))); in GetAlignedPtr()
|
/third_party/toybox/toys/posix/ |
H A D | uniq.c | 38 long nchars = TT.s, nfields = TT.f; in skip() local 46 while (*str && nchars--) str++; in skip()
|
/third_party/python/Python/ |
H A D | formatter_unicode.c | 337 calc_padding(Py_ssize_t nchars, Py_ssize_t width, Py_UCS4 align, in calc_padding() argument 342 if (nchars > width) in calc_padding() 343 *n_total = nchars; in calc_padding() 349 *n_total = nchars; in calc_padding() 355 *n_lpadding = *n_total - nchars; in calc_padding() 357 *n_lpadding = (*n_total - nchars) / 2; in calc_padding() 365 *n_rpadding = *n_total - nchars - *n_lpadding; in calc_padding() 372 Py_ssize_t nchars, in fill_padding() 386 pos = writer->pos + nchars + n_lpadding; in fill_padding() 371 fill_padding(_PyUnicodeWriter *writer, Py_ssize_t nchars, Py_UCS4 fill_char, Py_ssize_t n_lpadding, Py_ssize_t n_rpadding) fill_padding() argument
|
/third_party/python/PC/ |
H A D | launcher.c | 1047 parse_shebang(wchar_t * shebang_line, int nchars, wchar_t ** command, in parse_shebang() argument 1055 wchar_t * endp = shebang_line + nchars - 1; in parse_shebang() 1312 int i, j, nchars = 0; in maybe_handle_shebang() local 1366 nchars = MultiByteToWideChar(bom->code_page, in maybe_handle_shebang() 1375 /* nchars = 0; Not needed - initialised to 0. */ in maybe_handle_shebang() 1382 nchars = header_len / sizeof(wchar_t); in maybe_handle_shebang() 1389 /* nchars = 0; Not needed - initialised to 0. */ in maybe_handle_shebang() 1394 nchars = header_len / sizeof(wchar_t); in maybe_handle_shebang() 1401 /* nchars = 0; Not needed - initialised to 0. */ in maybe_handle_shebang() 1409 nchars in maybe_handle_shebang() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | alsdec.c | 1473 int nchars; in read_diff_float_data() local 1529 nchars = 0; in read_diff_float_data() 1532 nchars += 4; in read_diff_float_data() 1536 tmp_32 = ff_mlz_decompression(ctx->mlz, gb, nchars, larray); in read_diff_float_data() 1537 if(tmp_32 != nchars) { in read_diff_float_data() 1538 av_log(ctx->avctx, AV_LOG_ERROR, "Error in MLZ decompression (%"PRId32", %d).\n", tmp_32, nchars); in read_diff_float_data() 1569 nchars = 0; in read_diff_float_data() 1572 nchars += (int) nbits[i] / 8; in read_diff_float_data() 1574 ++nchars; in read_diff_float_data() 1579 tmp_32 = ff_mlz_decompression(ctx->mlz, gb, nchars, larra in read_diff_float_data() [all...] |
/third_party/toybox/toys/pending/ |
H A D | bc.c | 43 size_t nchars; 1901 if (TT.nchars >= TT.line_len - 1) { in bc_num_printNewline() 1904 TT.nchars = 0; in bc_num_printNewline() 1914 ++TT.nchars; in bc_num_printDigits() 1919 for (exp = 0; exp < len; pow /= 10, ++TT.nchars, ++exp) { in bc_num_printDigits() 1933 TT.nchars += 1; in bc_num_printHex() 1938 TT.nchars += len; in bc_num_printHex() 1946 TT.nchars += n->neg; in bc_num_printDecimal() 2023 TT.nchars += neg; in bc_num_printBase() 4793 TT.nchars in bc_program_printChars() [all...] |
H A D | awk.c | 4171 int nchars = utf8cnt(zz->str, zz->size); // number of utf8 codepoints in interpx() local 4173 ssize_t mm = CLAMP(trunc(to_num(STKP - nargs + 2)) - 1, 0, nchars); in interpx() 4174 ssize_t nn = nchars - mm; // max possible substring length (chars) in interpx()
|
/third_party/python/Modules/_io/ |
H A D | textio.c | 1772 Py_ssize_t nbytes, nchars; in textiowrapper_read_chunk() local 1855 nchars = PyUnicode_GET_LENGTH(decoded_chars); in textiowrapper_read_chunk() 1856 if (nchars > 0) in textiowrapper_read_chunk() 1857 self->b2cratio = (double) nbytes / nchars; in textiowrapper_read_chunk() 1860 if (nchars > 0) in textiowrapper_read_chunk()
|
/third_party/backends/backend/ |
H A D | hs2p-scsi.h | 1144 SANE_Byte nchars[4]; /* The number of endorser characters */ member
|
H A D | hs2p.c | 1859 (SANE_Word) _4btol (&(s->data.maintenance.nchars[0])); in update_hs2p_data() 2035 DBG (DBG_LEVEL, "nchars = %lu\n", _4btol (&(d->nchars[0]))); in print_maintenance_data() 2236 (SANE_Word) _4btol (&(s->data.maintenance.nchars[0])); in sane_control_option()
|
/third_party/node/lib/internal/debugger/ |
H A D | inspect_repl.js | 150 const nchars = MathMax(2, String(maxN).length); 151 const nspaces = nchars - s.length;
|
/third_party/toybox/generated/ |
H A D | globals.h | 624 size_t nchars; member
|
/third_party/ffmpeg/fftools/ |
H A D | ffmpeg.c | 480 DWORD dw, nchars; in read_key() local 488 if (!PeekNamedPipe(input_handle, NULL, 0, NULL, &nchars, NULL)) { in read_key() 493 if(nchars != 0) { in read_key()
|
/third_party/mksh/ |
H A D | edit.c | 2301 x_push(size_t nchars) in x_push() argument 2304 strndupx(killstack[killsp], xcp, nchars, AEDIT); in x_push()
|
/third_party/python/Objects/ |
H A D | unicodeobject.c | 12741 Py_ssize_t nchars, n; in unicode_repeat() local 12758 nchars = len * PyUnicode_GET_LENGTH(str); in unicode_repeat() 12760 u = PyUnicode_New(nchars, PyUnicode_MAX_CHAR_VALUE(str)); in unicode_repeat() 12786 _PyBytes_Repeat(to, nchars * char_size, PyUnicode_DATA(str), in unicode_repeat()
|