/
ls.h
84 lines (58 loc) · 1.79 KB
/
ls.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/* $Id: ls.h,v 1.7 2010/05/14 02:34:55 cvsalan Exp $ */
#ifdef __cplusplus
extern "C" {
#endif
/* This is for the `ls' program. */
#define LS_LS 1
/* This is for the `dir' program. */
#define LS_MULTI_COL 2
/* This is for the `vdir' program. */
#define LS_LONG_FORMAT 3
enum format
{
long_format, /* -l */
one_per_line, /* -1 */
many_per_line, /* -C */
horizontal, /* -x */
with_commas /* -m */
};
extern enum format format; // make global for dirent.c - AEK
extern int tabsize;
extern int numeric_ids;
extern int run_fast;
///////////////////////////////////////////////////////////////////
enum yes_no_type
{
no_arg=0,
yes_arg
};
extern enum yes_no_type show_streams; // AEK
#ifdef WIN32
extern BOOL gbReg; // AEK show registry via -K
extern BOOL gb32bit; // AEK show 32-bit view of files and registry
extern BOOL gbRegDelVal; // AEK delete registry test-value
extern BOOL gbRegSetVal; // AEK set registry test-value
extern BOOL gbOemCp; // AEK are we using the OEM console codepage?
extern int virtual_view; // --virtual
extern BOOL gbExpandMui; // AEK --expandmui
#endif
///////////////////////////////////////////////////////////////////
enum sids_format
{
sids_none=0, sids_short, sids_long
};
typedef enum sids_format SIDS_FORMAT, *PSIDS_FORMAT;
extern SIDS_FORMAT sids_format; // AEK
extern SIDS_FORMAT gids_format; // AEK
///////////////////////////////////////////////////////////////////
enum acls_format
{
acls_none=0, acls_short, acls_long, acls_very_long
};
typedef enum acls_format ACLS_FORMAT, *PACLS_FORMAT;
extern ACLS_FORMAT acls_format; // AEK
///////////////////////////////////////////////////////////////////
extern char *view_as;
#ifdef __cplusplus
}
#endif