summaryrefslogtreecommitdiffstats
path: root/include/cutils/properties.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove HAVE_LIBC_SYSTEM_PROPERTIES and HAVE_SYSTEM_PROPERTY_SERVER.Elliott Hughes2015-01-121-16/+0
| | | | Change-Id: I3d92dbecebd2bb449a8c4332de684919a58847ad
* cutils: Add property_get_bool, _get_int32, _get_int64Igor Murashkin2014-06-201-0/+59
| | | | | | | | | * Read out system properties with same syntax as SystemProperties.java * Also adds unit test suite to validate correctness of properties * Also fixes buffer overrun in property_get (cherry picked from commit d4507e9246e4855c5431cac5c3d1a9155caebc87) Change-Id: Ifd42911f93e17da09e6ff1298e8875e02f3b6608
* Don't use __attribute__(__error__)Nick Kralevich2013-06-181-2/+1
| | | | | | | | __attribute(__error__) isn't supported on clang, and generates compiler warnings. Use __errordecl instead, which does the right thing for different compilers. Change-Id: Ifb0797a5de703cc5b3c39dcd97bcfaf404f1cafa
* property_get: do argument checking.Nick Kralevich2013-05-231-0/+19
| | | | | | | Try to verify, at compile time, that the supplied value buffer is large enough. Change-Id: I91fa560d3ceff87609194269356ac634bdbf2ede
* properties.h: avoid duplicating constant valuesNick Kralevich2013-05-231-2/+4
| | | | | | | | | | Use the constant value from sys/system_properties.h, rather than having two copies of this constant in two different places. This partially addresses the TODO in the header file. Change-Id: Ic0b098cb8caf562ed2a25a0cf8cd412ba2e06884
* Revert "property_get: do argument checking."Nick Kralevich2013-02-041-20/+0
| | | | This reverts commit 75cc88546b893280add608becfd5887470573813.
* Revert "Fix win_sdk build."Nick Kralevich2013-02-041-6/+4
| | | | | | This reverts commit 941daef629bd571032851edf7ae1dce24266640e. Change-Id: I6b509492964baf535e0eeb1a731bf70c91715942
* Fix win_sdk build.Nick Kralevich2013-02-021-4/+6
| | | | | | | | Don't depend on sys/cdefs.h, which doesn't exist when building for the host.Don't try to compile property_len() checking code in mingw32, it doesn't work. Change-Id: I6a56b759bd4e8d30d6ca136e43d6515bf7408cc6
* property_get: do argument checking.Nick Kralevich2013-01-311-0/+20
| | | | | | | | | | Try to verify, at compile time, that the supplied value buffer is large enough. There's more we can do here, but this is a good first pass. Change-Id: Iac8153826c89114b2755735032423c6744f7a61b
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+70
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-70/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+70