1 /* 2 * Copyright (c) 1989 The Regents of the University of California. 3 * 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 5.16 (Berkeley) 03/13/92 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 int entries; 29 int maxlen; 30 u_long btotal; 31 u_long s_block; 32 u_long s_inode; 33 u_long s_nlink; 34 u_long s_size; 35 u_long s_user; 36 u_long s_group; 37 u_long s_flags; 38 } DISPLAY; 39 40 typedef struct { 41 char *user; 42 char *group; 43 char *flags; 44 char data[1]; 45 } NAMES; 46