1 /* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Michael Fischbein. 7 * 8 * %sccs.include.redist.c% 9 * 10 * @(#)ls.h 8.1 (Berkeley) 05/31/93 11 */ 12 13 #define NO_PRINT 1 14 15 extern long blocksize; /* block size units */ 16 17 extern int f_accesstime; /* use time of last access */ 18 extern int f_flags; /* show flags associated with a file */ 19 extern int f_inode; /* print inode */ 20 extern int f_longform; /* long listing format */ 21 extern int f_sectime; /* print the real time for all files */ 22 extern int f_size; /* list size in short listing */ 23 extern int f_statustime; /* use time of last mode change */ 24 extern int f_type; /* add type character for non-regular files */ 25 26 typedef struct { 27 FTSENT *list; 28 u_long btotal; 29 int bcfile; 30 int entries; 31 int maxlen; 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; 39 } DISPLAY; 40 41 typedef struct { 42 char *user; 43 char *group; 44 char *flags; 45 char data[1]; 46 } NAMES; 47