android_system_core/base/include/android-base
Mathieu Chartier 1666bafa70 libbase: add Fdopendir that takes a unique_fd.
Using fdopendir with unique_fd correctly is more annoying than it
should be, because fdopendir doesn't close the file descriptor
received upon failure.

Add an android::base::Fdopendir that does that handles the failure
case.

Bug: 118818285
Test: treehugger
Change-Id: I5dbbe0eb82242bc7716f84735ffc7644febcfd65
2018-11-02 08:24:38 -07:00
..
chrono_utils.h libbase: switch to #pragma once. 2018-06-26 17:17:41 -07:00
endian.h libbase: switch to #pragma once. 2018-06-26 17:17:41 -07:00
errors.h libbase: switch to #pragma once. 2018-06-26 17:17:41 -07:00
file.h libbase: a slightly cleaner solution to libbase's `off64_t` problem. 2018-10-25 16:29:02 -07:00
logging.h Remove unused logging symbols. 2018-07-31 16:33:38 -07:00
macros.h libbase: remove ARRAYSIZE_UNSAFE. 2018-10-24 14:34:52 -07:00
mapped_file.h libbase: a slightly cleaner solution to libbase's `off64_t` problem. 2018-10-25 16:29:02 -07:00
memory.h libbase: switch to #pragma once. 2018-06-26 17:17:41 -07:00
off64_t.h libbase: a slightly cleaner solution to libbase's `off64_t` problem. 2018-10-25 16:29:02 -07:00
parsedouble.h ParseFloat/ParseDouble, also take std::string 2018-08-09 10:49:45 -07:00
parseint.h Assert that ParseInt/ParseUint are only used with signed/unsigned numbers respectively 2018-10-05 14:30:39 -07:00
parsenetaddress.h libbase: switch to #pragma once. 2018-06-26 17:17:41 -07:00
properties.h libbase: switch to #pragma once. 2018-06-26 17:17:41 -07:00
quick_exit.h
scopeguard.h Add noexcept to move constructors and assignment operators. 2018-10-05 16:43:47 +00:00
stringprintf.h libbase: switch to #pragma once. 2018-06-26 17:17:41 -07:00
strings.h libbase: support char parameter in StartsWith/EndsWith. 2018-10-30 17:20:50 -07:00
test_utils.h Add Start/Stop/Reset to CapturedStdFd. 2018-09-04 14:29:23 -07:00
thread_annotations.h libbase: assume clang. 2018-07-02 10:53:22 -07:00
threads.h Move libbacktrace off cutils. 2018-07-11 13:55:07 -07:00
unique_fd.h libbase: add Fdopendir that takes a unique_fd. 2018-11-02 08:24:38 -07:00
utf8.h Add sys/types.h in utf8.h 2018-09-21 10:46:35 -07:00