aboutsummaryrefslogtreecommitdiff
path: root/toys/android/getprop.c
AgeCommit message (Collapse)Author
2016-02-17Add support for getprop -ZTom Cherry
Add support for a -Z option to getprop that will either print the SELabel of a given property if one is provided or print all properties that have been set along with their SELabel. Also, correct a memory leak when freeing TT.nv.
2015-05-03Fix getprop sorting and error reporting.Elliott Hughes
Use qstrcmp instead of alphasort (which expects struct dirent arguments). Don't use perror_exit because property_list doesn't set errno.
2015-04-20Switch setprop to use TOYBOX_ON_ANDROID and fix getprop include.Rob Landley
(I commented out the android-only #include in getprop to do what compile testing I could, and then forgot to uncomment it.)
2015-04-19Cleanup getprop, add qstrcmp() to lib for qsort (because posix-2008 brokeRob Landley
alphasort), add compile-time probe for config symbol TOYBOX_ON_ANDROID.
2015-04-18Android getprop and setprop from Elliott Hughes.Rob Landley