make display line up if block/char devices displayed with other
[unix-history] / usr / src / bin / ls / ls.h
CommitLineData
309f6376
KB
1/*
2 * Copyright (c) 1989 The Regents of the University of California.
3 * All rights reserved.
4 *
eeb191cb
KB
5 * This code is derived from software contributed to Berkeley by
6 * Michael Fischbein.
ff47ce84 7 *
0ce0ae04 8 * %sccs.include.redist.c%
ff47ce84 9 *
09cf81e2 10 * @(#)ls.h 5.18 (Berkeley) %G%
309f6376
KB
11 */
12
643bfb5d 13#define NO_PRINT 1
13c8513a 14
abe0683d 15extern long blocksize; /* block size units */
4933888a 16
309f6376 17extern int f_accesstime; /* use time of last access */
32980675 18extern int f_flags; /* show flags associated with a file */
309f6376
KB
19extern int f_inode; /* print inode */
20extern int f_longform; /* long listing format */
926d5d7d 21extern int f_sectime; /* print the real time for all files */
309f6376 22extern int f_size; /* list size in short listing */
13c8513a
KB
23extern int f_statustime; /* use time of last mode change */
24extern int f_type; /* add type character for non-regular files */
abe0683d
EA
25
26typedef struct {
27 FTSENT *list;
0e3001c9 28 u_long btotal;
09cf81e2 29 int bcfile;
abe0683d
EA
30 int entries;
31 int maxlen;
0e3001c9
KB
32 int s_block;
33 int s_flags;
34 int s_group;
35 int s_inode;
36 int s_nlink;
37 int s_size;
38 int s_user;
abe0683d
EA
39} DISPLAY;
40
41typedef struct {
42 char *user;
43 char *group;
44 char *flags;
45 char data[1];
46} NAMES;