summaryrefslogtreecommitdiffstats
path: root/bin/ls/ls.h
diff options
context:
space:
mode:
authorjh <jh@FreeBSD.org>2010-01-24 19:23:07 +0000
committerjh <jh@FreeBSD.org>2010-01-24 19:23:07 +0000
commit5b71974232932d6b97061977abe1f7766cf0e61a (patch)
tree4064131b3657eef1b406048c69142445673077d2 /bin/ls/ls.h
parent664f8ff8b9cea7c7266e8d170ef88f32d4911b1a (diff)
downloadFreeBSD-src-5b71974232932d6b97061977abe1f7766cf0e61a.zip
FreeBSD-src-5b71974232932d6b97061977abe1f7766cf0e61a.tar.gz
Fixes for ls(1) long format (-l) output:
- Allow -h option to work if the listing contains at least one device file. - Align major and minor device numbers correctly to the size field. PR: bin/125678 Approved by: trasz (mentor) MFC after: 1 month
Diffstat (limited to 'bin/ls/ls.h')
-rw-r--r--bin/ls/ls.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/ls/ls.h b/bin/ls/ls.h
index f01e351..a74abf0 100644
--- a/bin/ls/ls.h
+++ b/bin/ls/ls.h
@@ -35,6 +35,10 @@
#define NO_PRINT 1
+#define HUMANVALSTR_LEN 5
+#define DEVSTR_LEN 8
+#define DEVSTR_HEX_LEN 15
+
extern long blocksize; /* block size units */
extern int f_accesstime; /* use time of last access */
@@ -62,7 +66,6 @@ extern int f_color; /* add type in color for non-regular files */
typedef struct {
FTSENT *list;
u_long btotal;
- int bcfile;
int entries;
int maxlen;
u_int s_block;
OpenPOWER on IntegriCloud