Lines Matching refs:mmap
6 / Modified to support mmap with offset - to map a 'window' of a file
234 PyErr_SetString(PyExc_ValueError, "mmap closed or invalid"); \
241 PyErr_SetString(PyExc_ValueError, "mmap closed or invalid"); \
252 PyErr_SetString(PyExc_ValueError, "mmap closed or invalid"); \
259 PyErr_SetString(PyExc_ValueError, "mmap closed or invalid"); \
388 PyErr_Format(PyExc_TypeError, "mmap can't modify a readonly memory map.");
397 "mmap can't resize with extant buffers exported.");
403 "mmap can't resize a readonly or copy-on-write memory map.");
627 "mmap: resizing not available--no mremap()");
928 /* Functions for treating an mmap'ed file as a buffer */
959 PyErr_SetString(PyExc_IndexError, "mmap index out of range");
977 "mmap index out of range");
1018 "mmap indices must be integers");
1030 PyErr_SetString(PyExc_IndexError, "mmap index out of range");
1035 "mmap object doesn't support item deletion");
1040 "mmap assignment must be length-1 bytes()");
1068 "mmap index out of range");
1073 "mmap doesn't support item deletion");
1078 "mmap item value must be an int");
1086 "mmap item value must be "
1104 "mmap object doesn't support slice deletion");
1111 "mmap slice assignment is wrong size");
1138 "mmap indices must be integer");
1147 "Windows: mmap(fileno, length[, tagname[, access[, offset]]])\n\
1150 and returns a mmap object. If length is larger than the current size\n\
1156 Unix: mmap(fileno, length[, flags[, prot[, access[, offset]]]])\n\
1159 and returns a mmap object. If length is 0, the maximum length of the map\n\
1160 will be the current size of the file when mmap is called.\n\
1162 private copy-on-write mapping, so changes to the contents of the mmap\n\
1198 .name = "mmap.mmap",
1246 "mmap can't specify both access and flags, prot.");
1274 "mmap invalid access parameter.");
1277 if (PySys_Audit("mmap.__new__", "ini" _Py_PARSE_OFF_T,
1284 fcntl(2) is necessary to force DISKSYNC and get around mmap(2) bug */
1299 "cannot mmap an empty file");
1304 "mmap offset is greater than file size");
1309 "mmap length is too large");
1315 "mmap length is greater than file size");
1330 This is the same behaviour as Windows. mmap.mmap(-1, size)
1360 m_obj->data = mmap(NULL, map_size,
1412 if (PySys_Audit("mmap.__new__", "iniL",
1432 "mmap invalid access parameter.");
1506 "cannot mmap an empty file");
1512 "mmap offset is greater than file size");
1518 "mmap length is too large");
1775 .m_name = "mmap",