1
/* ncdu - NCurses Disk Usage
3
Copyright (c) 2007-2009 Yoran Heling
5
Permission is hereby granted, free of charge, to any person obtaining
6
a copy of this software and associated documentation files (the
7
"Software"), to deal in the Software without restriction, including
8
without limitation the rights to use, copy, modify, merge, publish,
9
distribute, sublicense, and/or sell copies of the Software, and to
10
permit persons to whom the Software is furnished to do so, subject to
11
the following conditions:
13
The above copyright notice and this permission notice shall be included
14
in all copies or substantial portions of the Software.
16
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
#include <sys/types.h>
33
/* File Flags (struct dir -> flags) */
36
#define FF_ERR 0x04 /* error while reading this item */
37
#define FF_OTHFS 0x08 /* excluded because it was an other filesystem */
38
#define FF_EXL 0x10 /* excluded using exlude patterns */
39
#define FF_SERR 0x20 /* error in subdirectory */
40
#define FF_BSEL 0x40 /* selected */
50
/* structure representing a file or directory */
52
struct dir *parent, *next, *sub;
61
/* minimum screen update interval when calculating, in ms */
62
extern long update_delay;
64
/* handle input from keyboard and update display */
65
int input_handle(int);
68
/* import all other global functions and variables */