]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(print_stat): New format: %B (to print ST_NBLOCKSIZE).
authorJim Meyering <jim@meyering.net>
Thu, 20 Feb 2003 19:07:55 +0000 (19:07 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 20 Feb 2003 19:07:55 +0000 (19:07 +0000)
(usage): Describe it.

src/stat.c

index 71b8bb7253fc69fa31ceda4d3a54605411a2513d..06dd0c214f48d77fc950d69e80416d5e0472a87a 100644 (file)
@@ -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 (_("\