1994-05-26 06:18:55 +00:00
|
|
|
/*-
|
2017-11-20 19:49:47 +00:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*
|
1994-05-26 06:18:55 +00:00
|
|
|
* Copyright (c) 1991, 1993
|
|
|
|
* The Regents of the University of California. All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
2017-02-28 23:42:47 +00:00
|
|
|
* 3. Neither the name of the University nor the names of its contributors
|
1994-05-26 06:18:55 +00:00
|
|
|
* may be used to endorse or promote products derived from this software
|
|
|
|
* without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*
|
1997-08-07 15:33:50 +00:00
|
|
|
* from: @(#)extern.h 8.1 (Berkeley) 5/31/93
|
1999-08-27 23:15:48 +00:00
|
|
|
* $FreeBSD$
|
1994-05-26 06:18:55 +00:00
|
|
|
*/
|
|
|
|
|
2002-02-02 06:48:10 +00:00
|
|
|
int acccmp(const FTSENT *, const FTSENT *);
|
|
|
|
int revacccmp(const FTSENT *, const FTSENT *);
|
2006-03-24 16:38:02 +00:00
|
|
|
int birthcmp(const FTSENT *, const FTSENT *);
|
|
|
|
int revbirthcmp(const FTSENT *, const FTSENT *);
|
2002-02-02 06:48:10 +00:00
|
|
|
int modcmp(const FTSENT *, const FTSENT *);
|
|
|
|
int revmodcmp(const FTSENT *, const FTSENT *);
|
|
|
|
int namecmp(const FTSENT *, const FTSENT *);
|
|
|
|
int revnamecmp(const FTSENT *, const FTSENT *);
|
|
|
|
int statcmp(const FTSENT *, const FTSENT *);
|
|
|
|
int revstatcmp(const FTSENT *, const FTSENT *);
|
2005-06-03 11:05:58 +00:00
|
|
|
int sizecmp(const FTSENT *, const FTSENT *);
|
|
|
|
int revsizecmp(const FTSENT *, const FTSENT *);
|
1994-05-26 06:18:55 +00:00
|
|
|
|
2003-05-03 16:39:34 +00:00
|
|
|
void printcol(const DISPLAY *);
|
|
|
|
void printlong(const DISPLAY *);
|
2015-06-10 01:27:38 +00:00
|
|
|
int printname(const char *, const char *);
|
2003-05-03 16:39:34 +00:00
|
|
|
void printscol(const DISPLAY *);
|
|
|
|
void printstream(const DISPLAY *);
|
2002-02-02 06:48:10 +00:00
|
|
|
void usage(void);
|
2015-06-10 01:27:38 +00:00
|
|
|
int prn_normal(const char *, const char *);
|
|
|
|
char * getname(const char *);
|
2002-02-03 19:11:32 +00:00
|
|
|
size_t len_octal(const char *, int);
|
2015-06-10 01:27:38 +00:00
|
|
|
int prn_octal(const char *, const char *);
|
|
|
|
char * get_octal(const char *);
|
|
|
|
int prn_printable(const char *, const char *);
|
|
|
|
char * get_printable(const char *);
|
2000-06-05 02:14:01 +00:00
|
|
|
#ifdef COLORLS
|
2002-02-02 06:48:10 +00:00
|
|
|
void parsecolors(const char *cs);
|
2012-11-08 23:45:19 +00:00
|
|
|
void colorquit(int);
|
2000-06-05 03:51:29 +00:00
|
|
|
|
2012-11-08 23:45:19 +00:00
|
|
|
extern char *ansi_fgcol;
|
|
|
|
extern char *ansi_bgcol;
|
|
|
|
extern char *ansi_coloff;
|
|
|
|
extern char *attrs_off;
|
|
|
|
extern char *enter_bold;
|
2000-06-05 02:14:01 +00:00
|
|
|
#endif
|
2003-05-03 16:39:34 +00:00
|
|
|
extern int termwidth;
|