diff options
Diffstat (limited to 'coreutils/stat.c')
-rw-r--r-- | coreutils/stat.c | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/coreutils/stat.c b/coreutils/stat.c index 7351f5956..e85e51033 100644 --- a/coreutils/stat.c +++ b/coreutils/stat.c | |||
@@ -12,6 +12,67 @@ | |||
12 | * | 12 | * |
13 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 13 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
14 | */ | 14 | */ |
15 | |||
16 | //usage:#define stat_trivial_usage | ||
17 | //usage: "[OPTIONS] FILE..." | ||
18 | //usage:#define stat_full_usage "\n\n" | ||
19 | //usage: "Display file (default) or filesystem status\n" | ||
20 | //usage: "\nOptions:" | ||
21 | //usage: IF_FEATURE_STAT_FORMAT( | ||
22 | //usage: "\n -c fmt Use the specified format" | ||
23 | //usage: ) | ||
24 | //usage: "\n -f Display filesystem status" | ||
25 | //usage: "\n -L Follow links" | ||
26 | //usage: "\n -t Display info in terse form" | ||
27 | //usage: IF_SELINUX( | ||
28 | //usage: "\n -Z Print security context" | ||
29 | //usage: ) | ||
30 | //usage: IF_FEATURE_STAT_FORMAT( | ||
31 | //usage: "\n\nValid format sequences for files:\n" | ||
32 | //usage: " %a Access rights in octal\n" | ||
33 | //usage: " %A Access rights in human readable form\n" | ||
34 | //usage: " %b Number of blocks allocated (see %B)\n" | ||
35 | //usage: " %B The size in bytes of each block reported by %b\n" | ||
36 | //usage: " %d Device number in decimal\n" | ||
37 | //usage: " %D Device number in hex\n" | ||
38 | //usage: " %f Raw mode in hex\n" | ||
39 | //usage: " %F File type\n" | ||
40 | //usage: " %g Group ID of owner\n" | ||
41 | //usage: " %G Group name of owner\n" | ||
42 | //usage: " %h Number of hard links\n" | ||
43 | //usage: " %i Inode number\n" | ||
44 | //usage: " %n File name\n" | ||
45 | //usage: " %N File name, with -> TARGET if symlink\n" | ||
46 | //usage: " %o I/O block size\n" | ||
47 | //usage: " %s Total size, in bytes\n" | ||
48 | //usage: " %t Major device type in hex\n" | ||
49 | //usage: " %T Minor device type in hex\n" | ||
50 | //usage: " %u User ID of owner\n" | ||
51 | //usage: " %U User name of owner\n" | ||
52 | //usage: " %x Time of last access\n" | ||
53 | //usage: " %X Time of last access as seconds since Epoch\n" | ||
54 | //usage: " %y Time of last modification\n" | ||
55 | //usage: " %Y Time of last modification as seconds since Epoch\n" | ||
56 | //usage: " %z Time of last change\n" | ||
57 | //usage: " %Z Time of last change as seconds since Epoch\n" | ||
58 | //usage: "\nValid format sequences for file systems:\n" | ||
59 | //usage: " %a Free blocks available to non-superuser\n" | ||
60 | //usage: " %b Total data blocks in file system\n" | ||
61 | //usage: " %c Total file nodes in file system\n" | ||
62 | //usage: " %d Free file nodes in file system\n" | ||
63 | //usage: " %f Free blocks in file system\n" | ||
64 | //usage: IF_SELINUX( | ||
65 | //usage: " %C Security context in selinux\n" | ||
66 | //usage: ) | ||
67 | //usage: " %i File System ID in hex\n" | ||
68 | //usage: " %l Maximum length of filenames\n" | ||
69 | //usage: " %n File name\n" | ||
70 | //usage: " %s Block size (for faster transfer)\n" | ||
71 | //usage: " %S Fundamental block size (for block counts)\n" | ||
72 | //usage: " %t Type in hex\n" | ||
73 | //usage: " %T Type in human readable form" | ||
74 | //usage: ) | ||
75 | |||
15 | #include "libbb.h" | 76 | #include "libbb.h" |
16 | 77 | ||
17 | #define OPT_FILESYS (1 << 0) | 78 | #define OPT_FILESYS (1 << 0) |