ls.h revision 35417
127958Ssteve 21556Srgrimes/* 31556Srgrimes * Copyright (c) 1989, 1993 41556Srgrimes * The Regents of the University of California. All rights reserved. 51556Srgrimes * 61556Srgrimes * This code is derived from software contributed to Berkeley by 71556Srgrimes * Michael Fischbein. 81556Srgrimes * 91556Srgrimes * Redistribution and use in source and binary forms, with or without 101556Srgrimes * modification, are permitted provided that the following conditions 111556Srgrimes * are met: 121556Srgrimes * 1. Redistributions of source code must retain the above copyright 131556Srgrimes * notice, this list of conditions and the following disclaimer. 141556Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 151556Srgrimes * notice, this list of conditions and the following disclaimer in the 161556Srgrimes * documentation and/or other materials provided with the distribution. 171556Srgrimes * 3. All advertising materials mentioning features or use of this software 181556Srgrimes * must display the following acknowledgement: 191556Srgrimes * This product includes software developed by the University of 201556Srgrimes * California, Berkeley and its contributors. 211556Srgrimes * 4. Neither the name of the University nor the names of its contributors 221556Srgrimes * may be used to endorse or promote products derived from this software 231556Srgrimes * without specific prior written permission. 241556Srgrimes * 251556Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 261556Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 271556Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 281556Srgrimes * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 291556Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 301556Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 311556Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 321556Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 331556Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 341556Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 351556Srgrimes * SUCH DAMAGE. 361556Srgrimes * 3727958Ssteve * from: @(#)ls.h 8.1 (Berkeley) 5/31/93 3835417Sdes * $Id: ls.h,v 1.8 1998/04/21 22:02:00 des Exp $ 391556Srgrimes */ 401556Srgrimes 411556Srgrimes#define NO_PRINT 1 421556Srgrimes 431556Srgrimesextern long blocksize; /* block size units */ 441556Srgrimes 451556Srgrimesextern int f_accesstime; /* use time of last access */ 461556Srgrimesextern int f_flags; /* show flags associated with a file */ 471556Srgrimesextern int f_inode; /* print inode */ 481556Srgrimesextern int f_longform; /* long listing format */ 4935373Sdesextern int f_octal; /* print unprintables in octal */ 5035417Sdesextern int f_octal_escape; /* like f_octal but use C escapes if possible */ 511556Srgrimesextern int f_sectime; /* print the real time for all files */ 521556Srgrimesextern int f_size; /* list size in short listing */ 531556Srgrimesextern int f_statustime; /* use time of last mode change */ 541556Srgrimesextern int f_type; /* add type character for non-regular files */ 551556Srgrimes 561556Srgrimestypedef struct { 571556Srgrimes FTSENT *list; 581556Srgrimes u_long btotal; 591556Srgrimes int bcfile; 601556Srgrimes int entries; 611556Srgrimes int maxlen; 621556Srgrimes int s_block; 631556Srgrimes int s_flags; 641556Srgrimes int s_group; 651556Srgrimes int s_inode; 661556Srgrimes int s_nlink; 671556Srgrimes int s_size; 681556Srgrimes int s_user; 691556Srgrimes} DISPLAY; 701556Srgrimes 711556Srgrimestypedef struct { 721556Srgrimes char *user; 731556Srgrimes char *group; 741556Srgrimes char *flags; 751556Srgrimes char data[1]; 761556Srgrimes} NAMES; 77