FRIGN
|
eee98ed3a4
|
Fix coding style
It was about damn time. Consistency is very important in such a
big codebase.
|
2014-11-13 18:08:43 +00:00 |
|
Hiltjo Posthuma
|
2cf82f4c16
|
du: add -d flag to specify the max depth to show files or directories
we don't allow to use it with -s (like GNU du). busybox allows it.
|
2014-10-18 23:57:00 +01:00 |
|
Hiltjo Posthuma
|
b6b8fe9591
|
separate humansize into a util function
also show 1 decimal of human size string like: 4M -> 4.4M
|
2014-10-18 23:56:51 +01:00 |
|
sin
|
4608d91c6d
|
Add human readable output to du(1)
Thanks Jeffrey Picard!
|
2014-10-16 10:07:17 +01:00 |
|
sin
|
0c5b7b9155
|
Stop using EXIT_{SUCCESS,FAILURE}
|
2014-10-02 23:46:59 +01:00 |
|
Hiltjo Posthuma
|
eac0f658cf
|
check snprintf error aswell, handle as truncation error
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
|
2014-06-01 18:02:55 +01:00 |
|
dwts
|
459161481a
|
use always static for usage and keep usage definition above main
|
2014-04-22 14:49:23 +01:00 |
|
sin
|
94e97f19cd
|
No need to use enprintf() with EXIT_FAILURE
eprintf() does just that.
|
2014-01-30 14:55:26 +00:00 |
|
sin
|
5be9c21ce4
|
Use xrealpath() in du(1)
|
2014-01-23 21:17:24 +00:00 |
|
sin
|
3ef662c988
|
Check snprintf() return value
|
2014-01-23 21:17:08 +00:00 |
|
sin
|
b8edf3b4ee
|
Add weprintf() and replace fprintf(stderr, ...) calls
There is still some programs left to be updated for this.
Many of these programs would stop on the first file that they
could not open.
|
2013-11-13 11:41:43 +00:00 |
|
sin
|
0690c1a003
|
Always round up to the next blocksize unit in du(1)
|
2013-10-18 16:42:00 +01:00 |
|
sin
|
a6e5696cbd
|
Fix indentation in du(1)
|
2013-10-17 18:11:20 +01:00 |
|
sin
|
9e321b69d2
|
No need for realpath() to call malloc() in du(1)
Print links correctly as well.
|
2013-10-17 14:15:06 +01:00 |
|
sin
|
ac130cbbe0
|
Update usage line and manpage for du(1)
Do not allow -a and -s to be specified at the same time.
|
2013-10-17 11:27:42 +01:00 |
|
sin
|
ac3a5e0091
|
Add -k support for du(1)
This setting overrides the BLOCKSIZE environment variable.
|
2013-10-16 19:22:55 +01:00 |
|
sin
|
6e8b79ebd8
|
Add -s support for du(1)
|
2013-10-16 19:22:46 +01:00 |
|
sin
|
09fcbfc338
|
Add primitive du(1)
Defaults to a 512-byte blocksize.
|
2013-10-16 18:18:02 +01:00 |
|