summaryrefslogtreecommitdiffstats
path: root/unique_fd.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Switch to <android-base/unique_fd.h>.Elliott Hughes2016-03-291-62/+0
| | | | Change-Id: I13ba3f40bd52b5f3e3fe9002a45a9a8630040129
* We can use fclose directly in std::unique_ptr.Elliott Hughes2015-11-131-11/+0
| | | | | | | | It turns out the standard explicitly states that if the pointer is null, the deleter function won't be called. So it doesn't matter that fclose(3) doesn't accept null. Change-Id: I10e6e0d62209ec03ac60e673edd46f32ba279a04
* Use unique_ptr and unique_fd to manager FDs.Tao Bao2015-08-101-0/+73
Clean up leaky file descriptors in uncrypt/uncrypt.cpp. Add unique_fd for open() and unique_file for fopen() to close FDs on destruction. Bug: 21496020 Change-Id: I0174db0de9d5f59cd43b44757b8ef0f5912c91a2