ls.h revision 62597
1267306Semaste
2267306Semaste/*
3267306Semaste * Copyright (c) 1989, 1993
4267306Semaste *	The Regents of the University of California.  All rights reserved.
5267306Semaste *
6267306Semaste * This code is derived from software contributed to Berkeley by
7267306Semaste * Michael Fischbein.
8267306Semaste *
9267306Semaste * Redistribution and use in source and binary forms, with or without
10267306Semaste * modification, are permitted provided that the following conditions
11267306Semaste * are met:
12267306Semaste * 1. Redistributions of source code must retain the above copyright
13267306Semaste *    notice, this list of conditions and the following disclaimer.
14267306Semaste * 2. Redistributions in binary form must reproduce the above copyright
15267306Semaste *    notice, this list of conditions and the following disclaimer in the
16267306Semaste *    documentation and/or other materials provided with the distribution.
17267306Semaste * 3. All advertising materials mentioning features or use of this software
18267306Semaste *    must display the following acknowledgement:
19267306Semaste *	This product includes software developed by the University of
20267306Semaste *	California, Berkeley and its contributors.
21267306Semaste * 4. Neither the name of the University nor the names of its contributors
22267306Semaste *    may be used to endorse or promote products derived from this software
23267306Semaste *    without specific prior written permission.
24267306Semaste *
25267306Semaste * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
26267306Semaste * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27267306Semaste * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28267306Semaste * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
29267306Semaste * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30267306Semaste * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31267306Semaste * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32267306Semaste * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33267306Semaste * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34267306Semaste * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35267306Semaste * SUCH DAMAGE.
36267306Semaste *
37267306Semaste *	from: @(#)ls.h	8.1 (Berkeley) 5/31/93
38267306Semaste * $FreeBSD: head/bin/ls/ls.h 62597 2000-07-04 23:09:23Z assar $
39267306Semaste */
40267306Semaste
41267306Semaste#define NO_PRINT	1
42267306Semaste
43267306Semasteextern long blocksize;		/* block size units */
44267306Semaste
45267306Semasteextern int f_accesstime;	/* use time of last access */
46267306Semasteextern int f_flags;		/* show flags associated with a file */
47267306Semasteextern int f_inode;		/* print inode */
48267306Semasteextern int f_longform;		/* long listing format */
49267306Semasteextern int f_octal;		/* print unprintables in octal */
50267306Semasteextern int f_octal_escape;	/* like f_octal but use C escapes if possible */
51267306Semasteextern int f_nonprint;		/* show unprintables as ? */
52267306Semasteextern int f_sectime;		/* print the real time for all files */
53267306Semasteextern int f_size;		/* list size in short listing */
54267306Semasteextern int f_statustime;	/* use time of last mode change */
55267306Semasteextern int f_notabs;		/* don't use tab-separated multi-col output */
56267306Semasteextern int f_type;		/* add type character for non-regular files */
57267306Semaste#ifdef COLORLS
58267306Semasteextern int f_color;		/* add type in color for non-regular files */
59267306Semaste#endif
60267306Semaste
61267306Semastetypedef struct {
62267306Semaste	FTSENT *list;
63267306Semaste	u_long btotal;
64267306Semaste	int bcfile;
65267306Semaste	int entries;
66267306Semaste	int maxlen;
67267306Semaste	int s_block;
68267306Semaste	int s_flags;
69267306Semaste	int s_group;
70267306Semaste	int s_inode;
71267306Semaste	int s_nlink;
72267306Semaste	int s_size;
73267306Semaste	int s_user;
74267306Semaste} DISPLAY;
75267306Semaste
76267306Semastetypedef struct {
77267306Semaste	char *user;
78267306Semaste	char *group;
79267306Semaste	char *flags;
80267306Semaste	char data[1];
81267306Semaste} NAMES;
82267306Semaste