ls.h revision 27958
1124758Semax
2124758Semax/*
3124758Semax * Copyright (c) 1989, 1993
4124758Semax *	The Regents of the University of California.  All rights reserved.
5124758Semax *
6124758Semax * This code is derived from software contributed to Berkeley by
7124758Semax * Michael Fischbein.
8124758Semax *
9124758Semax * Redistribution and use in source and binary forms, with or without
10124758Semax * modification, are permitted provided that the following conditions
11124758Semax * are met:
12124758Semax * 1. Redistributions of source code must retain the above copyright
13124758Semax *    notice, this list of conditions and the following disclaimer.
14124758Semax * 2. Redistributions in binary form must reproduce the above copyright
15124758Semax *    notice, this list of conditions and the following disclaimer in the
16124758Semax *    documentation and/or other materials provided with the distribution.
17124758Semax * 3. All advertising materials mentioning features or use of this software
18124758Semax *    must display the following acknowledgement:
19124758Semax *	This product includes software developed by the University of
20124758Semax *	California, Berkeley and its contributors.
21124758Semax * 4. Neither the name of the University nor the names of its contributors
22124758Semax *    may be used to endorse or promote products derived from this software
23124758Semax *    without specific prior written permission.
24124758Semax *
25124758Semax * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
26124758Semax * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27124758Semax * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28124758Semax * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
29124758Semax * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30124758Semax * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31124758Semax * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32124758Semax * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33124758Semax * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34124758Semax * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35124758Semax * SUCH DAMAGE.
36124758Semax *
37124758Semax *	from: @(#)ls.h	8.1 (Berkeley) 5/31/93
38124758Semax *	$Id: ls.h,v 1.6 1997/04/29 10:03:05 dfr Exp $
39124758Semax */
40124758Semax
41124758Semax#define NO_PRINT	1
42124758Semax
43124758Semaxextern long blocksize;		/* block size units */
44124758Semax
45124758Semaxextern int f_accesstime;	/* use time of last access */
46124758Semaxextern int f_flags;		/* show flags associated with a file */
47124758Semaxextern int f_inode;		/* print inode */
48124758Semaxextern int f_longform;		/* long listing format */
49124758Semaxextern int f_sectime;		/* print the real time for all files */
50124758Semaxextern int f_size;		/* list size in short listing */
51124758Semaxextern int f_statustime;	/* use time of last mode change */
52124758Semaxextern int f_type;		/* add type character for non-regular files */
53124758Semax
54124758Semaxtypedef struct {
55124758Semax	FTSENT *list;
56124758Semax	u_long btotal;
57124758Semax	int bcfile;
58124758Semax	int entries;
59124758Semax	int maxlen;
60124758Semax	int s_block;
61153176Semax	int s_flags;
62153176Semax	int s_group;
63124758Semax	int s_inode;
64124758Semax	int s_nlink;
65124758Semax	int s_size;
66124758Semax	int s_user;
67124758Semax} DISPLAY;
68124758Semax
69124758Semaxtypedef struct {
70124758Semax	char *user;
71124758Semax	char *group;
72124758Semax	char *flags;
73124758Semax	char data[1];
74124758Semax} NAMES;
75124758Semax