commit | b8136ffe96d8d7f53d769ddfe56ace11dd7adc4b | [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 | f2e984262c3dc7c60ef5cc6cb16a238855f1cd95 [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>