Home
last modified time | relevance | path

Searched refs:nitems (Results 1 – 25 of 100) sorted by relevance

1234

/external/curl/tests/libtest/
Dlib537.c104 rlim_t nitems, i; local
228 for(nitems = i = 1; nitems <= i; i *= 2)
229 nitems = i;
230 if(nitems > 0x7fff)
231 nitems = 0x40000;
233 num_open.rlim_max = sizeof(*memchunk) * nitems;
236 memchunk = malloc(sizeof(*memchunk) * (size_t)nitems);
239 nitems /= 2;
241 } while(nitems && !memchunk);
252 for(i = 0; i < nitems; i++)
[all …]
Dlib518.c102 int nitems, i; in rlimit() local
254 for(nitems = i = 1; nitems <= i; i *= 2) in rlimit()
255 nitems = i; in rlimit()
256 if(nitems > 0x7fff) in rlimit()
257 nitems = 0x40000; in rlimit()
259 num_open.rlim_max = sizeof(*memchunk) * (size_t)nitems; in rlimit()
262 memchunk = malloc(sizeof(*memchunk) * (size_t)nitems); in rlimit()
265 nitems /= 2; in rlimit()
267 } while(nitems && !memchunk); in rlimit()
278 for(i = 0; i < nitems; i++) in rlimit()
Dlib1533.c51 static size_t read_callback(void *ptr, size_t size, size_t nitems, in read_callback() argument
58 size_t totalsize = nitems * size; in read_callback()
/external/tcpdump/
Dprint-vqp.c50 uint8_t nitems; member
110 uint8_t nitems; in vqp_print() local
140 nitems = vqp_common_header->nitems; in vqp_print()
147 nitems, in vqp_print()
154 while (nitems > 0 && tlen > 0) { in vqp_print()
206 nitems--; in vqp_print()
/external/elfutils/libdwfl/
Dlinux-core-attach.c138 size_t nitems; in core_next_thread() local
141 &regs_offset, &nregloc, &reglocs, &nitems, &items)) in core_next_thread()
149 for (item = items; item < items + nitems; item++) in core_next_thread()
152 if (item == items + nitems) in core_next_thread()
193 size_t nitems; in core_set_initial_registers() local
197 &nitems, &items); in core_set_initial_registers()
202 for (item = items; item < items + nitems; item++) in core_set_initial_registers()
205 assert (item < items + nitems); in core_set_initial_registers()
216 for (item = items; item < items + nitems; item++) in core_set_initial_registers()
219 if (item < items + nitems) in core_set_initial_registers()
[all …]
/external/elfutils/backends/
Dx86_corenote.c32 regs_offset, nregloc, reglocs, nitems, items);
37 size_t *nitems, const Ebl_Core_Item **items) in ioperm_info() argument
48 *nitems = 1; in ioperm_info()
Dlinux-core-note.c216 size_t *nitems, const Ebl_Core_Item **items) in EBLHOOK()
242 *nitems = 1; in EBLHOOK()
258 *nitems = sizeof prstatus_items / sizeof prstatus_items[0]; in EBLHOOK()
268 *nitems = sizeof prpsinfo_items / sizeof prpsinfo_items[0]; in EBLHOOK()
279 *nitems = 0; \ in EBLHOOK()
290 *nitems = sizeof extra_items / sizeof extra_items[0]; \ in EBLHOOK()
301 *nitems = sizeof extra_items / sizeof extra_items[0]; \ in EBLHOOK()
Di386_corenote.c110 nitems, items); \
124 size_t *nitems, const Ebl_Core_Item **items) in tls_info() argument
132 *nitems = sizeof tls_items / sizeof tls_items[0]; in tls_info()
/external/elfutils/libebl/
Deblcorenote.c47 const Ebl_Register_Location **reglocs, size_t *nitems, in ebl_core_note() argument
51 regs_offset, nregloc, reglocs, nitems, items); in ebl_core_note()
73 *nitems = 1; in ebl_core_note()
/external/python/cpython3/Modules/_sqlite/
Drow.c110 Py_ssize_t nitems, i; in pysqlite_row_subscript() local
123 nitems = PyTuple_Size(self->description); in pysqlite_row_subscript()
125 for (i = 0; i < nitems; i++) { in pysqlite_row_subscript()
162 Py_ssize_t nitems, i; in pysqlite_row_keys() local
168 nitems = PyTuple_Size(self->description); in pysqlite_row_keys()
170 for (i = 0; i < nitems; i++) { in pysqlite_row_keys()
/external/python/cpython2/Modules/_sqlite/
Drow.c84 int nitems, i; in pysqlite_row_subscript() local
111 nitems = PyTuple_Size(self->description); in pysqlite_row_subscript()
113 for (i = 0; i < nitems; i++) { in pysqlite_row_subscript()
163 int nitems, i; in pysqlite_row_keys() local
169 nitems = PyTuple_Size(self->description); in pysqlite_row_keys()
171 for (i = 0; i < nitems; i++) { in pysqlite_row_keys()
/external/python/cpython2/Modules/
Doperator.c457 Py_ssize_t nitems; member
468 Py_ssize_t nitems; in itemgetter_new() local
473 nitems = PyTuple_GET_SIZE(args); in itemgetter_new()
474 if (nitems <= 1) { in itemgetter_new()
487 ig->nitems = nitems; in itemgetter_new()
512 Py_ssize_t i, nitems=ig->nitems; in itemgetter_call() local
518 if (nitems == 1) in itemgetter_call()
522 assert(PyTuple_GET_SIZE(ig->item) == nitems); in itemgetter_call()
524 result = PyTuple_New(nitems); in itemgetter_call()
528 for (i=0 ; i < nitems ; i++) { in itemgetter_call()
/external/python/cpython3/Modules/
D_operator.c940 Py_ssize_t nitems; member
953 Py_ssize_t nitems; in itemgetter_new() local
959 nitems = PyTuple_GET_SIZE(args); in itemgetter_new()
960 if (nitems <= 1) { in itemgetter_new()
973 ig->nitems = nitems; in itemgetter_new()
1013 Py_ssize_t i, nitems=ig->nitems; in itemgetter_call() local
1022 if (nitems == 1) { in itemgetter_call()
1035 assert(PyTuple_GET_SIZE(ig->item) == nitems); in itemgetter_call()
1037 result = PyTuple_New(nitems); in itemgetter_call()
1041 for (i=0 ; i < nitems ; i++) { in itemgetter_call()
[all …]
/external/curl/src/
Dtool_formparse.c184 size_t size, size_t nitems, void *arg) in tool_mime_stdin_read() argument
194 if(curlx_uztoso(nitems) > bytesleft) in tool_mime_stdin_read()
195 nitems = curlx_sotouz(bytesleft); in tool_mime_stdin_read()
197 if(nitems) { in tool_mime_stdin_read()
200 memcpy(buffer, sip->data + curlx_sotouz(sip->curpos), nitems); in tool_mime_stdin_read()
204 nitems = fread(buffer, 1, nitems, stdin); in tool_mime_stdin_read()
214 sip->curpos += curlx_uztoso(nitems); in tool_mime_stdin_read()
216 return nitems; in tool_mime_stdin_read()
/external/zstd/zlibWrapper/
Dgzcompatibility.h64 ZEXTERN z_size_t ZEXPORT gzfread OF((voidp buf, z_size_t size, z_size_t nitems,
67 z_size_t nitems, gzFile file));
/external/python/cpython2/Lib/
Dwave.py244 nitems = nframes * self._nchannels
245 if nitems * self._sampwidth > chunk.chunksize - chunk.size_read:
246 nitems = (chunk.chunksize - chunk.size_read) // self._sampwidth
247 data.fromfile(chunk.file.file, nitems)
249 chunk.size_read = chunk.size_read + nitems * self._sampwidth
252 chunk.size_read = chunk.size_read + nitems * self._sampwidth
/external/python/cpython3/Include/cpython/
Dobjimpl.h25 #define _PyObject_VAR_SIZE(typeobj, nitems) \ argument
27 (nitems)*(typeobj)->tp_itemsize, \
/external/curl/lib/
Dmime.c58 static size_t mime_subparts_read(char *buffer, size_t size, size_t nitems,
641 static size_t mime_mem_read(char *buffer, size_t size, size_t nitems, in mime_mem_read() argument
648 if(!nitems) in mime_mem_read()
651 if(sz > nitems) in mime_mem_read()
652 sz = nitems; in mime_mem_read()
698 static size_t mime_file_read(char *buffer, size_t size, size_t nitems, in mime_file_read() argument
703 if(!nitems) in mime_file_read()
709 return fread(buffer, size, nitems, part->fp); in mime_file_read()
1004 static size_t mime_subparts_read(char *buffer, size_t size, size_t nitems, in mime_subparts_read() argument
1015 while(nitems) { in mime_subparts_read()
[all …]
/external/llvm-project/clang/test/Analysis/
Dstd-c-library-functions-arg-constraints.c204 const size_t nitems = sizeof(wbuf); in ARR38_C_F() local
208 fread(wbuf, size, nitems, file); // \ in ARR38_C_F()
/external/newfs_msdos/
Dfreebsd-compat.h12 #define nitems(x) (sizeof((x))/sizeof((x)[0])) macro
/external/python/cpython2/Doc/c-api/
Dtype.rst80 .. c:function:: PyObject* PyType_GenericAlloc(PyTypeObject *type, Py_ssize_t nitems)
85 This function used an :c:type:`int` type for *nitems*. This might require
/external/rust/crates/libz-sys/src/zlib/
Dgzread.c411 z_size_t ZEXPORT gzfread(buf, size, nitems, file) in gzfread() argument
414 z_size_t nitems;
431 len = nitems * size;
432 if (size && len / size != nitems) {
/external/angle/third_party/zlib/
Dgzread.c411 z_size_t ZEXPORT gzfread(buf, size, nitems, file) in gzfread() argument
414 z_size_t nitems;
431 len = nitems * size;
432 if (size && len / size != nitems) {
/external/python/cpython2/Modules/zlib/
Dgzread.c411 z_size_t ZEXPORT gzfread(buf, size, nitems, file) in gzfread() argument
414 z_size_t nitems;
431 len = nitems * size;
432 if (size && len / size != nitems) {
/external/zlib/
Dgzread.c411 z_size_t ZEXPORT gzfread(buf, size, nitems, file) in gzfread() argument
414 z_size_t nitems;
431 len = nitems * size;
432 if (size && len / size != nitems) {

1234