__gmon_start__ _init _fini __cxa_finalize _Jv_RegisterClasses _PyArg_ParseTuple_SizeT _Py_NoneStruct PyExc_ValueError PyErr_SetString PyExc_TypeError PyErr_Format memcpy ftruncate64 mremap PyErr_SetFromErrno memmove msync PyInt_FromLong PyLong_FromLong PyInt_FromSsize_t close munmap PyString_Size PyString_AsString PyExc_IndexError PyNumber_AsSsize_t PySlice_Type PySlice_GetIndicesEx PyErr_Occurred PyString_FromStringAndSize PyMem_Malloc PyMem_Free PyErr_NoMemory PyExc_SystemError PyInt_FromSize_t __fxstat64 PyLong_FromLongLong memchr _Py_BuildValue_SizeT _PyArg_ParseTupleAndKeywords_SizeT PyExc_OverflowError mmap64 dup initmmap PyType_Ready Py_InitModule4 PyModule_GetDict PyExc_EnvironmentError PyErr_NewException PyDict_SetItemString sysconf PyObject_GenericGetAttr PyType_GenericAlloc PyObject_Free libc.so.6 _edata __bss_start _end GLIBC_2.1.3 GLIBC_2.2 GLIBC_2.1 GLIBC_2.0
mmap closed or invalid n|i:seek unknown seek type seek out of range c:write_byte write byte out of range s#:write data out of range n:resize kkk:move |nn:flush flush values out of range s#|nn:rfind s#|nn:find mmap index out of range mmap indices must be integer mmap indices must be integers c read byte out of range n:read s# iO|iiiL cannot mmap an empty file mmap length is too large mmap.error PROT_EXEC PROT_READ PROT_WRITE MAP_SHARED MAP_PRIVATE MAP_DENYWRITE MAP_EXECUTABLE MAP_ANON MAP_ANONYMOUS PAGESIZE ALLOCATIONGRANULARITY ACCESS_READ ACCESS_WRITE ACCESS_COPY mmap.mmap fileno length flags prot access offset close read_byte readline tell mmap can't modify a readonly memory map. mmap can't resize a readonly or copy-on-write memory map. source, destination, or count out of range mmap object doesn't support slice deletion mmap slice assignment must be a string mmap slice assignment is wrong size mmap object doesn't support item deletion mmap assignment must be single-character string accessing non-existent buffer segment Accessing non-existent mmap segment mmaps don't support repeat operation mmaps don't support concatenation memory mapped %s must be positive map size must be an integral value memory mapped offset must be positive mmap can't specify both access and flags, prot. mmap invalid access parameter. mmap offset is greater than file size mmap length is greater than file size
A Windows: mmap(fileno, length[, tagname[, access[, offset]]]) Maps length bytes from the file specified by the file handle fileno, and returns a mmap object. If length is larger than the current size of the file, the file is extended to contain length bytes. If length is 0, the maximum length of the map is the current size of the file, except that if the file is empty Windows raises an exception (you cannot create an empty mapping on Windows). Unix: mmap(fileno, length[, flags[, prot[, access[, offset]]]]) Maps length bytes from the file specified by the file descriptor fileno, and returns a mmap object. If length is 0, the maximum length of the map will be the current size of the file when mmap is called. flags specifies the nature of the mapping. MAP_PRIVATE creates a private copy-on-write mapping, so changes to the contents of the mmap object will be private to this process, and MAP_SHARED creates a mapping that's shared with all other processes mapping the same areas of the file. The default value is MAP_SHARED. To map anonymous memory, pass -1 as the fileno (both versions). 5 $ P @G hG tG A G @* 5 5 5 5 5 5 P% $ p$ ( ' p P% # % # 0# 5 04 $4 3 p 3 P 4 ) 5 ) 5 0' 3 3 3 & 5 P& 3 3
GCC: (GNU) 4.2.3 (Ubuntu 4.2.3-2ubuntu7) GCC: (GNU) 4.6.x-google 20120106 (prerelease) GCC: (GNU) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
.symtab .strtab .shstrtab .hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .text .fini .rodata .eh_frame_hdr .eh_frame .ctors .dtors .jcr .dynamic .got .got.plt .data .bss .comment .debug_aranges .debug_info .debug_abbrev .debug_line .debug_ranges
initfini.c crtstuff.c __CTOR_LIST__ __DTOR_LIST__ __JCR_LIST__ __do_global_dtors_aux completed.5467 dtor_idx.5469 frame_dummy __CTOR_END__ __FRAME_END__ __JCR_END__ __do_global_ctors_aux mmapmodule.c mmap_seek_method mmap_write_byte_method mmap_write_method mmap_resize_method mmap_module_error mmap_move_method mmap_flush_method mmap_gfind mmap_rfind_method mmap_find_method mmap_close_method mmap_object_dealloc mmap_ass_slice mmap_ass_item mmap_ass_subscript mmap_subscript mmap_buffer_getcharbuffer mmap_buffer_getsegcount mmap_buffer_getreadbuf mmap_repeat mmap_concat mmap_length mmap_buffer_getwritebuf mmap_tell_method mmap_size_method mmap_read_line_method mmap_slice mmap_item mmap_read_byte_method mmap_read_method new_mmap_object keywords.9047 mmap_object_type mmap_as_sequence mmap_as_mapping mmap_as_buffer mmap_doc mmap_object_methods _GLOBAL_OFFSET_TABLE_ __x86.get_pc_thunk.bx __dso_handle __DTOR_END__ _DYNAMIC PyDict_SetItemString PyString_AsString initmmap sysconf@@GLIBC_2.0 PyExc_ValueError PyType_Ready PyMem_Free PyExc_SystemError __gmon_start__ _Jv_RegisterClasses _PyArg_ParseTuple_SizeT _fini PyErr_NoMemory mremap@@GLIBC_2.0 PyExc_TypeError PyString_FromStringAndSize PyString_Size PyErr_Format PyErr_Occurred PyExc_EnvironmentError PyExc_IndexError dup@@GLIBC_2.0 memcpy@@GLIBC_2.0 PyInt_FromLong PySlice_GetIndicesEx PyInt_FromSize_t PyModule_GetDict PyObject_GenericGetAttr PyNumber_AsSsize_t close@@GLIBC_2.0 ftruncate64@@GLIBC_2.1 __bss_start _Py_NoneStruct PyExc_OverflowError PyErr_NewException PySlice_Type PyLong_FromLong memmove@@GLIBC_2.0 PyLong_FromLongLong PyInt_FromSsize_t Py_InitModule4 PyObject_Free _end __fxstat64@@GLIBC_2.2 PyErr_SetString memchr@@GLIBC_2.0 munmap@@GLIBC_2.0 _edata mmap64@@GLIBC_2.1 _PyArg_ParseTupleAndKeywords_SizeT PyErr_SetFromErrno PyType_GenericAlloc PyMem_Malloc __cxa_finalize@@GLIBC_2.1.3 msync@@GLIBC_2.0 _Py_BuildValue_SizeT _init