Home
last modified time | relevance | path

Searched refs:mmapFd (Results 1 – 2 of 2) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dmmapped_buffer.cpp33 const int mmapFd = open(path, O_RDONLY); in openBuffer() local
34 if (mmapFd < 0) { in openBuffer()
43 void *const mmappedBuffer = mmap(0, alignedSize, protMode, MAP_PRIVATE, mmapFd, in openBuffer()
47 close(mmapFd); in openBuffer()
53 close(mmapFd); in openBuffer()
57 mmapFd, isUpdatable)); in openBuffer()
Dmmapped_buffer.h57 void *const mmappedBuffer, const int alignedSize, const int mmapFd, in MmappedBuffer() argument
60 mAlignedSize(alignedSize), mMmapFd(mmapFd), mIsUpdatable(isUpdatable) {} in MmappedBuffer()