summaryrefslogtreecommitdiffstats
path: root/toolbox/ls.c
Commit message (Collapse)AuthorAgeFilesLines
* Add -i option to toolbox cmd lsWilliam Roberts2013-04-031-36/+44
| | | | Change-Id: I4690fc10dc07bf1883bcf8ec18399235dc97d317
* Remove HAVE_SELINUX guardsKenny Root2012-10-161-6/+0
| | | | Change-Id: Idef0a784a1d237257ff4135bb1df62ff8a67ded3
* toolbox: silence some compiler warningsKenny Root2012-10-101-3/+3
| | | | | | | Comparison of signed and unsigned integers. Use parenthesis around a group of bitwise OR operations. Change-Id: Ia404380593ce2c2a291133c07c0fc7a016a3ad3f
* Extend toolbox with SE Android support.Stephen Smalley2012-02-031-2/+76
| | | | | | | | Add -Z option to ls and ps for displaying security contexts. Modify id to display security context. Add new SELinux commands: chcon, getenforce, getsebool, load_policy, restorecon, runcon, setenforce, setsebool. Change-Id: Ia20941be4a6cd706fe392fed6e38a37d880ec5f1
* resolved conflicts for merge of 3ea075be to honeycomb-plus-aospKenny Root2011-07-151-2/+24
|\ | | | | | | Change-Id: Ic668cb99822d4bc44f2f57782afd1a6c1b348e9b
| * Add -F for classify to lsKenny Root2011-07-131-2/+24
| | | | | | | | | | | | | | | | | | Adds a field to the non-long version of ls that tells what type of file it is (i.e., regular, directory, link, fifo, etc). This is useful for scripts that don't have direct filesystem access. Change-Id: I54a327390f6ed403acb13c824f62ba9594ba320d
* | toolbox: make getprop print a sorted list of propertiesDavid 'Digit' Turner2011-01-081-131/+10
| | | | | | | | | | | | | | This patch also factors out the dynarray_t/strlist_t code from ls.c and moves it to dynarray.[hc]. Change-Id: Ifae2b364d7c2733aad5551ad3c78ae72f8ac31f4
* | Add ls -n to toolbox.Brad Fitzpatrick2010-10-251-2/+9
|/ | | | Change-Id: I641f9504554d14fb1289ac470e6e61c5bc12e9c7
* am eb42170e: Display file sizes larger than 2GB correctlyKenny Root2010-06-251-2/+2
|\ | | | | | | | | | | | | Merge commit 'eb42170e6c8b70f11dca9965785aa04a80290c72' into gingerbread-plus-aosp * commit 'eb42170e6c8b70f11dca9965785aa04a80290c72': Display file sizes larger than 2GB correctly
| * Display file sizes larger than 2GB correctlyKenny Root2010-06-251-2/+2
| | | | | | | | | | | | | | | | File size was cast to a signed integer which displayed files over 2GB as negative sizes on devices. Use a long long for printing instead which matches the stat struct. Change-Id: I0ec07f33716bb4c2e5d120633ed435f637238f46
* | merge from open-source masterThe Android Open Source Project2010-06-091-19/+168
|\ \ | |/ |/| | | Change-Id: I2f725ca20bf08748a4b3e81a4e98fbe08fcf1a47
| * toolbox-ls: sort file and directory listsDavid 'Digit' Turner2010-06-041-18/+167
| | | | | | | | | | | | | | | | Sorts file and directory names properly in 'ls' + accept group flags (e.g. '-ld' instead of '-l -d') + accept flags in any position on the command line (e.g. 'ls foo -l' works) Change-Id: Idc24a69ae31fe0c13726d39892357ac89a8830db
* | Fix up ls -s.Andy McFadden2009-09-271-5/+44
|/ | | | | | | | Added the "total" line, which makes it easy to answer questions like, "how the hell much space am I wasting on /data/dalvik-cache?". Also fixed the -s filename output, which was showing mostly-full paths when a simple filename was called for.
* Added -s flag to ls.Andy McFadden2009-08-181-17/+49
| | | | | | | | | This may not be useful, and may actually be misleading since yaffs2 doesn't track the blocks used for each file (it just divides the length down by 512). I'm submitting it because yaffs2 isn't the only filesystem we'll ever use. I also changed some sprintf to snprintf, mostly out of paranoid habit.
* AI 145220: Added "-d" flag to ls.Andy McFadden2009-04-081-4/+7
| | | | | | Now you can "ls -l -d <directory>" to see directory perms. Automated import of CL 145220
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+285
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-285/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+285