platform_system_core/base/include/android-base
Josh Gao 6496c4bf6f base: disallow close() on unique_fd.
unique_fd's implicit conversion to int allows it to be passed to
close(2), which is dangerous because unique_fd will think that it still
has ownership of the now-closed fd. Disallow this by providing an
overload for close that's tagged with an attribute that gives a
compile-time error.

Test: m
Change-Id: I514591335b337f2f57c1df371cf3979304aea17c
2016-08-29 14:37:49 -07:00
..
errors.h Fix <android-base/*.h> header guards. 2016-03-23 15:04:52 -07:00
file.h Fix <android-base/*.h> header guards. 2016-03-23 15:04:52 -07:00
logging.h Move init's kernel logging into libbase. 2016-08-04 16:09:39 -07:00
macros.h Define LIKELY and UNLIKELY in a vendor friendly way 2016-04-18 16:08:19 -07:00
memory.h Fix <android-base/*.h> header guards. 2016-03-23 15:04:52 -07:00
parseint.h Fix <android-base/*.h> header guards. 2016-03-23 15:04:52 -07:00
parsenetaddress.h Fix <android-base/*.h> header guards. 2016-03-23 15:04:52 -07:00
stringprintf.h Fix <android-base/*.h> header guards. 2016-03-23 15:04:52 -07:00
strings.h Fix <android-base/*.h> header guards. 2016-03-23 15:04:52 -07:00
test_utils.h Fix <android-base/*.h> header guards. 2016-03-23 15:04:52 -07:00
thread_annotations.h Fix <android-base/*.h> header guards. 2016-03-23 15:04:52 -07:00
unique_fd.h base: disallow close() on unique_fd. 2016-08-29 14:37:49 -07:00
utf8.h Fix <android-base/*.h> header guards. 2016-03-23 15:04:52 -07:00