commit | 97b3e66d3ef598ccf8cad42bbb723273d8d61f7c | [log] [tgz] |
---|---|---|
author | Casey Dahlin <sadmac@google.com> | Thu Nov 12 14:52:13 2015 -0800 |
committer | Bill Yi <byi@google.com> | Thu Feb 25 17:02:17 2016 -0800 |
tree | c90348ac4ce427d12ccc9fa0bd7a739c6d349bf4 | |
parent | dad8361a0ecc194128ad46676b65a81463d5b1b4 [diff] |
Introduce unique_fd unique_fds are wrappers for integer file descriptors that automatically close when they go out of scope. They are movable but not copyable and generally mimic the semantics of std::unique_ptr (cherry-pick from 918b9e8dc6dfd7fcbb17a9ac6c4c96fd1bbf78f1) Change-Id: I0657b848b6536d5ad9fc06686e240ea5c387b0ac Test: Considerable exercise in new AIDL integration tests Bug: None Signed-off-by: Casey Dahlin <sadmac@google.com>