summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-02-20 19:07:55 +0000
committerJim Meyering <jim@meyering.net>2003-02-20 19:07:55 +0000
commit409e7dd0b64180dba97ff31a9f80e64b08ac39cc (patch)
tree4ac561ffde74feb4457f2cb7601a4c28cb14884b /src
parent4ebc314f189d7de91e94ed378ae57e57e8497abd (diff)
downloadcoreutils-409e7dd0b64180dba97ff31a9f80e64b08ac39cc.tar.xz
(print_stat): New format: %B (to print ST_NBLOCKSIZE).
(usage): Describe it.
Diffstat (limited to 'src')
-rw-r--r--src/stat.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stat.c b/src/stat.c
index 71b8bb725..06dd0c214 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -500,6 +500,10 @@ print_stat (char *pformat, char m, char const *filename, void const *data)
strcat (pformat, PRIuMAX);
printf (pformat, (uintmax_t) (statbuf->st_size));
break;
+ case 'B':
+ strcat (pformat, "u");
+ printf (pformat, (unsigned int) ST_NBLOCKSIZE);
+ break;
case 'b':
strcat (pformat, "u");
printf (pformat, (unsigned int) ST_NBLOCKS (*statbuf));
@@ -693,6 +697,7 @@ The valid format sequences for files (without --filesystem):\n\
\n\
%A Access rights in human readable form\n\
%a Access rights in octal\n\
+ %B The size of each block reported by `%b'\n\
%b Number of blocks allocated\n\
"), stdout);
fputs (_("\