Home
last modified time | relevance | path

Searched refs:FileCloser (Results 1 – 5 of 5) sorted by relevance

/external/libtextclassifier/native/utils/memory/
Dmmap.cc37 class FileCloser { class
39 explicit FileCloser(int fd) : fd_(fd) {} in FileCloser() function in libtextclassifier3::__anond68572e90111::FileCloser
40 ~FileCloser() { in ~FileCloser()
51 TC3_DISALLOW_COPY_AND_ASSIGN(FileCloser);
68 FileCloser file_closer(fd); in MmapFile()
/external/libtextclassifier/native/lang_id/common/file/
Dmmap.cc153 class FileCloser { class
155 explicit FileCloser(int fd) : fd_(fd) {} in FileCloser() function in libtextclassifier3::mobile::__anon13e991e50311::FileCloser
156 ~FileCloser() { in ~FileCloser()
166 SAFTM_DISALLOW_COPY_AND_ASSIGN(FileCloser);
182 FileCloser file_closer(fd); in MmapFile()
/external/boringssl/src/tool/
Dinternal.h47 struct FileCloser { struct
53 using ScopedFILE = std::unique_ptr<FILE, FileCloser>; argument
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common.h242 struct FileCloser { struct
243 explicit FileCloser(fd_t fd) : fd(fd) {} in FileCloser() function
244 ~FileCloser() { CloseFile(fd); } in ~FileCloser() argument
Dsanitizer_win.cc417 FileCloser closer(fd); in GetPreferredBase()