Lines Matching defs:length
830 return PyUnicode_FromFormat("<%s closed=False, access=%s, length=%zd, "
855 Py_ssize_t start = 0, length;
858 length = self->size;
860 if (!PyArg_ParseTuple(args, "i|nn:madvise", &option, &start, &length)) {
868 if (length < 0) {
869 PyErr_SetString(PyExc_ValueError, "madvise length invalid");
872 if (PY_SSIZE_T_MAX - start < length) {
873 PyErr_SetString(PyExc_OverflowError, "madvise length too large");
877 if (start + length > self->size) {
878 length = self->size - start;
882 if (madvise(self->data + start, length, option) != 0) {
1040 "mmap assignment must be length-1 bytes()");
1147 "Windows: mmap(fileno, length[, tagname[, access[, offset]]])\n\
1149 Maps length bytes from the file specified by the file handle fileno,\n\
1150 and returns a mmap object. If length is larger than the current size\n\
1151 of the file, the file is extended to contain length bytes. If length\n\
1152 is 0, the maximum length of the map is the current size of the file,\n\
1156 Unix: mmap(fileno, length[, flags[, prot[, access[, offset]]]])\n\
1158 Maps length bytes from the file specified by the file descriptor fileno,\n\
1159 and returns a mmap object. If length is 0, the maximum length of the map\n\
1224 static char *keywords[] = {"fileno", "length",
1234 "memory mapped length must be positive");
1309 "mmap length is too large");
1315 "mmap length is greater than file size");
1402 static char *keywords[] = { "fileno", "length",
1437 "memory mapped length must be positive");
1518 "mmap length is too large");